Home › SPARQL

SPARQL

Query
SPARQL query link (copy for curl; the # in FROM IRIs becomes %23)

FROM — selecting the data

Every query needs at least one FROM (or FROM NAMED); the processor fetches those documents and queries over them. Only THIS wrapper's documents are permitted, and relative IRIs resolve against the wrapper root — so the same query works on any deployment:

Several FROM clauses merge into one graph. A # inside a FROM IRI must be written %23.

GeoSPARQL functions

The processor registers the GeoSPARQL 1.1 function suite (OGC 22-047r1). Functions operate on geo:wktLiteral and geo:gmlLiteral typed literals — the form produced by all data sources here. Common functions relevant to this dataset:

Topological relations (DE-9IM / Simple Features) return a boolean for a pair of geometries:

Use PREFIX geof: <http://www.opengis.net/def/function/geosparql/>.

A non-standard helper returns a geometry's topological dimension as an integer (0 point, 1 curve, 2 surface):

Use PREFIX fn: <https://inspirewrap.ontologycentral.com/vocab/fn#>. These reproduce the ATKIS SK50 styling-rule predicates (mdl:geo_crosses → geof:sfCrosses, mdl:geo_isArea → fn:dimension(?g) = 2, etc.). See the example dropdown above for working queries.