query-2f48dd4975fe3199cc8ec22ea13d84ab

rq turtle/ttl

TODO

Use at

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 ?item (SAMPLE(?item_label) as ?label) WHERE {
 ?item wdt:P31 wd:Q11344 .
 optional {?item rdfs:label ?item_label} .
}
group by ?item

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?item_label"):::projected v3("?label") c2(["wd:Q11344"]):::iri v1 --"wdt:P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."rdfs:label".-> v2 end bind1[/"sample(?item_label)"/] v2 --o bind1 bind1 --as--o v3