query-a71f4db7ffb5b9aef8d89dd83aec0c22
TEMPLATE={ "template": "Living employees of ?company with no known ORCID ID", "variables": { "?company": { "query": "SELECT ?id ?idLabel WHERE { ?id wdt:P1128 ?numEmployees. } ORDER BY DESC(?numEmployees) LIMIT 100" } } }
Enter employer to find living employees with no known ORCID iD
SELECT DISTINCT ?person ?personLabel WHERE { BIND(wd:Q223429 AS ?company). ?person wdt:P31 wd:Q5. ?person wdt:P108 ?company. # employed at... FILTER NOT EXISTS { ?person wdt:P496 ?orcid. } # no ORCID iD FILTER NOT EXISTS { ?person wdt:P570 ?date. } # not dead SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } }
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 bd: <http://www.bigdata.com/rdf#>
#TEMPLATE={ "template": "Living employees of ?company with no known ORCID ID", "variables": { "?company": { "query": "SELECT ?id ?idLabel WHERE { ?id wdt:P1128 ?numEmployees. } ORDER BY DESC(?numEmployees) LIMIT 100" } } }
#Enter employer to find living employees with no known ORCID iD
SELECT DISTINCT ?person ?personLabel WHERE {
BIND(wd:Q223429 AS ?company).
?person wdt:P31 wd:Q5.
?person wdt:P108 ?company. # employed at...
FILTER NOT EXISTS { ?person wdt:P496 ?orcid. } # no ORCID iD
FILTER NOT EXISTS { ?person wdt:P570 ?date. } # not dead
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?company")
v2("?date")
v3("?orcid")
v1("?person"):::projected
c7(["bd:serviceParam"]):::iri
c4(["wd:Q5"]):::iri
c9(["en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P570"--> e0v2
e0v2("?date"):::projected
e0v1("?person"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
v1 --"wdt:P570"--> v2
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P496"--> e1v2
e1v2("?orcid"):::projected
e1v1("?person"):::projected
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c2
f1 --> v3
v1 --"wdt:P496"--> v3
bind2[/"'wd:Q223429'"/]
bind2 --as--o v4
v1 --"wdt:P31"--> c4
v1 --"wdt:P108"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end