query-f68285af3653277a97d82ee92fdaefa0
And this gives the creators in a suitable format:
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT DISTINCT ?painter ?painterLabel ?description WHERE {
?painter wdt:P106 wd:Q1028181 .
{?painter rdfs:label ?painterLabel } UNION { ?item skos:altLabel ?painterLabel } .
BIND(REPLACE(?painterLabel, '^(.)[^\\s]+\\s(.+)$', "painting by $1. $2") AS ?description) .
FILTER(REGEX(?description, "painting by .+"))
} LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?description"):::projected
v4("?item")
v2("?painter"):::projected
v3("?painterLabel"):::projected
c3(["wd:Q1028181"]):::iri
f0[["regex(?description,'painting by .+')"]]
f0 --> v5
v2 --"wdt:P106"--> c3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v4 --"skos:altLabel"--> v3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v2 --"rdfs:label"--> v3
end
union0r <== or ==> union0l
end
bind1[/"replace(?painterLabel,'^(.)#91;^\s#93;+\s(.+)$','painting by $1. $2')"/]
v3 --o bind1
bind1 --as--o v5