query-e478f2e9c607602426c6e88092e97e5a
FIXME: this return duplicated values (more than one official site)
@see https://www.cdema.org/
SELECT DISTINCT ?item ?itemLabel ?country ?countryLabel ?operating_areaLabel ?official_website WHERE { wd:Q5039374 wdt:P710 ?item. OPTIONAL { ?item wdt:P17 ?country. } OPTIONAL { ?item wdt:P2541 ?operating_area. } OPTIONAL { ?item wdt:P856 ?official_website. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,fr,ru,es,ja,zh,ar". } } ORDER BY (?countryLabel) (?operating_areaLabel)
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#>
# FIXME: this return duplicated values (more than one official site)
# @see https://www.cdema.org/
SELECT DISTINCT ?item ?itemLabel ?country ?countryLabel ?operating_areaLabel ?official_website WHERE {
wd:Q5039374 wdt:P710 ?item.
OPTIONAL { ?item wdt:P17 ?country. }
OPTIONAL { ?item wdt:P2541 ?operating_area. }
OPTIONAL { ?item wdt:P856 ?official_website. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,fr,ru,es,ja,zh,ar". }
}
ORDER BY (?countryLabel) (?operating_areaLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?country"):::projected
v1("?countryLabel"):::projected
v3("?item"):::projected
v6("?official_website"):::projected
v5("?operating_area")
v2("?operating_areaLabel"):::projected
c9(["#91;AUTO_LANGUAGE#93;,en,de,fr,ru,es,ja,zh,ar"]):::literal
c7(["bd:serviceParam"]):::iri
c1(["wd:Q5039374"]):::iri
c1 --"wdt:P710"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P17".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P2541".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P856".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end