next
previous
items

Data table via SPARQL

Primary energy consumption in Norway and Turkey

Data table via SPARQL Published 18 May 2016 Last modified 17 Nov 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
"1990"^^<http://www.w3.org/2001/XMLSchema#int> "Norway" "19.6"^^<http://www.w3.org/2001/XMLSchema#decimal> "" "" ""
"1991"^^<http://www.w3.org/2001/XMLSchema#int> "Norway" "20.3"^^<http://www.w3.org/2001/XMLSchema#decimal> "" "" ""
"1992"^^<http://www.w3.org/2001/XMLSchema#int> "Norway" "20.7"^^<http://www.w3.org/2001/XMLSchema#decimal> "" "" ""
"1993"^^<http://www.w3.org/2001/XMLSchema#int> "Norway" "22.1"^^<http://www.w3.org/2001/XMLSchema#decimal> "" "" ""
"1994"^^<http://www.w3.org/2001/XMLSchema#int> "Norway" "21.7"^^<http://www.w3.org/2001/XMLSchema#decimal> "" "" ""
"1995"^^<http://www.w3.org/2001/XMLSchema#int> "Norway" "21.7"^^<http://www.w3.org/2001/XMLSchema#decimal> "" "" ""
"1996"^^<http://www.w3.org/2001/XMLSchema#int> "Norway" "21.1"^^<http://www.w3.org/2001/XMLSchema#decimal> "" "" ""
"1997"^^<http://www.w3.org/2001/XMLSchema#int> "Norway" "22.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "" "" ""
"1998"^^<http://www.w3.org/2001/XMLSchema#int> "Norway" "23.6"^^<http://www.w3.org/2001/XMLSchema#decimal> "" "" ""
"1999"^^<http://www.w3.org/2001/XMLSchema#int> "Norway" "25"^^<http://www.w3.org/2001/XMLSchema#decimal> "" "" ""

Received 50 rows in 0.002 seconds.


https://eea.europa.eu./data-and-maps/daviz/sds/primary-energy-consumption-in-norway-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#>

SELECT
year(?date) as ?date
?ugeo
round((sum(?nrg_100a)-sum(?nrg_100a_non_energy))/100.0)/10.0 as ?primary_energy_consumption
'' as ?target
'' as ?distance
'' as ?percentage_distance

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:NO))
    _: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 .

    }
  } 
 }
?geo rdfs:label ?ugeo
}
ORDER BY ?ugeo ?date


Permalinks

Document Actions