query-5b99a026e61d54ac2e1aeb68756f3d5b
Alle Bundesinstitute, die an NFDI beteiligt sind!
Use at
- https://query.wikidata.org/sparql
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 ?w ?wLabel ?affiliationTypeLabel ?p ?pLabel
WHERE
{
{
?w wdt:P31/wdt:P279* wd:Q314024
} UNION {
?w wdt:P463 wd:Q627618
} UNION {
?w wdt:P749*/wdt:P31 wd:Q896375 .
} UNION {
?w wdt:P31 wd:Q3726309 .
}
{
?w wdt:P463 wd:Q105757481 .
} UNION {
?p wdt:P31 wd:Q98270496 .
?p p:P1416 ?statement .
?statement ps:P1416 ?w .
OPTIONAL { ?statement pq:P3831 ?affiliationType .}
}
BIND(IF(! Bound(?affiliationType), "Vereinsmitglied", ?affiliationTypeLabel) AS ?affiliationTypeLabel)
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
} ORDER BY ASC(?wLabel) ASC(?affiliationTypeLabel) ASC(?pLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?affiliationType")
v8("?affiliationTypeLabel"):::projected
v5("?p"):::projected
v3("?pLabel"):::projected
v6("?statement")
v4("?w"):::projected
v1("?wLabel"):::projected
a1((" "))
a2((" "))
c3(["wd:Q314024"]):::iri
c9(["wd:Q105757481"]):::iri
c8(["wd:Q3726309"]):::iri
c15(["bd:serviceParam"]):::iri
c7(["wd:Q896375"]):::iri
c17(["de,en"]):::literal
c10(["wd:Q98270496"]):::iri
c5(["wd:Q627618"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
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;
v4 --"p:direct/P31"--> c8
end
subgraph union2r[" "]
style union2r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P749"--> a2
a2 --"p:direct/P31"--> c7
end
union2r <== or ==> union2l
end
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P463"--> c5
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
end
union0r <== or ==> union0l
end
subgraph union3[" Union "]
subgraph union3l[" "]
style union3l fill:#abf,stroke-dasharray: 3 3;
v5 --"p:direct/P31"--> c10
v5 --"p:P1416"--> v6
v6 --"p:statement/P1416"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v6 -."p:qualifier/P3831".-> v7
end
end
subgraph union3r[" "]
style union3r fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P463"--> c9
end
union3r <== or ==> union3l
end
bind0[/"if(not bound(?affiliationType),'Vereinsmitglied',?affiliationTypeLabel)"/]
v7 --o bind0
v8 --o bind0
bind0 --as--o v8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c15 --"wikibase:language"--> c17
end