next
previous
items

Data table via SPARQL

Consumption of other meat inc offal in EU28 for 2011

Data table via SPARQL Published 06 Oct 2014 Last modified 01 Apr 2024

Download this dataset

Dataset preview

(Live Query)

date ItemCode Item category foodvalue_per_capita foodvalue popvalue
"2011"^^<http://www.w3.org/2001/XMLSchema#int> "2763,2735" "Meat, other + edible offals" "Meat" "7.9"^^<http://www.w3.org/2001/XMLSchema#decimal> "4013833"^^<http://www.w3.org/2001/XMLSchema#decimal> "507399"^^<http://www.w3.org/2001/XMLSchema#decimal>

Received 1 rows in 0.001 seconds.


https://eea.europa.eu./data-and-maps/daviz/sds/consumption-of-other-meat-inc/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



semantic.eea.europa.eu/sparql

PREFIX tableFile: <http://semantic.eea.europa.eu/project/faostat/2014/foodsupply_livestockfish_e.txt#>
PREFIX poptableFile: <http://semantic.eea.europa.eu/project/faostat/2014/population_e.txt#>

SELECT
2011 as ?date
'2763,2735' as ?ItemCode
'Meat, other + edible offals' as ?Item
'Meat' as ?category
round((sum(?foodvalue)/sum(?popvalue))*10)/10.0 as ?foodvalue_per_capita
sum(?foodvalue) as ?foodvalue
sum(?popvalue) as ?popvalue
WHERE {
    {
    GRAPH <http://semantic.eea.europa.eu/project/faostat/2014/foodsupply_livestockfish_e.txt> {
    {
     _:foodsupply_livestockfish_e tableFile:CountryCode ?CountryCode .
     _:foodsupply_livestockfish_e tableFile:ItemCode ?ItemCode . FILTER (?ItemCode in (2763,2735))
     _:foodsupply_livestockfish_e tableFile:Item ?Item . 
     _:foodsupply_livestockfish_e tableFile:ElementGroup 641 . 
     _:foodsupply_livestockfish_e tableFile:ElementCode 641 .
     _:foodsupply_livestockfish_e tableFile:Year ?year . FILTER (?year = 2011)
     _:foodsupply_livestockfish_e tableFile:Unit 'tonnes' . 
     _:foodsupply_livestockfish_e tableFile:Value ?foodvalue .
    }}
      } UNION {
    GRAPH <http://semantic.eea.europa.eu/project/faostat/2014/population_e.txt> {
     {
     _:population_e poptableFile:CountryCode ?CountryCode .
     _:population_e poptableFile:ElementGroup 511 .
     _:population_e poptableFile:ElementCode 511 .
     _:population_e poptableFile:Year ?year . FILTER (?year = 2011)
     _:population_e poptableFile:Value ?popvalue .
    }}
  }
FILTER (?CountryCode in (11, 15, 255, 27, 98, 50, 167, 54, 63, 67, 68, 79, 84, 97, 104, 106, 119, 126, 256, 134, 150, 173, 174, 183, 199, 198, 203, 210, 229))
}

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 558, 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 421, in open
    protocol = req.get_type()
  File "/usr/local/lib/python2.7/urllib2.py", line 283, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: semantic.eea.europa.eu/sparql


Permalinks

Document Actions