Wednesday, 31 July 2019

My SPARQL query to finding wikidata items Which does not have labels

I would like to get SPARQL query for finding wikidata items ( ?item wdt:P106 wd:Q11900058 ) Which does not have labels and descriptions in language(ml/ar). So that I can add labels and descriptions in those languages. --Akbarali (talk) 09:56, 16 July 2019 (UTC)

#no label
SELECT ?item ?itemLabel ?itemDesc_ml
WHERE 
{
  ?item wdt:P106 wd:Q11900058 .
  filter not exists {?item rdfs:label ?itemLabel_ml . filter(lang(?itemLabel_ml)="ml")}
  optional {?item schema:description ?itemDesc_ml . filter(lang(?itemDesc_ml)="ml")}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

To try this
Prepared Credit for Tagishsimon 

0 comments:

Post a Comment