SPARQL examples: Difference between revisions

graphit>Admin
No edit summary
 
m (1 revision imported: Import pages from backup)
(No difference)

Revision as of 07:45, 13 April 2023

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