query-4b66df21dafc0b1ea64653101cdb82b0

rq turtle/ttl

Participants of an expedition in former Dutch East Indies

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 ?deelnemer ?deelnemerLabel ?NTAid ?VIAFid ?itemLabel ?item   
WHERE {
  { ?item wdt:P31 wd:Q2401485. }
  UNION
  { ?item wdt:P31 wd:Q366301. }
  { ?item wdt:P17 wd:Q188161. }#Nederlands-Indie, kolonie binnen NL
  UNION
  { ?item wdt:P17 wd:Q252. }#Indonesie
  UNION
  { ?item wdt:P17 wd:Q941881. }#Nederlands Nieuw Guinea
 SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
 { ?item wdt:P710 ?deelnemer. }
 OPTIONAL { ?deelnemer wdt:P1006 ?NTAid. }
 OPTIONAL { ?deelnemer wdt:P214 ?VIAFid. }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?NTAid"):::projected v4("?VIAFid"):::projected v2("?deelnemer"):::projected v1("?item"):::projected c2(["wd:Q2401485"]):::iri c3(["wd:Q366301"]):::iri c7(["wd:Q941881"]):::iri c9(["bd:serviceParam"]):::iri c5(["wd:Q188161"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q252"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c2 end union0r <== or ==> union0l end subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P17"--> c7 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P17"--> c6 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P17"--> c5 end union1r <== or ==> union1l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end v1 --"wdt:P710"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P1006".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P214".-> v4 end