query-4d556b782383a457c1e449ed6b980105
... only those which are active in NFDI!
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 ?p ?pLabel ?affiliationTypeLabel
WHERE
{
?w wdt:P463 wd:Q627618 .
{
?w wdt:P463 wd:Q105757481 .
} UNION {
?p wdt:P31 wd:Q98270496 .
?p p:P1416 ?statement .
?statement ps:P1416 ?w .
OPTIONAL { ?statement pq:P3831 ?affiliationType .}
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
} ORDER BY ASC(?affiliationTypeLabel) ASC(?wLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?affiliationType")
v1("?affiliationTypeLabel"):::projected
v4("?p"):::projected
v5("?statement")
v3("?w"):::projected
v2("?wLabel"):::projected
c10(["bd:serviceParam"]):::iri
c3(["wd:Q105757481"]):::iri
c12(["de,en"]):::literal
c5(["wd:Q98270496"]):::iri
c2(["wd:Q627618"]):::iri
v3 --"p:direct/P463"--> c2
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v4 --"p:direct/P31"--> c5
v4 --"p:P1416"--> v5
v5 --"p:statement/P1416"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:qualifier/P3831".-> v6
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"p:direct/P463"--> c3
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end