Jump to content

Wikibase:SPARQL examples

From SITYS
Revision as of 12:45, 7 October 2026 by Admin (talk | contribs) (Initial SPARQL examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 .
}