query-d3e1ab583c582c99a6906f32eb99158e
Need help to find items without description in special languageMoin Moin together, the SPARQL and I, long story. All I want is to find items without description but with a property in a language, this is my example, could somebody help me? (I find too few objects!)
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel
WHERE
{
?item wdt:P31 wd:Qxxxxxxx .
OPTIONAL { ?item schema:description ?itemDescription }
FILTER (!BOUND(?itemDescription))
SERVICE wikibase:label { bd:serviceParam wikibase:language "de"}
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?itemDescription")
c7(["de"]):::literal
c5(["bd:serviceParam"]):::iri
c2(["wd:Qxxxxxxx"]):::iri
f0[["not bound(?itemDescription)"]]
f0 --> v1
v2 --"wdt:P31"--> c2
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;
c5 --"wikibase:language"--> c7
end