query-33d9b5df443ca5b91dea86e7b33e187f
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT distinct ?item (sample (?label) as ?_samplename) (group_concat(distinct ?label) as ?name)
WHERE
{
?item wdt:P27 wd:Q801.
?item rdfs:label ?itemLabel .
bind(?itemLabel as ?label)
filter( regex( ?itemLabel, "\\wson" ))
} group by ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?_samplename")
v2("?item"):::projected
v1("?itemLabel")
v3("?label"):::projected
v5("?name")
c3(["wd:Q801"]):::iri
f0[["regex(?itemLabel,'\wson')"]]
f0 --> v1
v2 --"wdt:P27"--> c3
v2 --"rdfs:label"--> v1
bind1[/"?itemLabel"/]
v1 --o bind1
bind1 --as--o v3
bind4[/"sample(?label)"/]
v3 --o bind4
bind4 --as--o v4
bind5[/"?label"/]
v3 --o bind5
bind5 --as--o v5