Primary energy consumption by fuel

Data table via SPARQL Published 18 May 2016 Last modified 28 May 2016
This is an old version, kept for reference only.

Go to latest version

Download this dataset

Dataset preview

(Live Query)

date product_label value
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "Gas" "282.5"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "Nuclear heat" "205.2"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "Renewable energies" "71.9"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "Solid fuels" "453.2"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "Total petroleum products" "548.9"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "Gas" "293.7"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "Nuclear heat" "211.5"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "Renewable energies" "74.8"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "Solid fuels" "432.3"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "Total petroleum products" "554.7"^^<http://www.w3.org/2001/XMLSchema#decimal>

Received 125 rows in 0.004 seconds.


https://www.eea.europa.eu/data-and-maps/daviz/sds/primary-energy-consumption-by-fuel-7/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 skos: <http://www.w3.org/2004/02/skos/core#> 
PREFIX property: <http://rdfdata.eionet.europa.eu/eurostat/property#> 
PREFIX geo: <http://dd.eionet.europa.eu/vocabulary/eurostat/geo/>
PREFIX unit: <http://dd.eionet.europa.eu/vocabulary/eurostat/unit/>
PREFIX product: <http://dd.eionet.europa.eu/vocabulary/eurostat/product/>
PREFIX indic_nrg: <http://dd.eionet.europa.eu/vocabulary/eurostat/indic_nrg/>
PREFIX sdmx-attribute: <http://purl.org/linked-data/sdmx/2009/attribute#> 

SELECT 
year(?date) as ?date
?product_label
round(( sum(?B_100900) - COALESCE(sum(?B_101600),0) )/100)/10.0 as ?value
#sum(?B_100900) as ?B_100900
#sum(?B_101600) as ?B_101600

WHERE {
  {  
    GRAPH <http://rdfdata.eionet.europa.eu/eurostat/data/nrg_100a.rdf.gz> 
    {
    _:nrg_100a sdmx-dimension:refArea ?geo .
    FILTER (?geo = geo:EU28) .
    _:nrg_100a sdmx-attribute:unitMeasure unit:KTOE .
    _:nrg_100a sdmx-dimension:timePeriod ?date .
    
    _:nrg_100a property:product ?product . 
    FILTER (?product in (product:2000, product:3000, product:4000, product:5100, product:5500))

    {
      _:nrg_100a property:indic_nrg indic_nrg:B_100900 .
      _:nrg_100a sdmx-measure:obsValue ?B_100900 .
    } UNION {
      _:nrg_100a property:indic_nrg indic_nrg:B_101600 .
      _:nrg_100a sdmx-measure:obsValue ?B_101600 .
    }

    } 
    ?product rdfs:label ?product_label .
  }
}
GROUP BY ?date ?product_label ?product
ORDER BY ?date ?product_label


Related content

Visualisations produced

Document Actions