query-fb974d4e75fd53aed1e3b9aab9cbf59f

rq turtle/ttl

Meteorological disaster

SELECT ?item ?itemLabel ?itemDescription ?data ?paeseLabel ?istanzaLabel ?coord WHERE { {?item wdt:P31 wd:Q79602} UNION #cyclone {?item wdt:P31 wd:Q81054} UNION #tempesta {?item wdt:P31 wd:Q6823473} UNION #disastro meteorologico {?item wdt:P31 wd:Q8065} UNION # deve essere un disastro naturale {?item wdt:P31 wd:Q8068} UNION # deve essere un'alluvione {?item wdt:P31 wd:Q8081}. # deve essere un tornado {?item wdt:P31 ?istanza.} OPTIONAL { ?item wdt:P585 ?data. } OPTIONAL { ?item wdt:P580 ?data. } OPTIONAL { ?item wdt:P17 ?paese. } OPTIONAL { ?item wdt:P625 ?coord. } SERVICE wikibase:label { bd:serviceParam wikibase:language "en,fr". } } ORDER BY ASC(?data)

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#>
#Meteorological disaster

SELECT ?item ?itemLabel ?itemDescription ?data ?paeseLabel ?istanzaLabel ?coord
WHERE 
{
  {?item wdt:P31 wd:Q79602} UNION #cyclone
  {?item wdt:P31 wd:Q81054} UNION #tempesta
  {?item wdt:P31 wd:Q6823473} UNION #disastro meteorologico
  {?item wdt:P31 wd:Q8065} UNION # deve essere un disastro naturale 
  {?item wdt:P31 wd:Q8068} UNION # deve essere un'alluvione
  {?item wdt:P31 wd:Q8081}. # deve essere un tornado
  {?item wdt:P31 ?istanza.}
  OPTIONAL { ?item wdt:P585  ?data. }
  OPTIONAL { ?item wdt:P580  ?data. }
  OPTIONAL { ?item wdt:P17  ?paese. }
  OPTIONAL { ?item wdt:P625  ?coord. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,fr". } 
}
ORDER BY ASC(?data)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?coord"):::projected v1("?data"):::projected v3("?istanza") v2("?item"):::projected v4("?paese") c2(["wd:Q79602"]):::iri c7(["wd:Q8081"]):::iri c4(["wd:Q6823473"]):::iri c15(["en,fr"]):::literal c6(["wd:Q8068"]):::iri c3(["wd:Q81054"]):::iri c13(["bd:serviceParam"]):::iri c5(["wd:Q8065"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; subgraph union4[" Union "] subgraph union4l[" "] style union4l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c7 end subgraph union4r[" "] style union4r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c6 end union4r <== or ==> union4l end end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c5 end union3r <== or ==> union3l end end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c4 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c3 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c2 end union0r <== or ==> union0l end v2 --"wdt:P31"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P585".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P580".-> v1 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P17".-> v4 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P625".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end