query-34ccdac3a71b9ffbf638d3bcdda1720e

rq turtle/ttl

TODO

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?date WHERE {
    SERVICE wikibase:around {
      ?item wdt:P625 ?location .
      bd:serviceParam wikibase:center "Point(-3.04 56.21)"^^geo:wktLiteral .
      bd:serviceParam wikibase:radius "60" .
    }

  ?item wdt:P31/wdt:P279* wd:Q41176 . 

  ?item wdt:P571 ?date . 
  FILTER("1800-00-00"^^xsd:date <= ?date &&
         ?date < "1900-00-00"^^xsd:dat)

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by ?date limit 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?date"):::projected v2("?item"):::projected v3("?location") a1((" ")) c12(["wd:Q41176"]):::iri c7([sPoint(-3.04 56.21)^^<http://www.opengis.net/ont/geosparql#wktLiteral>"]):::literal c5(["bd:serviceParam"]):::iri c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal c9(["60"]):::literal f0[["'1800-00-00^^xsd:date' <= ?date?date < s1900-00-00^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f0 --> v1 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v2 --"wdt:P625"--> v3 c5 --"wikibase:center"--> c7 c5 --"wikibase:radius"--> c9 end v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c12 v2 --"wdt:P571"--> v1 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c5 --"wikibase:language"--> c16 end