query-8eb157d86d22e53d76d95cf861a42483
Requête avec labels et descriptions manquantes en français pour les joueurs d'échecs : Wikidata:Request_a_query/Archive/2022/09#Having a simple query with missing labels and descriptions
Use at
- https://query.wikidata.org/sparql
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 ;
wdt:P1532 wd:Q142 ;
wdt:P21 wd:Q6581097 .
{ 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
c8(["wd:Q6581097"]):::iri
c13(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c4(["wd:Q10873124"]):::iri
c15(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q142"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P106"--> c4
v1 --"wdt:P1532"--> c6
v1 --"wdt:P21"--> c8
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 --> c11
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 --> c10
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;
c13 --"wikibase:language"--> c15
end