query-379b6694e996fef6e6d0ea52e61603e5

rq turtle/ttl

Additional contextLet's suppose I've written this SPARQL query. It lists the earthquakes that have happened in Peru. You don't need to understand it to understand the point of this page.

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#>
SELECT
  ?fecha
  ?item
  ?itemLabel
  ?itemDescription
  ?location
  ?locationLabel
{
  ?item
    wdt:P31 wd:Q7944;
    wdt:P276/wdt:P131* wd:Q419.
  OPTIONAL{?item wdt:P276 ?location}
  OPTIONAL{?item wdt:P585 ?fecha}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "es". }
}
ORDER BY DESC(?fecha)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?fecha"):::projected v2("?item"):::projected v3("?location"):::projected a1((" ")) c8(["bd:serviceParam"]):::iri c2(["wd:Q7944"]):::iri c5(["wd:Q419"]):::iri c10(["es"]):::literal v2 --"wdt:P31"--> c2 v2 --"wdt:P276"--> a1 a1 --"wdt:P131"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P276".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P585".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end