Created
April 1, 2011 17:57
-
-
Save harschware/898562 to your computer and use it in GitHub Desktop.
Places of worship in Paris - Good example DBPedia Query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##### Found this query in an email posted by @kidehen (since lost to me) | |
| ##### query LOD cloud at http://lod.openlinksw.com/sparql/ | |
| ##### -or- via iSPARQL at http://lod.openlinksw.com/isparql/ <== can use Google maps to visualize | |
| ### construct a custom Linked Data Mesh (graph) about: | |
| ### places of worship, within 5 km of Paris, that have cafes in close proximity(0.2 km) | |
| ### Note: we have distinct pin colors that identify for places of worship distinct from cafes | |
| PREFIX rtb: <http://www.openlinksw.com/schemas/oat/rdftabs#> | |
| CONSTRUCT { ?cafe geo:geometry ?cafegeo ; | |
| rtb:useMarker '01' ; | |
| lgv:name ?cafename . | |
| ?church geo:geometry ?churchgeo ; | |
| lgv:religion ?religion; | |
| rtb:useMarker '02' ; | |
| lgv:name ?churchname. } | |
| WHERE { ?church a lgv:place_of_worship . | |
| ?church geo:geometry ?churchgeo ; | |
| lgv:name ?churchname; | |
| lgv:religion ?religion. | |
| ?cafe a lgv:cafe . | |
| ?cafe geo:geometry ?cafegeo . | |
| ?cafe lgv:name ?cafename . | |
| FILTER (bif:st_intersects (?churchgeo, bif:st_point (2.3498, 48.853), 5) && | |
| bif:st_intersects (?cafegeo, ?churchgeo, 0.2)) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment