GeoSPARQL
GeoSPARQL is a model for representing and querying geospatial linked data for the Semantic Web. It is standardized by the Open Geospatial Consortium as OGC GeoSPARQL.
As of version 1.1, published in 2024, a validator for RDF data to meet GeoSPARQL patterns is also supplied, using SHACL as well as a Simple Features hierarchy of geometry classes and a vocabulary of GeoSPARQL rules and functions.
The definition of a small ontology based on well-understood OGC standards is intended to provide a standardized exchange basis for geospatial RDF data which can support both qualitative and quantitative spatial reasoning and querying with the SPARQL database query language.
The Ordnance Survey Linked Data Platform uses OWL mappings for GeoSPARQL equivalent properties in its vocabulary. The LinkedGeoData data set is a work of the Agile Knowledge Engineering and Semantic Web (AKSW) research group at the University of Leipzig, a group mostly known for DBpedia, that uses the GeoSPARQL vocabulary to represent OpenStreetMap data.
In particular, GeoSPARQL provides for:
- a small topological ontology in RDFS/OWL for representing Features and Geometries
- serializations of geometry position (coordinate) literals
- Geography Markup Language (GML), well-known text representation of geometry (WKT), GeoJSON, Keyhole Markup Language (KML) and a placeholder for discrete global grid (DGGS) representations
- Simple Features, RCC8, and DE-9IM (a.k.a. Clementini, Egenhofer) topological relationship vocabularies and ontologies for qualitative reasoning, and
- a SPARQL query interface using
- a set of topological SPARQL extension functions for quantitative reasoning, and
- a set of Rule Interchange Format (RIF) Core inference rules for query transformation and interpretation.