query-b20c49210f2370ab54278c09fa842808
principal areas of Wales - identifiers - Part 2 SELECT ?item ?itemLabel ?_OpenStreetMap_Relation_identifier ?_GND_ID ?_VIAF_ID ?_LCAuth_ID ?_Encyclop_dia_Britannica_Online_ID WHERE { ?item wdt:P31 wd:Q15979307. SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } OPTIONAL { ?item wdt:P402 ?_OpenStreetMap_Relation_identifier. } OPTIONAL { ?item wdt:P227 ?_GND_ID. } OPTIONAL { ?item wdt:P214 ?_VIAF_ID. } OPTIONAL { ?item wdt:P244 ?_LCAuth_ID. } OPTIONAL { ?item wdt:P1417 ?_Encyclop_dia_Britannica_Online_ID. } }
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#>
#principal areas of Wales - identifiers - Part 2
SELECT ?item ?itemLabel ?_OpenStreetMap_Relation_identifier ?_GND_ID ?_VIAF_ID ?_LCAuth_ID ?_Encyclop_dia_Britannica_Online_ID WHERE {
?item wdt:P31 wd:Q15979307.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
OPTIONAL { ?item wdt:P402 ?_OpenStreetMap_Relation_identifier. }
OPTIONAL { ?item wdt:P227 ?_GND_ID. }
OPTIONAL { ?item wdt:P214 ?_VIAF_ID. }
OPTIONAL { ?item wdt:P244 ?_LCAuth_ID. }
OPTIONAL { ?item wdt:P1417 ?_Encyclop_dia_Britannica_Online_ID. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?_Encyclop_dia_Britannica_Online_ID"):::projected
v3("?_GND_ID"):::projected
v5("?_LCAuth_ID"):::projected
v2("?_OpenStreetMap_Relation_identifier"):::projected
v4("?_VIAF_ID"):::projected
v1("?item"):::projected
c4(["bd:serviceParam"]):::iri
c2(["wd:Q15979307"]):::iri
c6(["en"]):::literal
v1 --"wdt:P31"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P402".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P227".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P214".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P244".-> v5
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1417".-> v6
end