query-2ad43be7c8334fdb782420810fe76015

rq turtle/ttl

Categories de guanyadors per premis SELECT DISTINCT ?premi ?premiLabel ?cat ?categoria WHERE { ?premi wdt:P31/wdt:P279* wd:Q21142755. ?premi wdt:P2517 ?cat. ?categoria schema:about ?cat. ?categoria schema:isPartOf https://ca.wikipedia.org/. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es" . } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Categories de guanyadors per premis
SELECT DISTINCT ?premi ?premiLabel ?cat ?categoria
WHERE {
  ?premi wdt:P31/wdt:P279* wd:Q21142755.
  ?premi wdt:P2517 ?cat.
    ?categoria schema:about ?cat.
    ?categoria schema:isPartOf <https://ca.wikipedia.org/>.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es" . } 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?cat"):::projected v3("?categoria"):::projected v1("?premi"):::projected a1((" ")) c9(["bd:serviceParam"]):::iri c3(["wd:Q21142755"]):::iri c7([https://ca.wikipedia.org/]):::iri c11(["#91;AUTO_LANGUAGE#93;,ca,en,es"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P2517"--> v2 v3 --"schema:about"--> v2 v3 --"schema:isPartOf"--> c7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end