query-5f4c1ed653b95fb66de2ce8f614824f7
Art Nouveau / Jugendstil buildings
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 bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT DISTINCT (?mapcolour AS ?layer) ?towndescLabel ?monmntLabel ?monmnt ?placedescLabel ?statloc ?built ?herdesLabel ?gotimg WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
{?monmnt wdt:P149 wd:Q34636}.
?monmnt wdt:P131 ?towndesc.
optional {?monmnt wdt:P18 ?gotimg.}.
optional {{?monmnt wdt:P571 ?built.} UNION {?monmnt wdt:P1619 ?built.}}.
?monmnt wdt:P1435 ?herdes.
?monmnt wdt:P31 ?placedesc.
?monmnt wdt:P625 ?statloc.
BIND (IF (BOUND(?built), year(?built), 1800) AS ?dyr).
BIND( IF (?dyr < 1801, "0 Unknown", IF (?dyr < 1900, "1 C19", IF (?dyr < 1915, "2 Pre WW1", IF (?dyr < 1940, "3 Interwar", IF (?dyr < 2000, "4 Post WW2",
"5 Recent"))))) AS ?mapcolour).
}
ORDER BY ?mapcolour ?monmntLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?built"):::projected
v10("?dyr")
v5("?gotimg"):::projected
v7("?herdes")
v11("?layer")
v11("?mapcolour"):::projected
v3("?monmnt"):::projected
v2("?monmntLabel"):::projected
v8("?placedesc")
v9("?statloc"):::projected
v4("?towndesc")
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q34636"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v3 --"wdt:P149"--> c6
v3 --"wdt:P131"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v5
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v3 -."wdt:P1619".-> v6
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P571"--> v6
end
union0r <== or ==> union0l
end
end
v3 --"wdt:P1435"--> v7
v3 --"wdt:P31"--> v8
v3 --"wdt:P625"--> v9
bind0[/"if(bound(?built),year-from-dateTime(?built),'1800^^xsd:integer')"/]
v6 --o bind0
bind0 --as--o v10
bind1[/"if(?dyr < '1801^^xsd:integer','0 Unknown',if(?dyr < '1900^^xsd:integer','1 C19',if(?dyr < '1915^^xsd:integer','2 Pre WW1',if(?dyr < '1940^^xsd:integer','3 Interwar',if(?dyr < '2000^^xsd:integer','4 Post WW2','5 Recent')))))"/]
v10 --o bind1
bind1 --as--o v11
bind2[/"?mapcolour"/]
v11 --o bind2
bind2 --as--o v11