Skip to content

Instantly share code, notes, and snippets.

@gatemezing
Created October 10, 2014 08:46
Show Gist options
  • Save gatemezing/7c6d31b24e809c9020bd to your computer and use it in GitHub Desktop.
Save gatemezing/7c6d31b24e809c9020bd to your computer and use it in GitHub Desktop.
Factforge bounding box use case - Eurecom and Eiffel Tower
# Second level administrative units in France
# in FactForge between Eurecom and Eiffel Tower total 36
# using omgeo:within ( )
PREFIX omgeo: <http://www.ontotext.com/owlim/geo#>
PREFIX geo-ont: <http://www.geonames.org/ontology#>
SELECT DISTINCT ?link ?m
WHERE {
?link geo-ont:name ?m.
?link geo-ont:featureCode geo-ont:A.ADM2 .
?link geo-ont:parentCountry dbpedia:France .
?link geo-pos:lat ?lat2 .
?link geo-pos:long ?long2 .
?link omgeo:within( 43.6266 2.2942 48.8628 7.0463 ) .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment