query-23464bbbe2654a37551a6a131e288efb

rq turtle/ttl

NFDI institutions (and persons) that are linked as people

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#>
#defaultView:Table
SELECT DISTINCT ?p ?pLabel ?role ?roleLabel ?w ?wLabel
# ?p:consortium, ?w:person or institution
WHERE
{
  ?p wdt:P31 wd:Q98270496 ;
  p:P710 ?statement .
  ?statement ps:P710 ?w .

  # type of role
  OPTIONAL { ?statement pq:P2868 ?role }

  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,[AUTO_LANGUAGE]" }
} ORDER BY (?roleLabel) (?pLabel) (?wLabel) # listing first institutions, then persons

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?p"):::projected v2("?pLabel"):::projected v7("?role"):::projected v1("?roleLabel"):::projected v5("?statement") v6("?w"):::projected v3("?wLabel"):::projected c7(["bd:serviceParam"]):::iri c9(["en,#91;AUTO_LANGUAGE#93;"]):::literal c2(["wd:Q98270496"]):::iri v4 --"p:direct/P31"--> c2 v4 --"p:P710"--> v5 v5 --"p:statement/P710"--> v6 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."p:qualifier/P2868".-> v7 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end