next
previous
items

Data table via SPARQL

Primary energy consumption by fuel

Data table via SPARQL Published 12 Jun 2019 Last modified 24 Jun 2020
Topics:

Download this dataset

Dataset preview

(Live Query)

date geo siec_label value GIC NRG_NE
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "EFTA4" "Natural gas" "4.8"^^<http://www.w3.org/2001/XMLSchema#decimal> "4831.427"^^<http://www.w3.org/2001/XMLSchema#decimal> ""
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "EFTA4" "Nuclear" "0"^^<http://www.w3.org/2001/XMLSchema#decimal> "0"^^<http://www.w3.org/2001/XMLSchema#decimal> ""
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "EFTA4" "Oil and petroleum products (excluding biofuel portion)" "32.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "32503.569"^^<http://www.w3.org/2001/XMLSchema#decimal> "0"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "EFTA4" "Renewables and biofuels" "22.7"^^<http://www.w3.org/2001/XMLSchema#decimal> "22672.189"^^<http://www.w3.org/2001/XMLSchema#decimal> "0"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "EFTA4" "Solid fossil fuels" "16.7"^^<http://www.w3.org/2001/XMLSchema#decimal> "16671.12"^^<http://www.w3.org/2001/XMLSchema#decimal> ""
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "EFTA4" "Total" "75.3"^^<http://www.w3.org/2001/XMLSchema#decimal> "75301.601"^^<http://www.w3.org/2001/XMLSchema#decimal> "0"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "EFTA4" "Natural gas" "5.4"^^<http://www.w3.org/2001/XMLSchema#decimal> "5420.185"^^<http://www.w3.org/2001/XMLSchema#decimal> ""
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "EFTA4" "Nuclear" "0"^^<http://www.w3.org/2001/XMLSchema#decimal> "0"^^<http://www.w3.org/2001/XMLSchema#decimal> ""
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "EFTA4" "Oil and petroleum products (excluding biofuel portion)" "30.6"^^<http://www.w3.org/2001/XMLSchema#decimal> "30649.645"^^<http://www.w3.org/2001/XMLSchema#decimal> "0"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "EFTA4" "Renewables and biofuels" "21.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "21526.478"^^<http://www.w3.org/2001/XMLSchema#decimal> "0"^^<http://www.w3.org/2001/XMLSchema#decimal>

Received 168 rows in 0.007 seconds.


https://eea.europa.eu./data-and-maps/daviz/sds/primary-energy-consumption-by-fuel-12/daviz.json

For system integrators

The following info can be used by a system developer / database administrator in order to retrieve this dataset programmatically over the web using a SPARQL client.

Are you new to Linked Data technology? visit http://linkeddata.org



http://semantic.eea.europa.eu/sparql

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#> 
PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>
PREFIX sdmx-attribute: <http://purl.org/linked-data/sdmx/2009/attribute#> 
PREFIX property: <http://rdfdata.eionet.europa.eu/eurostat/property#>
PREFIX siec: <http://dd.eionet.europa.eu/vocabulary/eurostat/siec/>
PREFIX nrg_bal: <http://dd.eionet.europa.eu/vocabulary/eurostat/nrg_bal/>
PREFIX geo: <http://dd.eionet.europa.eu/vocabulary/eurostat/geo/>
PREFIX unit: <http://dd.eionet.europa.eu/vocabulary/eurostat/unit/>

SELECT DISTINCT
year(?date) as ?date
'EFTA4' as ?geo
if(?siec IN (siec:N900H), 'Nuclear', ?siec_label) as ?siec_label
round(( sum(?GIC ) - COALESCE(sum(?NRG_NE),0) )/100)/10.0 as ?value
sum(?GIC) as ?GIC 
sum(?NRG_NE) as ?NRG_NE

WHERE { 
 GRAPH <http://rdfdata.eionet.europa.eu/eurostat/data/nrg_bal_c.rdf.gz> {
    ?nrg_bal_c sdmx-dimension:refArea ?geo .
    FILTER (?geo in (geo:TR, geo:IS, geo:CH, geo:NO)) .
    ?nrg_bal_c sdmx-attribute:unitMeasure unit:KTOE .
    ?nrg_bal_c sdmx-dimension:timePeriod ?date .
    ?nrg_bal_c property:siec ?siec .

    FILTER (?siec in (siec:C0000X0350-0370, siec:O4000XBIO, siec:G3000, 
                      siec:N900H, siec:TOTAL, siec:RA000))

    #<http://dd.eionet.europa.eu/vocabulary/eurostat/product/5500>	Renewable energies missing!
   
    {
      ?nrg_bal_c property:nrg_bal nrg_bal:GIC .
      ?nrg_bal_c sdmx-measure:obsValue ?GIC .
    } UNION {
      ?nrg_bal_c property:nrg_bal nrg_bal:NRG_NE . 
      ?nrg_bal_c sdmx-measure:obsValue ?NRG_NE .
    }

  }
  ?siec rdfs:label ?siec_label .

}
GROUP BY year(?date) ?siec_label ?siec
ORDER BY ?date ?siec_label


Permalinks

Geographic coverage

Temporal coverage

Topics

Topics:

Tags

Document Actions