next
previous
items

Data table via SPARQL

Member states primary energy consumption and indicative national energy efficiency targets for 2020

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

Go to latest version

Download this dataset

Dataset preview

(Live Query)

date ugeo primary_energy_consumption target distance percentage_distance
"2010"^^<http://www.w3.org/2001/XMLSchema#int> "Austria" "32.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "31.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "1.011"^^<http://www.w3.org/2001/XMLSchema#decimal> "29.5"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2011"^^<http://www.w3.org/2001/XMLSchema#int> "Austria" "31.6"^^<http://www.w3.org/2001/XMLSchema#decimal> "31.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "0.146"^^<http://www.w3.org/2001/XMLSchema#decimal> "26.1"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2012"^^<http://www.w3.org/2001/XMLSchema#int> "Austria" "31.4"^^<http://www.w3.org/2001/XMLSchema#decimal> "31.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "-0.133"^^<http://www.w3.org/2001/XMLSchema#decimal> "25"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2013"^^<http://www.w3.org/2001/XMLSchema#int> "Austria" "31.9"^^<http://www.w3.org/2001/XMLSchema#decimal> "31.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "0.376"^^<http://www.w3.org/2001/XMLSchema#decimal> "27"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2014"^^<http://www.w3.org/2001/XMLSchema#int> "Austria" "30.6"^^<http://www.w3.org/2001/XMLSchema#decimal> "31.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "-0.851"^^<http://www.w3.org/2001/XMLSchema#decimal> "22.1"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2015"^^<http://www.w3.org/2001/XMLSchema#int> "Austria" "" "31.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "" ""
"2010"^^<http://www.w3.org/2001/XMLSchema#int> "Belgium" "53.9"^^<http://www.w3.org/2001/XMLSchema#decimal> "43.7"^^<http://www.w3.org/2001/XMLSchema#decimal> "10.197"^^<http://www.w3.org/2001/XMLSchema#decimal> "65.8"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2011"^^<http://www.w3.org/2001/XMLSchema#int> "Belgium" "49.8"^^<http://www.w3.org/2001/XMLSchema#decimal> "43.7"^^<http://www.w3.org/2001/XMLSchema#decimal> "6.058"^^<http://www.w3.org/2001/XMLSchema#decimal> "53.1"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2012"^^<http://www.w3.org/2001/XMLSchema#int> "Belgium" "47.3"^^<http://www.w3.org/2001/XMLSchema#decimal> "43.7"^^<http://www.w3.org/2001/XMLSchema#decimal> "3.554"^^<http://www.w3.org/2001/XMLSchema#decimal> "45.4"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2013"^^<http://www.w3.org/2001/XMLSchema#int> "Belgium" "48.6"^^<http://www.w3.org/2001/XMLSchema#decimal> "43.7"^^<http://www.w3.org/2001/XMLSchema#decimal> "4.949"^^<http://www.w3.org/2001/XMLSchema#decimal> "49.7"^^<http://www.w3.org/2001/XMLSchema#decimal>

Received 174 rows in 0.008 seconds.


https://www.eea.europa.eu/data-and-maps/daviz/sds/member-states-primary-energy-consumption-1/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 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 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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX tableFile: <http://semantic.eea.europa.eu/project/indicators/gap_filling_data/ENER/national_energy_efficiency_targets_2020_2015.txt#>

SELECT
year(?date) as ?date
bif:either(?geo = geo:DE, 'Germany', ?ugeo) as ?ugeo
round((sum(?nrg_100a)-sum(?nrg_100a_non_energy))/100.0)/10.0 as ?primary_energy_consumption
round(sum(xsd:double(?primary))/100)/10.0 as ?target
(( (sum(?nrg_100a)-sum(?nrg_100a_non_energy))-sum(xsd:double(?primary)) )/100)/10.0 as ?distance

round(( (sum(?nrg_100a)-sum(?nrg_100a_non_energy)) - sum(xsd:integer(?final )) ) / sum(xsd:integer(?final )) * 1000)/10.0 as ?percentage_distance


WHERE {
  { 
  GRAPH <http://rdfdata.eionet.europa.eu/eurostat/data/nrg_100a.rdf.gz> 
  {
    _:nrg_100a sdmx-dimension:refArea ?geo .
    _:nrg_100a sdmx-attribute:unitMeasure unit:KTOE .
    _:nrg_100a sdmx-dimension:timePeriod ?date .
    _:nrg_100a property:product product:0000 .
    {
      _:nrg_100a property:indic_nrg indic_nrg:B_100900 .
      _:nrg_100a sdmx-measure:obsValue ?nrg_100a .
    } UNION {
      _:nrg_100a property:indic_nrg indic_nrg:B_101600 .
      _:nrg_100a sdmx-measure:obsValue ?nrg_100a_non_energy .

    }
  } 
  } UNION {  
  GRAPH <http://semantic.eea.europa.eu/project/indicators/gap_filling_data/ENER/national_energy_efficiency_targets_2020_2015.txt> 
  {
     _:rec tableFile:date ?date .
     _:rec tableFile:geo ?geo .
     _:rec tableFile:primary ?primary .
     _:rec tableFile:final ?final .
  }
 }
?geo rdfs:label ?ugeo
}

HAVING sum(xsd:integer(?final)) > 0
ORDER BY ?ugeo ?date


Permalinks

Document Actions