query-4bf6930cd21eeb85f174b0d8765c9359

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel
WHERE {
  ?item wdt:P31 wd:Q5 ;
    wdt:P106 wd:Q10873124 .
  { FILTER NOT EXISTS { ?item rdfs:label ?frlabel . FILTER(LANG(?frlabel)="fr") } }
  UNION
  { FILTER NOT EXISTS { ?item schema:description ?frdesc . FILTER(LANG(?frdesc)="fr") } }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?frdesc") v2("?frlabel") v1("?item"):::projected c9(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c4(["wd:Q10873124"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P31"--> c2 v1 --"wdt:P106"--> c4 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; f0[["not "]] subgraph f0e0["Exists Clause"] e0f0[["?frdesc = 'fr'"]] e0f0 --> e0v1 e0v2 --"schema:description"--> e0v1 e0v1("?frdesc"):::projected e0v2("?item"):::projected end f0--EXISTS--> f0e0 f0 --> v3 f0 --> v1 f0 --> c7 f1[["?frdesc = 'fr'"]] f1 --> v3 v1 --"schema:description"--> v3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; f2[["not "]] subgraph f2e1["Exists Clause"] e1f0[["?frlabel = 'fr'"]] e1f0 --> e1v1 e1v2 --"rdfs:label"--> e1v1 e1v1("?frlabel"):::projected e1v2("?item"):::projected end f2--EXISTS--> f2e1 f2 --> v2 f2 --> v1 f2 --> c6 f3[["?frlabel = 'fr'"]] f3 --> v2 v1 --"rdfs:label"--> v2 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end