Skip to content

Instantly share code, notes, and snippets.

@baskaufs
Created November 12, 2018 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baskaufs/78ba7892c8e4a8525be156944756fa22 to your computer and use it in GitHub Desktop.
Save baskaufs/78ba7892c8e4a8525be156944756fa22 to your computer and use it in GitHub Desktop.
query
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