SPARQL examples

Revision as of 22:02, 30 March 2023 by graphit>Admin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page is automatically parsed by the query page to provide examples.

Simple Queries

Complete Dependency Graph

#defaultView:Graph
SELECT ?item ?itemLabel ?class ?classLabel ?image ?dependency ?dependencyLabel WHERE {
  ?item wdt:P1 ?dependency.
  ?item wdt:P2 ?class
  OPTIONAL{ ?item wdt:P9 ?image.}
  OPTIONAL{ ?class wdt:P9 ?image.}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}