query-a43989958fc349baa02233fd624193c1
00:34, 12 July 2023 (UTC)) talk (Trilotat 20:46, 16 July 2023 (UTC)) talk (Finn Årup Nielsen (fnielsen): I am sorry I do not remember the original question. It is possible to use FILTER on the occupation. However, when a person has an ORCID that would usually mean that it is a researcher, so I think that those listed with your query above are only researchers. I see that there might be double-listings, because a researcher may have an entry in English Wikipedia, Wikimedia Commons, English Wikiquote, Wikispecies or other English language wiki. — Trilotat@
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?human ?humanLabel
?orcid
?article
WHERE {
{
SELECT
?human ?orcid ?article
WHERE {
{
SELECT
?human ?orcid ?article
WHERE {
?human wdt:P31 wd:Q5 ;
wdt:P496 ?orcid ;
^schema:about ?article .
?article schema:inLanguage "en" .
}
LIMIT 100 # Change if more humans should be returned
} FILTER EXISTS { ?human wdt:P106 / wdt:P279* wd:Q1650915 }
}
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?article"):::projected
v1("?human"):::projected
v2("?orcid"):::projected
a1((" "))
c9(["en"]):::literal
c11(["bd:serviceParam"]):::iri
c5(["wd:Q5"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q1650915"]):::iri
f0[[" "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P106"--> e0a1
e0a1 --"wdt:P279"--> e0c3
e0v1("?human"):::projected
e0a1((" ")):::projected
e0c3(["wd:Q1650915"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> c3
v1 --"wdt:P106"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P31"--> c5
v1 --"wdt:P496"--> v2
v3 --"schema:about"--> v1
v3 --"schema:inLanguage"--> c9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end