Jump to content

Wikibase:SPARQL examples

From SITYS

Basic examples

All items

SELECT ?item ?itemLabel WHERE {
  ?item wikibase:sitelinks [] .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
LIMIT 10

All types

SELECT DISTINCT ?type WHERE {
  [] rdf:type ?type .
}