SPARQL examples
Appearance
This page is automatically parsed by the query page to provide examples.
Simple Queries
Complete Dependency Graph
{{#widget:SPARQLquery|code=
- defaultView:Graph
PREFIX grt: <https://graphit.ur.de/prop/direct/> SELECT ?item ?itemLabel ?class ?classLabel ?image ?dependency ?dependencyLabel WHERE {
?item grt:P1 ?dependency.
?item grt:P2 ?class
OPTIONAL{ ?item grt:P9 ?image.}
OPTIONAL{ ?class grt:P9 ?image.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} }}