query-02a3a8377f12609f9225c725993622f7
NFDI institutions that lack a geo location
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#>
#defaultView:Table
SELECT DISTINCT ?p ?pLabel ?affiliationType ?affiliationTypeLabel ?w ?wLabel ?geoLoc ?geoHead
# ?p:consortium, ?w:institution
WHERE
{
?p wdt:P31 wd:Q98270496 ;
p:P1416 ?statement .
?statement ps:P1416 ?w .
# type of affiliation
OPTIONAL { ?statement pq:P3831 ?affiliationType }
# location of institution
OPTIONAL { ?w wdt:P625 ?geoLoc }
# location of headquarters of institution
OPTIONAL { ?w (wdt:P159/wdt:P625) ?geoHead }
FILTER NOT EXISTS { ?w wdt:P625 ?geoLoc }
FILTER NOT EXISTS { ?w (wdt:P159/wdt:P625) ?geoHead }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,[AUTO_LANGUAGE]" }
} ORDER BY (?pLabel) (?affiliationTypeLabel) (?wLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v9("?affiliationType"):::projected
v2("?affiliationTypeLabel"):::projected
v5("?geoHead"):::projected
v6("?geoLoc"):::projected
v7("?p"):::projected
v1("?pLabel"):::projected
v8("?statement")
v4("?w"):::projected
v3("?wLabel"):::projected
a2((" "))
a1((" "))
c9(["bd:serviceParam"]):::iri
c11(["en,#91;AUTO_LANGUAGE#93;"]):::literal
c4(["wd:Q98270496"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"p:direct/P159"--> e0a1
e0a1 --"p:direct/P625"--> e0v2
e0v2("?geoHead"):::projected
e0v1("?w"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v4
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> v5
v4 --"p:direct/P159"--> a1
a1 --"p:direct/P625"--> v5
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"p:direct/P625"--> e1v2
e1v2("?geoLoc"):::projected
e1v1("?w"):::projected
end
f1--EXISTS--> f1e1
f1 --> v4
f1 --> c2
f1 --> v6
v4 --"p:direct/P625"--> v6
v7 --"p:direct/P31"--> c4
v7 --"p:P1416"--> v8
v8 --"p:statement/P1416"--> v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v8 -."p:qualifier/P3831".-> v9
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P625".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:direct/P159".-> a2
a2 --"p:direct/P625"--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end