query-2f4c8d2b527a17763adce7db11b47570

rq turtle/ttl

articles i categories per persones relacionades (no lloc de naixement); canadencs SELECT DISTINCT ?persona ?lloc ?article ?cat ?categoria WHERE { ?persona wdt:P27 wd:Q16. ?persona wdt:P19 ?lloc. ?article schema:about ?persona. ?article schema:isPartOf https://ca.wikipedia.org/. ?lloc wdt:P1792 ?cat. ?categoria schema:about ?cat. ?categoria schema:isPartOf https://ca.wikipedia.org/. }

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
# articles i categories per persones relacionades (no lloc de naixement); canadencs
SELECT DISTINCT ?persona ?lloc ?article ?cat ?categoria
WHERE {
  ?persona wdt:P27 wd:Q16.
  ?persona wdt:P19 ?lloc.
  ?article schema:about ?persona.
  ?article schema:isPartOf <https://ca.wikipedia.org/>.
    ?lloc wdt:P1792 ?cat.
    ?categoria schema:about ?cat.
    ?categoria schema:isPartOf <https://ca.wikipedia.org/>.
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?article"):::projected v4("?cat"):::projected v5("?categoria"):::projected v2("?lloc"):::projected v1("?persona"):::projected c2(["wd:Q16"]):::iri c6([https://ca.wikipedia.org/]):::iri v1 --"wdt:P27"--> c2 v1 --"wdt:P19"--> v2 v3 --"schema:about"--> v1 v3 --"schema:isPartOf"--> c6 v2 --"wdt:P1792"--> v4 v5 --"schema:about"--> v4 v5 --"schema:isPartOf"--> c6