query-e27d6fe663acaa163ce09ce4edd50e65
Embassy, High Commission & consulate items metadata
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 ?P31Label ?P17Label ?P131Label ?P137Label ?P361Label ?P2388Label ?Twitter WHERE
{
?item wdt:P31/wdt:P279* wd:Q213283 .
?item wdt:P137 wd:Q145.
optional {?item wdt:P31 ?P31 . }
optional {?item wdt:P17 ?P17 . }
optional {?item wdt:P131 ?P131 . }
optional {?item wdt:P137 ?P137 . }
optional {?item wdt:P361 ?P361 . }
optional {?item wdt:P2388 ?P2388 . }
optional {?item wdt:P2002 ?Twitter . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?P131")
v5("?P137")
v3("?P17")
v7("?P2388")
v2("?P31")
v6("?P361")
v8("?Twitter"):::projected
v1("?item"):::projected
a1((" "))
c3(["wd:Q213283"]):::iri
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c5(["wd:Q145"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P137"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P17".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P131".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P137".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P361".-> v6
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2388".-> v7
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2002".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end