query-de7fbae7d14bc67ed294bc00d4405067
Getty Union List of Artist Names links for Ashmolean artists
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#>
SELECT ?artist ?artistLabel (URI(CONCAT("http://vocab.getty.edu/page/ulan/",?getty_id)) AS ?getty_link) (COUNT(?work) AS ?count) WHERE {
?work wdt:P195 wd:Q636400; wdt:P170 ?artist FILTER (!ISBLANK(?artist)) .
?artist wdt:P245 ?getty_id
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?artist ?artistLabel ?getty_id
ORDER BY ?artistLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?artist"):::projected
v1("?artistLabel"):::projected
v6("?count")
v4("?getty_id"):::projected
v5("?getty_link")
v3("?work"):::projected
c6(["bd:serviceParam"]):::iri
c2(["wd:Q636400"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not isBlank(?artist)"]]
f0 --> v2
v3 --"wdt:P195"--> c2
v3 --"wdt:P170"--> v2
v2 --"wdt:P245"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind2[/"concat('http://vocab.getty.edu/page/ulan/',?getty_id)"/]
v4 --o bind2
bind2 --as--o v5
bind3[/"count(?work)"/]
v3 --o bind3
bind3 --as--o v6