next
previous
items

Data table via SPARQL

Primary energy consumption by fuel

Data table via SPARQL Published 15 Jun 2015 Last modified 26 Aug 2017
This is an old version, kept for reference only.

Go to latest version
Topics:
This page was archived on 26 Aug 2017 with reason: A new version has been published

Download this dataset

Dataset preview

(Live Query)

date product_label value
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "Gas" "4.7"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "Nuclear heat" "0"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "Renewable energies" "21.1"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "Solid fuels" "17.7"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "Total petroleum products" "27"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "Gas" "5"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "Nuclear heat" "0"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "Renewable energies" "20"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "Solid fuels" "18.3"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "Total petroleum products" "27.1"^^<http://www.w3.org/2001/XMLSchema#decimal>

Received 120 rows in 0.026 seconds.


https://www.eea.europa.eu/data-and-maps/daviz/sds/primary-energy-consumption-by-fuel-6/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 in (geo:TR, geo:IS, geo:CH, geo:NO)) .
    _: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


Permalinks

Geographic coverage

Topics

Topics:
Document Actions