Project:SPARQL/examples: Difference between revisions

From Beyond Notability
Line 3,737: Line 3,737:
}
}
ORDER BY ?itemLabel ?unknown_value_forLabel
ORDER BY ?itemLabel ?unknown_value_forLabel
</sparql>
=== Items without any statements ===
<sparql tryit="1">
#title:items with 0 statements
# NB: because of the WQS disappearing data bugs, a few of the items might in reality have n>0 statements. A few may be intentionally empty.
SELECT distinct ?item  ?itemLabel
WHERE {
  ?item wikibase:statements 0 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,en-gb". }
}
order by ?item
</sparql>
</sparql>
3,427

edits