next
previous
items

Data table via SPARQL

Energy dependency: Percentage of consumption from imports by category (1998-) (Eurostat tgigs360)

Data table via SPARQL Published 16 Apr 2012 Last modified 29 Jun 2022
This is an old version, kept for reference only.

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

Download this dataset

Dataset preview

(Live Query)

label bookmark query
"List of species with Natura 2000 codes and EUNIS links"^^<http://www.w3.org/2001/XMLSchema#string> <http://semantic.eea.europa.eu/sparqlbookmarks/-3637185103296548007> "PREFIX e: <http://eunis.eea.europa.eu/rdf/species-schema.rdf#>\u000d\nPREFIX dwc: <http://rs.tdwg.org/dwc/terms/>\u000d\n\u000d\nSELECT ?n2000code ?name ?authority?eunisurl WHERE {\u000d\n ?eunisurl e:sameSynonymN2000 ?n2000code ;\u000d\n e:binomialName ?name;\u000d\n dwc:scientificNameAuthorship ?authority\u000d\n} ORDER BY ?n2000code"^^<http://www.w3.org/2001/XMLSchema#string>
"Vocabularies in the database"^^<http://www.w3.org/2001/XMLSchema#string> <http://semantic.eea.europa.eu/sparqlbookmarks/2889283866111318528> "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\u000d\nPREFIX skos: <http://www.w3.org/2004/02/skos/core#>\u000d\n\u000d\nSELECT DISTINCT ?vocabulary STR(?label) AS ?title\u000d\nWHERE {\u000d\n ?vocabulary a skos:ConceptScheme .\u000d\n { ?vocabulary rdfs:label ?label }\u000d\n UNION\u000d\n { ?vocabulary skos:prefLabel ?label}\u000d\n FILTER(LANG(?label) = 'en' || LANG(?label) = '' )\u000d\n} ORDER BY ?label"^^<http://www.w3.org/2001/XMLSchema#string>
"List of Indicator Specifications"^^<http://www.w3.org/2001/XMLSchema#string> <http://semantic.eea.europa.eu/sparqlbookmarks/7431098683120358771> "PREFIX dcterms: <http://purl.org/dc/terms/>\u000d\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\u000d\nPREFIX s: <http://www.eea.europa.eu/portal_types/Specification#>\u000d\n\u000d\nSELECT DISTINCT * WHERE {\u000d\n _:bookmark a s:Specification ;\u000d\n s:id ?id;\u000d\n s:dpsir ?dpsir;\u000d\n s:typology ?typology;\u000d\n dcterms:title ?title\u000d\n}"^^<http://www.w3.org/2001/XMLSchema#string>
"Area of European countries (FAO)"^^<http://www.w3.org/2001/XMLSchema#string> <http://semantic.eea.europa.eu/sparqlbookmarks/4192399402114854625> "PREFIX fao: <http://www.fao.org/countryprofiles/geoinfo/geopolitical/resource/>\u000d\n\u000d\nSELECT * WHERE {\u000d\n [] a fao:self_governing ;\u000d\n fao:isInGroup fao:Europe;\u000d\n fao:codeISO2 ?code;\u000d\n fao:nameShort ?name;\u000d\n fao:landAreaTotal ?landarea;\u000d\n fao:countryAreaTotal ?totalarea.\u000d\n FILTER(LANG(?name) = 'en')\u000d\n} ORDER BY ?code"^^<http://www.w3.org/2001/XMLSchema#string>
"EEA themes queried as a SKOS vocabulary"^^<http://www.w3.org/2001/XMLSchema#string> <http://semantic.eea.europa.eu/sparqlbookmarks/-1896528077057874440> "PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\u000d\n\u000d\nSELECT * WHERE {\u000d\n ?theme skos:inScheme <http://www.eea.europa.eu/themes>;\u000d\n skos:prefLabel ?label\u000d\n} ORDER BY ?label"^^<http://www.w3.org/2001/XMLSchema#string>
"Referenced datasets from indicator specifications"^^<http://www.w3.org/2001/XMLSchema#string> <http://semantic.eea.europa.eu/sparqlbookmarks/-2279484858719720842> "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\u000d\nPREFIX cr: <http://cr.eionet.europa.eu/ontologies/contreg.rdf#>\u000d\nPREFIX s: <http://www.eea.europa.eu/portal_types/Specification#>\u000d\nPREFIX ed: <http://www.eea.europa.eu/portal_types/ExternalDataSpec#>\u000d\nPREFIX d: <http://www.eea.europa.eu/portal_types/Data#>\u000d\nPREFIX dct: <http://purl.org/dc/terms/>\u000d\n\u000d\nSELECT DISTINCT sql:sample(?items) AS ?url ?title ?dataseturl sql:sample(?obligations) AS ?obligation\u000d\nWHERE {\u000d\n ?specification s:relatedItems ?items .\u000d\n ?items a ?type .\u000d\n OPTIONAL {?items ed:dataset_url ?dataseturl }\u000d\n OPTIONAL {?items dct:title ?title }\u000d\n OPTIONAL {?items d:reportingObligations ?obligations }\u000d\n FILTER(?type IN ( <http://www.eea.europa.eu/portal_types/ExternalDataSpec#ExternalDataSpecX>, <http://www.eea.europa.eu/portal_types/Data#Data>))\u000d\n} ORDER BY ?title"^^<http://www.w3.org/2001/XMLSchema#string>
"Natura 2000 sites"^^<http://www.w3.org/2001/XMLSchema#string> <http://semantic.eea.europa.eu/sparqlbookmarks/6199112345960261408> "SELECT ?code ?name ?SDF WHERE {\u000d\n ?site <http://natura2000.eea.europa.eu/rdf/sites-schema.rdf#name> ?name .\u000d\n ?site <http://natura2000.eea.europa.eu/rdf/sites-schema.rdf#code> ?code .\u000d\n ?site <http://natura2000.eea.europa.eu/rdf/sites-schema.rdf#hasFactsheet> ?SDF .\u000d\n}"^^<http://www.w3.org/2001/XMLSchema#string>
"SENSE II specifications (9 items)"^^<http://www.w3.org/2001/XMLSchema#string> <http://semantic.eea.europa.eu/sparqlbookmarks/1457704810160049751> "PREFIX dcterms: <http://purl.org/dc/terms/>\u000d\nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\u000d\nPREFIX s: <http://www.eea.europa.eu/portal_types/Specification#>\u000d\n\u000d\nSELECT DISTINCT * WHERE {\u000d\n ?bookmark a s:Specification ;\u000d\n s:codes ?subject;\u000d\n s:dpsir ?dpsir;\u000d\n s:typology ?typology;\u000d\n dcterms:title ?title\u000d\nFILTER(?subject IN ('CSI001','CSI002','CSI003','CSI008','CSI010', 'CSI011','CSI018','CSI029','CSI033'))\u000d\n} limit 100"^^<http://www.w3.org/2001/XMLSchema#string>
"Species that are valid in EUNIS, but invalid in ITIS"^^<http://www.w3.org/2001/XMLSchema#string> <http://semantic.eea.europa.eu/sparqlbookmarks/4001076049521143419> "PREFIX e: <http://eunis.eea.europa.eu/rdf/species-schema.rdf#>\u000d\nPREFIX itis: <http://rdfdata.eionet.europa.eu/itis/ontology/>\u000d\nPREFIX dwc: <http://rs.tdwg.org/dwc/terms/>\u000d\n\u000d\nSELECT ?eunisname ?eunisauthor ?itisname ?itisauthor WHERE {\u000d\n ?eunisurl e:validName 1;\u000d\n e:sameSynonym ?itisurl;\u000d\n e:binomialName ?eunisname;\u000d\n dwc:scientificNameAuthorship ?eunisauthor.\u000d\n ?itisurl itis:nameUsage \"invalid\";\u000d\n itis:completename ?itisname;\u000d\n itis:hasAuthor _:auurl.\u000d\n _:auurl itis:taxonAuthor ?itisauthor\u000d\n}"^^<http://www.w3.org/2001/XMLSchema#string>
"Country memberships (EU, EUN22, EEA, EIONET)"^^<http://www.w3.org/2001/XMLSchema#string> <http://semantic.eea.europa.eu/sparqlbookmarks/-4537076113860538368> "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\u000d\nPREFIX eea: <http://rdfdata.eionet.europa.eu/eea/ontology/> \u000d\n\u000d\nSELECT DISTINCT ?code ?countryname ?publishingCode\u000d\n IF(bound(?eumember),'Yes','') AS ?eu\u000d\n IF(bound(?eeamember),'Yes','') AS ?eea\u000d\n IF(bound(?eionetmember),'Yes','') AS ?eionet\u000d\n IF(bound(?eun22member),'Yes','') AS ?eun22\u000d\nWHERE {\u000d\n ?ucountry a eea:Country ;\u000d\n eea:code ?code;\u000d\n eea:publishingCode ?publishingCode;\u000d\n rdfs:label ?countryname\u000d\n OPTIONAL { <http://rdfdata.eionet.europa.eu/eea/countries/EU27> skos:member ?ucountry, ?eumember }\u000d\n OPTIONAL { <http://rdfdata.eionet.europa.eu/eea/countries/EUN22> skos:member ?ucountry, ?eun22member }\u000d\n OPTIONAL { <http://rdfdata.eionet.europa.eu/eea/countries/EEA> skos:member ?ucountry, ?eeamember }\u000d\n OPTIONAL { <http://rdfdata.eionet.europa.eu/eea/countries/EIONET> skos:member ?ucountry, ?eionetmember }\u000d\n} ORDER BY ?code"^^<http://www.w3.org/2001/XMLSchema#string>

