query-7ce0be2da75eefcf399d76416f0bef38
no description SELECT ?item ?itemLabel ?itemLabel_ml WHERE { ?item wdt:P106 wd:Q11900058 . optional {?item rdfs:label ?itemLabel_ml . filter(lang(?itemLabel_ml)="ml")} filter not exists {?item schema:description ?itemDesc_ml . filter(lang(?itemDesc_ml)="ml")} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
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#>
#no description
SELECT ?item ?itemLabel ?itemLabel_ml
WHERE
{
?item wdt:P106 wd:Q11900058 .
optional {?item rdfs:label ?itemLabel_ml . filter(lang(?itemLabel_ml)="ml")}
filter not exists {?item schema:description ?itemDesc_ml . filter(lang(?itemDesc_ml)="ml")}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/User_talk:Akbarali
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2019/07
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?itemDesc_ml")
v3("?itemLabel_ml"):::projected
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c4(["wd:Q11900058"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?itemDesc_ml = 'ml'"]]
e0f0 --> e0v1
e0v2 --"schema:description"--> e0v1
e0v2("?item"):::projected
e0v1("?itemDesc_ml"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> c2
f1[["?itemDesc_ml = 'ml'"]]
f1 --> v1
v2 --"schema:description"--> v1
v2 --"wdt:P106"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."rdfs:label".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end