query-a672c212c755decb7e450ca027d2d9a9

rq turtle/ttl

Platges de municipis de catalunya SELECT DISTINCT ?item ?itemLabel ?itemDescription ?muniLabel ?article ?coord WHERE { ?item (p:P31/ps:P31/(wdt:P279*)) wd:Q40080; wdt:P131 ?muni; wdt:P625 ?coord. ?muni wdt:P31 wd:Q33146843. SERVICE wikibase:label { bd:serviceParam wikibase:language "ca". } OPTIONAL { ?article schema:about ?item; schema:inLanguage "ca"; schema:isPartOf https://ca.wikipedia.org/. } } ORDER BY (?muniLabel)

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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Platges de municipis de catalunya
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?muniLabel ?article ?coord WHERE {
  ?item (p:P31/ps:P31/(wdt:P279*)) wd:Q40080;
    wdt:P131 ?muni;
    wdt:P625 ?coord.
  ?muni wdt:P31 wd:Q33146843.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "ca". }
  OPTIONAL {
    ?article schema:about ?item;
      schema:inLanguage "ca";
      schema:isPartOf <https://ca.wikipedia.org/>.
  }
}
ORDER BY (?muniLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?article"):::projected v4("?coord"):::projected v2("?item"):::projected v3("?muni") v1("?muniLabel"):::projected a1((" ")) a2((" ")) c4(["wd:Q40080"]):::iri c8(["wd:Q33146843"]):::iri c16([https://ca.wikipedia.org/]):::iri c10(["bd:serviceParam"]):::iri c12(["ca"]):::literal v2 --"p:P31"--> a1 a1 --"p:statement/P31"--> a2 a2 --"p:direct/P279"--> c4 v2 --"p:direct/P131"--> v3 v2 --"p:direct/P625"--> v4 v3 --"p:direct/P31"--> c8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."schema:about".-> v2 v5 --"schema:inLanguage"--> c12 v5 --"schema:isPartOf"--> c16 end