Received 36 rows in 0.038 seconds.


https://www.eea.europa.eu/data-and-maps/daviz/sds/energy-dependency-percentage-of-consumption/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 qb: <http://purl.org/linked-data/cube#>
PREFIX estat: <http://eurostat.linked-statistics.org/property#>
PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>
PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>
PREFIX geo: <http://eurostat.linked-statistics.org/dic/geo#>
PREFIX dataset: <http://eurostat.linked-statistics.org/data/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT ?country ?year ?prod_nrg xsd:double(?percentage) AS ?percentage
FROM <http://eurostat.linked-statistics.org/data/tgigs360.rdf>
FROM <http://rdfdata.eionet.europa.eu/eurostatdic/eurostat-countrygroups.rdf>
FROM <http://eurostat.linked-statistics.org/dic/geo.rdf>
FROM <http://eurostat.linked-statistics.org/dic/prod_nrg.rdf>

WHERE {
  ?obsrec qb:dataSet dataset:tgigs360 ;
        sdmx-dimension:timePeriod ?year;
        sdmx-dimension:freq <http://purl.org/linked-data/sdmx/2009/code#freq-A>;
        estat:prod_nrg ?uprod_nrg;
        estat:geo ?ucountry;
        sdmx-measure:obsValue ?percentage.
 ?ucountry rdfs:label ?country.
 ?uprod_nrg rdfs:label ?prod_nrg.
} ORDER BY ?country ?year ?prod_nrg

