diff --git a/README.md b/README.md index 48d5a01..bd145b4 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Features with topology -This repository defines an extension to GeoJSON or FG-JSON definining topological relationships between features based on identifiers. +This repository defines an extension to GeoJSON or FG-JSON defining topological relationships between features based on identifiers. The set of components are listed [here](https://ogcincubator.github.io/topo-feature/) The implementation provides a JSON schema and a corresponding JSON-LD context that can turn topology references into object properties. -Topological consistency functions can be described using SHACL rules - for example that a Polygon geometry must reference LineStrings, and Linestrings must reference Point objects. +Topological consistency functions can be described using SHACL rules - for example that a Polygon geometry must reference LineStrings, and LineStrings must reference Point objects. This is extensible (unlike topoJSON) and can span features across any collection schemas used to group them. @@ -14,6 +14,6 @@ Using features rather than geometries as the topology reference allows arbitrary NB. GeoJSON simple geometries and TopoJSON compact topologies can be derived from the model if required. -[More information on design and usage](https://github.com/opengeospatial/bblock-template/blob/master/USAGE.md) +[More information on design and usage](https://ogcincubator.github.io/bblocks-docs/) diff --git a/_sources/features/topo-feature-collection/tests/topo-refs-exist.shacl b/_sources/features/topo-feature-collection/tests/topo-refs-exist.shacl index e2ff8d1..89c6a4f 100644 --- a/_sources/features/topo-feature-collection/tests/topo-refs-exist.shacl +++ b/_sources/features/topo-feature-collection/tests/topo-refs-exist.shacl @@ -40,12 +40,14 @@ topo:testTopoLinesReferencePoints prefix rdf: PREFIX rdfs: prefix geojson: + prefix dct: + PREFIX geosparql: SELECT $this (geojson:topology as ?path) (?ref as ?value) WHERE { $this geojson:relatedFeatures/rdf:rest*/rdf:first ?ref . FILTER NOT EXISTS { - ?ref geojson:geometry/rdf:type geojson:Point } + ?ref (geojson:geometry|geosparql:hasGeometry|dct:spatial)/rdf:type geojson:Point } } """ ; ] .