query-4a536989c58d02604e850b57f2c71b13

rq turtle/ttl

Alle Konsortien, unqualifizierte Verbindungvgl. Lösung von Daniel Mietchen (s.o.)

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 ?consortium1Label ?organisationLabel ?consortium2Label
WHERE 
{
  ?consortium1 wdt:P1416 ?organisation .   
  ?consortium1 wdt:P31 wd:Q98270496 .
  ?consortium2 wdt:P31 wd:Q98270496 .
  FILTER (?consortium1 != ?consortium2)
  ?consortium2 p:P1416 ?statement .
  ?statement ps:P1416 ?organisation .
  #FILTER (?p != wd:Q98380340 )     # um KonsortSWD auszublenden
  OPTIONAL { ?statement pq:P3831 ?affiliationType .}  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de,en" . }
} ORDER BY ASC(?consortium1Label) ASC(?organisationLabel) ASC(?consortium2Label)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v8("?affiliationType") v4("?consortium1") v1("?consortium1Label"):::projected v5("?consortium2") v3("?consortium2Label"):::projected v6("?organisation") v2("?organisationLabel"):::projected v7("?statement") c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,de,en"]):::literal c3(["wd:Q98270496"]):::iri f0[["?consortium1 != ?consortium2"]] f0 --> v4 f0 --> v5 v4 --"p:direct/P1416"--> v6 v4 --"p:direct/P31"--> c3 v5 --"p:direct/P31"--> c3 v5 --"p:P1416"--> v7 v7 --"p:statement/P1416"--> v6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v7 -."p:qualifier/P3831".-> v8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end