query-84d54ac4328ee8d0bba25fe45cce8a4f

rq turtle/ttl

TODO

Use at

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 ?locatedLabel ?image ?coordo (GROUP_CONCAT(?site) as ?sites) WHERE {
  VALUES ?item {wd:Q1588452}
  ?item wdt:P31/wdt:P279* wd:Q7075 ;
        wdt:P17 wd:Q16 ;
        wdt:P131/wdt:P131* wd:Q176 ;
     optional {?item wdt:P131 ?located .}
     optional {?item wdt:P18 ?image .}
     optional {?item wdt:P625 ?coordo .}
     optional {?item wdt:P856 ?site .}
  service wikibase:label { bd:serviceParam wikibase:language "fr". }
} group by ?item ?itemLabel ?locatedLabel ?image ?coordo

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?coordo"):::projected v3("?image"):::projected v1("?item"):::projected v2("?located") v5("?site"):::projected v6("?sites") a1((" ")) a2((" ")) c14(["fr"]):::literal c3(["wd:Q7075"]):::iri c5(["wd:Q16"]):::iri c12(["bd:serviceParam"]):::iri c7(["wd:Q176"]):::iri bind0[/VALUES ?item/] bind0-->v1 bind00(["wd:Q1588452"]) bind00 --> bind0 v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P17"--> c5 v1 --"wdt:P131"--> a2 a2 --"wdt:P131"--> c7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P131".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P625".-> v4 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P856".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end bind2[/"?site"/] v5 --o bind2 bind2 --as--o v6