query-be728c433616b5ee632cab5b7fcf0046

rq turtle/ttl

SPARQL informative queryThese are the queries that show specific results and are not templates. These queries usually use templates. Some examples are: Map of libraries in ArgentinaThis query uses the template "Map of instances of a class located in Argentina" and "Map of libraries located in a given country. These two templates are derived from "Map of instances of a class located in a given country".

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT
  ?coordinates
  ?item
  ?itemLabel
{
   {
  SELECT DISTINCT ?item {
     {
  SELECT DISTINCT ?item {
    ?item (wdt:P276|wdt:P131)* wd:Q414.
  }
}
    ?item wdt:P31/wdt:P279* wd:Q7075
  }
}
  ?item wdt:P625 ?coordinates.
  SERVICE wikibase:label {bd:serviceParam wikibase:language "es"}.
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?coordinates"):::projected v1("?item"):::projected a1((" ")) c6(["wd:Q7075"]):::iri c9(["bd:serviceParam"]):::iri c2(["wd:Q414"]):::iri c11(["es"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P131"--> c2 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P276"--> c2 end union0r <== or ==> union0l end v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c6 v1 --"wdt:P625"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end