query-7ea5cba5c9229e8ed41927fc5b666e9d
mit Quickstatement:
Use at
- https://query.wikidata.org/sparql
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#>
SELECT ?item ?label_de ?id ?qs
WHERE
{
?item wdt:P131 wd:Q1731.
?item wdt:P1708 ?id.
optional {
?item wdt:P669 ?street.
}
?item rdfs:label ?label_de.
filter (lang(?label_de) = "de").
FILTER CONTAINS ( ?label_de, "Voglerstraße")
MINUS {
?item wdt:P669 []
}
BIND(concat(STR(?item),'##P669##Q63976279##P670##"',?label_de,'"') as ?qs)
} ORDER BY ?label_de
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?id"):::projected
v2("?item"):::projected
v1("?label_de"):::projected
v5("?qs"):::projected
v4("?street")
a1((" "))
c4(["wd:Q1731"]):::iri
f0[["contains(?label_de,'Voglerstraße')"]]
f0 --> v1
f1[["?label_de = 'de'"]]
f1 --> v1
v2 --"wdt:P131"--> c4
v2 --"wdt:P1708"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P669".-> v4
end
v2 --"rdfs:label"--> v1
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P669"--> a1
end
bind3[/"concat(str(?item),'##P669##Q63976279##P670##"',?label_de,'"')"/]
v2 --o bind3
v1 --o bind3
bind3 --as--o v5