query-c67f86082f966362c994008f60fe6a81

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
select distinct ?item ?itemLabel (group_concat(distinct ?locatedLabel;separator=", ") as ?ll) ?image ?coordo (GROUP_CONCAT(distinct ?site;separator=", ") 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 .
     ?located rdfs:label ?locatedLabel . filter(lang(?locatedLabel)="fr")}
     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 ?image ?coordo

Query found at

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