query-3d2b9199b97f19bcc81aed868b5d0d3f

rq turtle/ttl

Duplicate properties in both graph (wd:P*)The query service exposes the RDF representation of properties. These can be used in some cases to navigate the graph without precisely naming the properties themselves, for instance listing all the direct claims of a given property that are linking another wikidata item:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item ?property ?value {
  VALUES (?item) {(wd:Q42)}
  ?item ?wdt ?value .
  ?property a wikibase:Property;
        wikibase:propertyType wikibase:WikibaseItem;
        wikibase:directClaim ?wdt.
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v4("?property"):::projected v3("?value"):::projected v2("?wdt") c2(["wikibase:Property"]):::iri c4(["wikibase:WikibaseItem"]):::iri bind0[/VALUES ?item/] bind0-->v1 bind00(["wd:Q42"]) bind00 --> bind0 v1 -->v2--> v3 v4 --"a"--> c2 v4 --"wikibase:propertyType"--> c4 v4 --"wikibase:directClaim"--> v2