query-b1250c0fbb3f62933995b626301b8914

rq turtle/ttl

llistes de llocs de Barcelona SELECT ?llista ?llistaLabel ?lloc ?llocLabel ?article WHERE { ?llista wdt:P31 wd:Q13406463. ?llista p:P360 ?statement. ?statement pq:P131 ?lloc. ?lloc wdt:P131+ wd:Q1492. ?article schema:about ?llista. ?article schema:isPartOf https://ca.wikipedia.org/. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr,de" . } }

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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# llistes de llocs de Barcelona
SELECT ?llista ?llistaLabel ?lloc ?llocLabel ?article WHERE {
  ?llista wdt:P31 wd:Q13406463.
  ?llista p:P360 ?statement.
  ?statement pq:P131 ?lloc.
  ?lloc wdt:P131+ wd:Q1492.
  ?article schema:about ?llista.
  ?article schema:isPartOf <https://ca.wikipedia.org/>.
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ca,en,es,fr,de" . 
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?article"):::projected v1("?llista"):::projected v3("?lloc"):::projected v2("?statement") c13(["#91;AUTO_LANGUAGE#93;,ca,en,es,fr,de"]):::literal c2(["wd:Q13406463"]):::iri c9([https://ca.wikipedia.org/]):::iri c11(["bd:serviceParam"]):::iri c6(["wd:Q1492"]):::iri v1 --"p:direct/P31"--> c2 v1 --"p:P360"--> v2 v2 --"p:qualifier/P131"--> v3 v3 --"p:direct/P131"--> c6 v4 --"schema:about"--> v1 v4 --"schema:isPartOf"--> c9 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end