query-6643307447ceb33947a3ba8a11c7de26
GLAM-Items
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#>
SELECT DISTINCT ?item ?itemLabel
WHERE
{
?glamItem wdt:P279+ wd:Q1030034 .
?item wdt:P17 wd:Q183.
?item wdt:P31 ?glamItem.
?item wdt:P669 ?street.
?street wdt:P281 ?postalcode.
FILTER( CONTAINS( ?postalcode, "091")|| CONTAINS( ?postalcode, "09224") )
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?glamItem")
v3("?item"):::projected
v1("?postalcode")
v4("?street")
c13(["#91;AUTO_LANGUAGE#93;,de"]):::literal
c11(["bd:serviceParam"]):::iri
c6(["wd:Q183"]):::iri
c4(["wd:Q1030034"]):::iri
f0[["(contains(?postalcode,'091') || contains(?postalcode,'09224'))"]]
f0 --> v1
v2 --"wdt:P279"--> c4
v3 --"wdt:P17"--> c6
v3 --"wdt:P31"--> v2
v3 --"wdt:P669"--> v4
v4 --"wdt:P281"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end