query-5529a38669ff1351df7deb8710e47755

rq turtle/ttl

TEST: Dasselbe, aber mit Berücksichtigung, dass Applicants auch Teilorganisationen sein können.

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT  ?wsingular ?wsingularLabel ?affiliationTypeLabel ?p ?pLabel
WHERE 
{
  wd:Q98380340 wdt:P361*/wdt:P1416+/wdt:P361* ?wsingular .
  ?p wdt:P31 wd:Q98270496 .
  ?p p:P361*/p:P1416+/p:P361*  ?statement .
  ?statement ps:P361*/ps:P1416+/ps:P361*  ?wsingular .
  OPTIONAL { ?statement pq:P3831 ?affiliationType .}  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en" . }
} ORDER BY ASC(?wsingularLabel) ASC(?pLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?affiliationType") v4("?p"):::projected v2("?pLabel"):::projected v5("?statement") v3("?wsingular"):::projected v1("?wsingularLabel"):::projected a1((" ")) a2((" ")) a3((" ")) a4((" ")) a5((" ")) a6((" ")) c12(["bd:serviceParam"]):::iri c14(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal c5(["wd:Q98270496"]):::iri c1(["wd:Q98380340"]):::iri c1 --"p:direct/P361"--> a1 a1 --"p:direct/P1416"--> a2 a2 --"p:direct/P361"--> v3 v4 --"p:direct/P31"--> c5 v4 --"p:P361"--> a3 a3 --"p:P1416"--> a4 a4 --"p:P361"--> v5 v5 --"p:statement/P361"--> a5 a5 --"p:statement/P1416"--> a6 a6 --"p:statement/P361"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:qualifier/P3831".-> v6 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end