next
previous
items

Data table via SPARQL

Pigmeat - Livestock and Fish Primary Equivalent dataset

Data table via SPARQL Published 17 Jul 2014 Last modified 26 Aug 2017
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)

year item capita index foodvalue popvalue
"1995"^^<http://www.w3.org/2001/XMLSchema#int> "Pigmeat" "40.1"^^<http://www.w3.org/2001/XMLSchema#decimal> "100"^^<http://www.w3.org/2001/XMLSchema#decimal> "19434659"^^<http://www.w3.org/2001/XMLSchema#decimal> "484619"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1996"^^<http://www.w3.org/2001/XMLSchema#int> "Pigmeat" "40.9"^^<http://www.w3.org/2001/XMLSchema#decimal> "101.9"^^<http://www.w3.org/2001/XMLSchema#decimal> "19837229"^^<http://www.w3.org/2001/XMLSchema#decimal> "485352"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1997"^^<http://www.w3.org/2001/XMLSchema#int> "Pigmeat" "39.8"^^<http://www.w3.org/2001/XMLSchema#decimal> "99.2"^^<http://www.w3.org/2001/XMLSchema#decimal> "19325722"^^<http://www.w3.org/2001/XMLSchema#decimal> "485849"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1998"^^<http://www.w3.org/2001/XMLSchema#int> "Pigmeat" "42.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "105.9"^^<http://www.w3.org/2001/XMLSchema#decimal> "20645235"^^<http://www.w3.org/2001/XMLSchema#decimal> "486289"^^<http://www.w3.org/2001/XMLSchema#decimal>
"1999"^^<http://www.w3.org/2001/XMLSchema#int> "Pigmeat" "42.2"^^<http://www.w3.org/2001/XMLSchema#decimal> "105.3"^^<http://www.w3.org/2001/XMLSchema#decimal> "20559253"^^<http://www.w3.org/2001/XMLSchema#decimal> "486913"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2000"^^<http://www.w3.org/2001/XMLSchema#int> "Pigmeat" "41.5"^^<http://www.w3.org/2001/XMLSchema#decimal> "103.6"^^<http://www.w3.org/2001/XMLSchema#decimal> "20266075"^^<http://www.w3.org/2001/XMLSchema#decimal> "487891"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2001"^^<http://www.w3.org/2001/XMLSchema#int> "Pigmeat" "41.3"^^<http://www.w3.org/2001/XMLSchema#decimal> "102.9"^^<http://www.w3.org/2001/XMLSchema#decimal> "20189445"^^<http://www.w3.org/2001/XMLSchema#decimal> "489299"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2002"^^<http://www.w3.org/2001/XMLSchema#int> "Pigmeat" "41.4"^^<http://www.w3.org/2001/XMLSchema#decimal> "103.1"^^<http://www.w3.org/2001/XMLSchema#decimal> "20308617"^^<http://www.w3.org/2001/XMLSchema#decimal> "491061"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2003"^^<http://www.w3.org/2001/XMLSchema#int> "Pigmeat" "42"^^<http://www.w3.org/2001/XMLSchema#decimal> "104.7"^^<http://www.w3.org/2001/XMLSchema#decimal> "20697069"^^<http://www.w3.org/2001/XMLSchema#decimal> "493066"^^<http://www.w3.org/2001/XMLSchema#decimal>
"2004"^^<http://www.w3.org/2001/XMLSchema#int> "Pigmeat" "40.6"^^<http://www.w3.org/2001/XMLSchema#decimal> "101.2"^^<http://www.w3.org/2001/XMLSchema#decimal> "20085740"^^<http://www.w3.org/2001/XMLSchema#decimal> "495149"^^<http://www.w3.org/2001/XMLSchema#decimal>

Received 56 rows in 0.002 seconds.


https://eea.europa.eu./data-and-maps/daviz/sds/pigmeat-livestock-and-fish-primary/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
?year
'Pigmeat' as ?item
(round(sum(?foodvalue)/sum(?popvalue)*10))/10.0 as ?capita
#hard coded values for indexing taken from the results of the query
(round(( sum(?foodvalue)/sum(?popvalue) ) / (19434659.0/484619.0 ) *1000))/10.0 as ?index
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 2733 . 
     _:foodsupply_livestockfish_e tableFile:ElementGroup 641 . 
     _:foodsupply_livestockfish_e tableFile:ElementCode 641 .
     _:foodsupply_livestockfish_e tableFile:Year ?year . FILTER (?year >1994)
     _: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 >1994)
     _: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))
}
GROUP BY ?year
ORDER BY ?year


Permalinks

Document Actions