query-8920438427ccf765a337e6d43f68aa44

rq turtle/ttl

Alle verklaringen van een item die een ander item bevatten (directe / eerste graad verbindingen)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Graph
#TEMPLATE={ "template": { "en": "All statements of ?item containing another item" }, "variables": { "?item": {} } }
SELECT ?item ?itemLabel ?itemImage ?value ?valueLabel ?valueImage ?edgeLabel WHERE {
  BIND(wd:Q12345 AS ?item)
  ?item ?wdt ?value.
  ?edge a wikibase:Property;
        wikibase:propertyType wikibase:WikibaseItem; # nb: om alle verklaringen te tonen, is het verwijderen van dit niet voldoende, de grafiekweergave toont alleen entiteiten
        wikibase:directClaim ?wdt.
  OPTIONAL { ?item wdt:P18 ?itemImage. }
  OPTIONAL { ?value wdt:P18 ?valueImage. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?edge") v1("?item"):::projected v5("?itemImage"):::projected v3("?value"):::projected v6("?valueImage"):::projected v2("?wdt") c8(["bd:serviceParam"]):::iri c2(["wikibase:Property"]):::iri c10(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal c4(["wikibase:WikibaseItem"]):::iri bind0[/"'wd:Q12345'"/] bind0 --as--o v1 v1 -->v2--> v3 v4 --"a"--> c2 v4 --"wikibase:propertyType"--> c4 v4 --"wikibase:directClaim"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P18".-> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end