query-82bd6105522d2728f70813450170e5c6

rq turtle/ttl

NFDI people that lack an ORCID

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 ?ORCID
# ?p:consortium, ?w:person
WHERE
{
  ?p wdt:P31 wd:Q98270496 ;
  p:P710 ?statement .
  ?statement ps:P710 ?w .

  # type of role
  OPTIONAL { ?statement pq:P2868 ?role }
  # ORCID
  OPTIONAL { ?w wdt:P496 ?ORCID }

  FILTER EXISTS { ?statement pq:P2868 ?role }
  FILTER NOT EXISTS { ?w wdt:P496 ?ORCID }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,[AUTO_LANGUAGE]" }
} ORDER BY (?pLabel) (?roleLabel) (?wLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?ORCID"):::projected v8("?p"):::projected v1("?pLabel"):::projected v7("?role"):::projected v2("?roleLabel"):::projected v6("?statement") v4("?w"):::projected v3("?wLabel"):::projected c8(["bd:serviceParam"]):::iri c10(["en,#91;AUTO_LANGUAGE#93;"]):::literal c4(["wd:Q98270496"]):::iri f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"p:direct/P496"--> e0v2 e0v2("?ORCID"):::projected e0v1("?w"):::projected end f0--EXISTS--> f0e0 f0 --> v4 f0 --> c1 f0 --> v5 v4 --"p:direct/P496"--> v5 f1[[" "]] subgraph f1e1["Exists Clause"] e1v1 --"p:qualifier/P2868"--> e1v2 e1v2("?role"):::projected e1v1("?statement"):::projected end f1--EXISTS--> f1e1 f1 --> v6 f1 --> c2 f1 --> v7 v6 --"p:qualifier/P2868"--> v7 v8 --"p:direct/P31"--> c4 v8 --"p:P710"--> v6 v6 --"p:statement/P710"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v6 -."p:qualifier/P2868".-> v7 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:direct/P496".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end