Created
November 12, 2018 18:52
-
-
Save baskaufs/78ba7892c8e4a8525be156944756fa22 to your computer and use it in GitHub Desktop.
query
This file contains 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
prefix dcterms: <http://purl.org/dc/terms/> | |
prefix skos: <http://www.w3.org/2004/02/skos/core#> | |
PREFIX lawd: <http://lawd.info/ontology/> | |
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> | |
SELECT * WHERE | |
{SELECT DISTINCT (COUNT(?place) AS ?count1) | |
WHERE { | |
graph <http://pelagios> | |
{ | |
?place a lawd:Place. | |
?place dcterms:title ?name. | |
?place geo:lat ?periLat. | |
?place geo:long ?periLong. | |
} | |
{ | |
SELECT DISTINCT (COUNT(?place) AS ?count2) | |
where{ | |
graph <http://syriaca.org/place> | |
{ | |
?place geo:location ?loc. | |
?loc geo:lat ?lat. | |
?loc geo:long ?long. | |
} | |
} | |
} | |
BIND(?count1-?count2 as ?diff) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment