@prefix tt: . @prefix ottr: . @prefix rdf: . @prefix rdfs: . @prefix owl: . @prefix geo: . @prefix sf: . # General patterns, with nothing of the Bookshop Trail in them. # A feature and its geometry, as GeoSPARQL writes them: the feature has the geometry as # its default, and the geometry carries the WKT. ?kind is sf:Point unless a caller says # otherwise (a trail segment's line is an sf:LineString). tt:Geometry [ ! ottr:IRI ?feature, ! ottr:IRI ?geometry, rdfs:Literal ?wkt, ! owl:Class ?kind = sf:Point ] :: { ottr:Triple(?feature, rdf:type, geo:Feature), ottr:Triple(?feature, geo:hasGeometry, ?geometry), ottr:Triple(?feature, geo:hasDefaultGeometry, ?geometry), ottr:Triple(?geometry, rdf:type, geo:Geometry), ottr:Triple(?geometry, rdf:type, ?kind), ottr:Triple(?geometry, geo:asWKT, ?wkt) } . # A thing with an English (or other tagged) name, as rdfs:label. tt:Named [ ! ottr:IRI ?thing, ! owl:Class ?class, rdf:langString ?name ] :: { ottr:Triple(?thing, rdf:type, ?class), ottr:Triple(?thing, rdfs:label, ?name) } .