Error when running query:

Error. Traceback (most recent call last):
  File "/plone/buildout-cache/eggs/Products.ZSPARQLMethod-2.3-py2.7.egg/Products/ZSPARQLMethod/Method.py", line 287, in run_with_timeout
    ret = func(*args, **kwargs)
  File "/plone/buildout-cache/eggs/Products.ZSPARQLMethod-2.3-py2.7.egg/Products/ZSPARQLMethod/Method.py", line 215, in query_and_get_result
    result = sparql.query(*args, timeout = kwargs.get("timeout", 0) or 0)
  File "/plone/buildout-cache/eggs/sparql_client-3.8-py2.7.egg/sparql.py", line 747, in query
    return s.query(query, timeout, raw=raw)
  File "/plone/buildout-cache/eggs/sparql_client-3.8-py2.7.egg/sparql.py", line 416, in query
    return q.query(query, timeout, raw=raw)
  File "/plone/buildout-cache/eggs/sparql_client-3.8-py2.7.egg/sparql.py", line 571, in query
    response = self._request(statement, timeout)
  File "/plone/buildout-cache/eggs/sparql_client-3.8-py2.7.egg/sparql.py", line 561, in _request
    response = self._build_response(query, opener, buf, timeout)
  File "/plone/buildout-cache/eggs/sparql_client-3.8-py2.7.egg/sparql.py", line 543, in _build_response
    timeout if timeout > 0 else None)
  File "/plone/buildout-cache/eggs/sparql_client-3.8-py2.7.egg/sparql.py", line 514, in _get_response
    response = opener.open(request, timeout=timeout)
  File "/usr/local/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/local/lib/python2.7/urllib2.py", line 447, in _open
    '_open', req)
  File "/usr/local/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python2.7/urllib2.py", line 1241, in https_open
    context=self._context)
  File "/usr/local/lib/python2.7/urllib2.py", line 1201, in do_open
    r = h.getresponse(buffering=True)
  File "/usr/local/lib/python2.7/httplib.py", line 1148, in getresponse
    response.begin()
  File "/usr/local/lib/python2.7/httplib.py", line 448, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python2.7/httplib.py", line 404, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
  File "/usr/local/lib/python2.7/socket.py", line 480, in readline
    data = self._sock.recv(self._rbufsize)
  File "/plone/buildout-cache/eggs/eventlet-0.21.0-py2.7.egg/eventlet/green/ssl.py", line 194, in recv
    return self._base_recv(buflen, flags, into=False)
  File "/plone/buildout-cache/eggs/eventlet-0.21.0-py2.7.egg/eventlet/green/ssl.py", line 227, in _base_recv
    read = self.read(nbytes)
  File "/plone/buildout-cache/eggs/eventlet-0.21.0-py2.7.egg/eventlet/green/ssl.py", line 139, in read
    super(GreenSSLSocket, self).read, *args, **kwargs)
  File "/plone/buildout-cache/eggs/eventlet-0.21.0-py2.7.egg/eventlet/green/ssl.py", line 119, in _call_trampolining
    timeout_exc=timeout_exc('timed out'))
  File "/plone/buildout-cache/eggs/eventlet-0.21.0-py2.7.egg/eventlet/hubs/__init__.py", line 163, in trampoline
    return hub.switch()
  File "/plone/buildout-cache/eggs/eventlet-0.21.0-py2.7.egg/eventlet/hubs/hub.py", line 295, in switch
    return self.greenlet.switch()
SSLError: ('timed out',)


Permalinks

Document Actions