query-57f9f52bb134bd4191b62cfd672a2635

rq turtle/ttl

title:Benezit biographies of Ashmolean artists SELECT ?artist ?artistLabel (URI(CONCAT("https://doi.org/10.1093/benz/9780199773787.article.",?benezit)) AS ?benezit_link) (COUNT(?work) AS ?no_of_works) WHERE { ?work wdt:P195 wd:Q636400; wdt:P170 ?artist FILTER (!ISBLANK(?artist)) . ?artist wdt:P2843 ?benezit SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?artist ?artistLabel ?benezit ORDER BY ?artistLabel

Use at

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#>
#title:Benezit biographies of Ashmolean artists
SELECT ?artist ?artistLabel (URI(CONCAT("https://doi.org/10.1093/benz/9780199773787.article.",?benezit)) AS ?benezit_link) (COUNT(?work) AS ?no_of_works) WHERE {
?work wdt:P195 wd:Q636400; wdt:P170 ?artist FILTER (!ISBLANK(?artist)) .
?artist wdt:P2843 ?benezit
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?artist ?artistLabel ?benezit
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 v4("?benezit"):::projected v5("?benezit_link") v6("?no_of_works") 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:P2843"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind2[/"concat('https://doi.org/10.1093/benz/9780199773787.article.',?benezit)"/] v4 --o bind2 bind2 --as--o v5 bind3[/"count(?work)"/] v3 --o bind3 bind3 --as--o v6