query-9ca9a4d9cf1742d540a6960bcb621262

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 schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription ?citizenship ?citizenshipLabel WHERE {
  {
    SELECT ?item ?citizenship WHERE {
      ?item p:P106/ps:P106/wdt:P279* wd:Q26270618 .
      ?item wdt:P27 ?citizenship .
    }   
  }
  OPTIONAL {
    ?item schema:description ?descriptions .
    FILTER( LANG(?descriptions) = "fr" ) . 
  }
  FILTER(!BOUND(?descriptions))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?citizenship"):::projected v1("?descriptions") v2("?item"):::projected a1((" ")) a2((" ")) c9(["bd:serviceParam"]):::iri c5(["wd:Q26270618"]):::iri c1(["fr"]):::literal f0[["not bound(?descriptions)"]] f0 --> v1 v2 --"p:P106"--> a1 a1 --"p:statement/P106"--> a2 a2 --"p:direct/P279"--> c5 v2 --"p:direct/P27"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."schema:description".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c1 end