query-f39d13b1c59b4853c017ac928382f4be
Category A listed buildingsLacking images in a place; filter (inactivated) example is Perth.
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT DISTINCT (?mapcolor as?layer) ?monmntLabel ?monmnt ?gotimg ?placedescLabel ?statloc ?articleEN WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
{?monmnt wdt:P1435 wd:Q10729054}.# UNION {?monmnt wdt:P1435 wd:Q10729125}.
?monmnt wdt:P1435 ?listAB.
?monmnt wdt:P84 ?architect.
?monmnt wdt:P131 ?towndesc. #wd:Q68816359.
FILTER (?towndesc=wd:Q55934339).#Clacks wd:Q207268, Stirling Q182923
optional {?monmnt wdt:P18 ?gotimg.}.
optional {?monmnt wdt:P31 ?placedesc.}
?monmnt wdt:P625 ?statloc.
?sitelink schema:about ?monmnt .
OPTIONAL {?articleEN schema:about ?monmnt . ?articleEN schema:isPartOf <https://en.wikipedia.org/> .}.
?architect rdfs:label ?mapcolor. FILTER(LANG(?mapcolor) = "en").
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?architect")
v10("?articleEN"):::projected
v6("?gotimg"):::projected
v11("?layer")
v4("?listAB")
v1("?mapcolor"):::projected
v3("?monmnt"):::projected
v7("?placedesc")
v9("?sitelink")
v8("?statloc"):::projected
v2("?towndesc")
c8(["wd:Q10729054"]):::iri
c16([https://en.wikipedia.org/]):::iri
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?mapcolor = 'en'"]]
f0 --> v1
f1[["?towndesc = 'wd:Q55934339'"]]
f1 --> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
v3 --"wdt:P1435"--> c8
v3 --"wdt:P1435"--> v4
v3 --"wdt:P84"--> v5
v3 --"wdt:P131"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v6
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P31".-> v7
end
v3 --"wdt:P625"--> v8
v9 --"schema:about"--> v3
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v10 -."schema:about".-> v3
v10 --"schema:isPartOf"--> c16
end
v5 --"rdfs:label"--> v1
bind2[/"?mapcolor"/]
v1 --o bind2
bind2 --as--o v11