?person rdf:type foaf:PersonTriple pattern specifies that the variable ?person (the subject) is of the type foaf:Person (the object). Here the type rdf:type is the predicate?person foaf:name ?nameTriple pattern specifies that the variable ?person (the subject) has a property foaf:name which is the variable ?name foaf:Person (the object) Here the property foaf:name is the predicatePREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?name ?email WHERE { ?person a foaf:Person . ?person foaf:name ?name . ?person foaf:mbox ?email . }This request will retrieve the name and email for all the individuals of the
Person class in the foaf ontology.
Feature: a spatial phenomenon. Basically, your object which have a geometry must be subclasses of this classGeometry: a set of geometrical positionsPREFIX geo: <http://www.opengis.net/ont/geosparql#> PREFIX geof: <http://www.opengis.net/def/function/geosparql/> SELECT ?what WHERE { ?what geo:hasGeometry ?geometry . FILTER(geof:sfWithin(?geometry, "POLYGON((-77.089005 38.913574,-77.029953 38.913574,-77.029953 38.886321,-77.089005 38.886321,-77.089005 38.913574))"^^geo:wktLiteral)) }
PREFIX geo: <http://www.opengis.net/ont/geosparql#> PREFIX geof: <http://www.opengis.net/def/function/geosparql/> SELECT ?what WHERE { ?what geo:hasGeometry ?geometry . FILTER(geof:sfWithin(?geometry, "POLYGON((-77.089005 38.913574,-77.029953 38.913574,-77.029953 38.886321,-77.089005 38.886321,-77.089005 38.913574))"^^geo:wktLiteral)) }
Copyright 2025 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence