query-8a6064e5693f1c9c7e45e3981a95cea1

rq turtle/ttl

Consultas de SPARQLDerrames de petróleo ocurridos en Perú ordenados descendentemente por la fecha en la que ocurrieron

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
  ?fechaDeInicio
  ?ubicación
  ?ubicaciónLabel
  ?situadoEn
  ?situadoEnLabel
{
  ?item wdt:P31/wdt:P279* wd:Q220187;
        wdt:P17 wd:Q419.
  OPTIONAL{
    ?item wdt:P276 ?ubicación.
    OPTIONAL{
      ?ubicación wdt:P131 ?situadoEn
    }.
  }.
  OPTIONAL{?item wdt:P580 ?fechaDeInicio}.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "es". }
}
ORDER BY DESC(?fechaDeInicio)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?fechaDeInicio"):::projected v2("?item") v4("?situadoEn"):::projected v3("?ubicación"):::projected a1((" ")) c3(["wd:Q220187"]):::iri c10(["bd:serviceParam"]):::iri c5(["wd:Q419"]):::iri c12(["es"]):::literal v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P17"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P276".-> v3 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P131".-> v4 end end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P580".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end