Ticket #75 (assigned defect)

Opened 3 years ago

Last modified 3 years ago

GeoJSON "properties" attribute is not serialized correctly

Reported by: charnik Owned by: charnik
Priority: minor Milestone:
Component: resultio Version: all
Keywords: GeoJSON, properties attribute Cc: olivier.dalang@…

Description

The bug has been reported by Olivier here: http://cgi.di.uoa.gr/~mailman/pipermail/strabon-users/2014-October/000194.html.

See also by reply to that message for details on the bug.

Change History

comment:1 Changed 3 years ago by charnik

  • Owner changed from pyravlos-team to charnik
  • Status changed from new to assigned

The bug has been partially addressed in changeset 1442:025b64f6f1fa, which it correctly prints the value of a typed literal or a resource. More specifically:

  • URIs cannot be printed without escaping the "/" character. This behaviour is instructed by the JSON specification.
  • Numeric values are printed without quotes.
  • Boolean values are printed either as true or false, without quotes.
  • Calendar values are printed as strings, including the time zone information (if any).

Properly fixing the output of a feature's property to be as instructed here (http://www.w3.org/TR/sparql11-results-json/#select-encode-terms) it is not straightforward, since we need to extend GeoTool?'s Schema to take into account Sesame's Value objects. This needs also a corresponding ConverterFactory? that would create Converter objects, a possible extension of ComplexTypeAttribute?, etc.

Note: See TracTickets for help on using tickets.