query-8c67186ecb1b75d4f3158a9e498604b1

rq turtle/ttl

Graph visualisation of the entire Khalili data set

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#>
SELECT ?item1 ?image ?item1Label ?item2 ?image2 ?item2Label ?edgeLabel
WHERE {
   { SELECT ?item1 WHERE {
?item1 wdt:P195?/wdt:P361? wd:Q63160499
} }
   {SELECT (?item1 AS ?item2) WHERE { { SELECT ?item1 WHERE {
?item1 wdt:P195?/wdt:P361? wd:Q63160499
} }} }
?item1 ?prop ?item2.
?edge wikibase:directClaim ?prop ; a wikibase:Property
OPTIONAL {?item1 wdt:P18 ?image}
OPTIONAL {?item2 wdt:P18 ?image2}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?edge") v5("?image"):::projected v6("?image2"):::projected v1("?item1"):::projected v2("?item2"):::projected v3("?prop") a1((" ")) a2((" ")) c9(["bd:serviceParam"]):::iri c6(["wikibase:Property"]):::iri c2(["wd:Q63160499"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P195"--> a1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; end union0r <== or ==> union0l end subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; a1 --"wdt:P361"--> c2 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; end union1r <== or ==> union1l end subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P195"--> a2 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; end union2r <== or ==> union2l end subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; a2 --"wdt:P361"--> c2 end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; end union3r <== or ==> union3l end bind0[/"?item1"/] v1 --o bind0 bind0 --as--o v2 v1 -->v3--> v2 v4 --"wikibase:directClaim"--> v3 v4 --"a"--> c6 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; v2 -."wdt:P18".-> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end