Replies: 3 comments 4 replies
-
If this is something that makes sense to do, I would be interested in working on it. |
Beta Was this translation helpful? Give feedback.
-
you could do the last part of that with https://www.w3.org/TR/sparql11-query/#func-strdt but you'd need sparql anything to present you the raw (json) string value |
Beta Was this translation helpful? Give feedback.
-
Hi @rybesh -- this seems to make a lot of sense. I would also add that a generalised solution would be useful, as I've seen similar situations with the XML content as well. So, if you want to explore how to implement something like that for JSON, that could be a good start. You have my full support :) |
Beta Was this translation helpful? Give feedback.
-
Proposal
Define an option
fx:json.literalize
that takes a JSON key as a value. When processing JSON, values associated with this key will become literal values created by stringifying the JSON value. By default it would produce strings, but a datatype URI could be provided to produce another datatype (e.g.geo:geoJSONLiteral
)Motivation
GeoSPARQL 1.1 defines a datatype for GeoJSON literals,
geo:geoJSONLiteral
. Example:Currently the JSON triplifier parses entire JSON trees into RDF. When it does this with GeoJSON geometry objects like the
Point
above, it turns them into RDF lists. (This gets very ugly withMultiPolygon
s.)But we never want to access individual coordinate values in GeoJSON geometry objects. We do not want to “open them up” at all; instead they should be treated as opaque literal values.
Beta Was this translation helpful? Give feedback.
All reactions