query-076a914de15df5a1e0f3b540cc963f15

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 ?country ?countrylabel WHERE
{
  ?item wdt:P31/wdt:P279* wd:Q190107 .
  ?item wdt:P17 ?country .
           ?country rdfs:label ?countrylabel .
   SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
  FILTER((LANG(?countrylabel)) = "fr")
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?country"):::projected v1("?countrylabel"):::projected v2("?item"):::projected a1((" ")) c4(["wd:Q190107"]):::iri c8(["bd:serviceParam"]):::iri c1(["fr"]):::literal f0[["?countrylabel = 'fr'"]] f0 --> v1 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 v2 --"wdt:P17"--> v3 v3 --"rdfs:label"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c1 end