Description
https://w3c.github.io/json-ld-syntax/#json-literals shows how a piece of the JSON can be captured as datatyped literal "..."^^rdf:JSON
@situx @nicholascar @mathib @dr-shorthair
opengeospatial/ogc-geosparql#1 discusses the new GeoSPARQL 1.1 geo:geoJSONLiteral. According to the standard, such geometry serialization must both be connected by a specific property, and carry a specific datatype:
<geometry> geo:asGeoJSONLiteral "..."^^geo:geoJSONLiteral
@gkellogg Is it possible to somehow "retype" a rdf:JSON
literal to a specific datatype geo:geoJSONLiteral
?
It's easy enough to do this post-factum (eg with a SPARQL update), but seems unsatisfactory...
Perhaps something like this can be added:
"@context": {
"@version": 1.1,
"geo": "http://www.opengis.net/ont/geosparql#",
"myGeom": {"@id": "geo:asGeoJSONLiteral", "@type": "@json", "@json": "geo:geoJSONLiteral"}
}
Notice the last key: this is similar to "@nest": "labels"
in https://w3c.github.io/json-ld-syntax/#example-defining-property-nesting
Metadata
Metadata
Assignees
Type
Projects
Status