query-53616982499ed09ad1cbfe90887bae41
Propertiesmain subject (P921)instance of (P31)subclass of (P279)part of (P361)facet of (P1269)author (P50)Archaeology Data Service person ID (P6734)ORCID iD (P496)
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#>
#defaultView:Table
SELECT ?count ?author ?authorLabel (COALESCE(?orcid_, CONCAT("orcid-search/quick-search/?searchQuery=", ?authorLabel)) AS ?orcid)
WHERE {
{
SELECT (count(?work) as ?count) ?author WHERE {
{ ?work wdt:P921/wdt:P31*/wdt:P279* wd:Q2415966 . }
union { ?work wdt:P921/wdt:P361+ wd:Q2415966 . }
union { ?work wdt:P921/wdt:P1269+ wd:Q2415966 . }
?work wdt:P50 ?author .
MINUS { ?author wdt:P6734 [] } .
}
GROUP BY ?author
}
# Include optional ORCID iD
OPTIONAL { ?author wdt:P496 ?orcid_ . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,da,de,es,fr,jp,nl,no,ru,sv,zh" . }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?author"):::projected
v4("?count"):::projected
v5("?orcid")
v4("?orcid_"):::projected
v2("?work")
a5((" "))
a1((" "))
a2((" "))
a3((" "))
a4((" "))
c13(["en,da,de,es,fr,jp,nl,no,ru,sv,zh"]):::literal
c11(["bd:serviceParam"]):::iri
c4(["wd:Q2415966"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
subgraph union1[" Union "]
subgraph union1l[" "]
style union1l fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P921"--> a4
a4 --"wdt:P1269"--> c4
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P921"--> a3
a3 --"wdt:P361"--> c4
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"wdt:P921"--> a1
a1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c4
end
union0r <== or ==> union0l
end
v2 --"wdt:P50"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P6734"--> a5
end
bind2[/"count(?work)"/]
v2 --o bind2
bind2 --as--o v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P496".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end
bind3[/"?orcid_concat('orcid-search/quick-search/?searchQuery=',?authorLabel)"/]
v4 --o bind3
null --o bind3
bind3 --as--o v5