query-eb1429512b965cfb3ed7fecf81c6b0fd
Bibliotheken mit DE- ISIL SELECT ?item ?itemLabel ?isil ?partOfLabel WHERE { ?item wdt:P791 ?isil . FILTER (substr(str(?isil), 1, 3) = "DE-" ) . OPTIONAL { ?item wdt:P361 ?partOf } SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" } }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Bibliotheken mit DE- ISIL
SELECT ?item ?itemLabel ?isil ?partOfLabel WHERE
{
?item wdt:P791 ?isil .
FILTER (substr(str(?isil), 1, 3) = "DE-" ) .
OPTIONAL { ?item wdt:P361 ?partOf }
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?isil"):::projected
v2("?item"):::projected
v3("?partOf")
c7(["bd:serviceParam"]):::iri
c9(["de,en"]):::literal
f0[["substring(str(?isil),'1^^xsd:integer','3^^xsd:integer') = 'DE-'"]]
f0 --> v1
v2 --"wdt:P791"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P361".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end