query-8f97ecd46846d453f07ad6b9f8f95a01
TODO
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#>
SELECT ?item ?itemLabel ?ad WHERE { # ?itemLabel ?im
?item wdt:P373 "Kolonia Staszica (Ruda Śląska)".
optional{ ?item wdt:P18 ?im}.
optional{ ?item wdt:P969 ?ad}.
SERVICE wikibase:label { bd:serviceParam wikibase:language "pl" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?ad"):::projected
v2("?im")
v1("?item"):::projected
c2(["Kolonia Staszica (Ruda Śląska)"]):::literal
c6(["bd:serviceParam"]):::iri
c8(["pl"]):::literal
v1 --"wdt:P373"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P969".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end