Ticket #4 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

Standardize output response of strabon QueryOp class

Reported by: charnik Owned by: charnik@…
Priority: major Milestone:
Component: component1 Version:
Keywords: strabon script, SPARQL results, format Cc:


Question: What should be the output when executing a SPARQL query?

Answer: Indeed, the SPARQL results.

These results can be encoded, however, in many different encodings, such as XML, SPARQL, KML, KMZ, GeoJSON, and HTML.

Currently, the output is mixed (maybe this is charnik's fault when trying to make System outs to logging events). I strongly believe that the output should be ONLY the results. A user querying Strabon using the strabon script should get as output the results and ONLY the results. That said, all logging information should as well be present, BUT written to standard error, which is not the case at this moment.

Furthermore, why Strabon.query returns an Object? Should it return a String or not? In my opinion, since the actual encoding transformation has been implemented inside Strabon.query, it should return the encoded String. No output should be done inside Strabon.query. The client (in this case QueryOp?) should print the result.

1) Logging should be written to standard error.
2) The user of Strabon should get the results of a SPARQL query (and only these) in a file (KML, KMZ, etc.) by just redirecting the output to that file.
3) Make QueryOp? print the results of the evaluation of a SPARQL query.

Change History

comment:1 Changed 6 years ago by charnik

  • Status changed from new to closed
  • Resolution set to fixed

Completely fixed in the following changesets:
324:fe02c447ee46, 327:c7dd5add6c9d, and 328:5a4a3f40bead

Note: See TracTickets for help on using tickets.