query-01d52e71d06484f78f3145a2211aaf1a
TODO
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 ?en_label ?mi_label WHERE {
?item wdt:P31 wd:Q28564.
?item wdt:P17 wd:Q664 .
optional {?item rdfs:label ?en_label . filter(lang(?en_label)="en") }
optional {?item rdfs:label ?mi_label . filter(lang(?mi_label)="mi") }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?en_label"):::projected
v3("?item"):::projected
v1("?mi_label"):::projected
c6(["wd:Q664"]):::iri
c4(["wd:Q28564"]):::iri
v3 --"wdt:P31"--> c4
v3 --"wdt:P17"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."rdfs:label".-> v1
end