query-87987cc557fb06f6eefb5b54944357f5
Map of scheduled monuments without a category on Commons
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Locations of scheduled monuments (27,557 in total as of 26 September 2019 - vastly under-represented in Wales)
#defaultView:Map
SELECT ?label ?coord ?subj
WHERE {
?subj wdt:P1435 wd:Q219538 ; # scheduled monument
wdt:P625 ?coord .
MINUS { ?subj wdt:P373 [] } . # Commons category
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?subj rdfs:label ?label}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coord"):::projected
v3("?label"):::projected
v1("?subj"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q219538"]):::iri
v1 --"wdt:P1435"--> c2
v1 --"wdt:P625"--> v2
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P373"--> a1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
v1 --"rdfs:label"--> v3
end