This document discusses statistical linked data and presents an example of publishing Irish government service indicator data as linked data. It introduces vocabularies for modeling statistical data like SCOVO, SDMX-RDF and the RDF Data Cube Vocabulary. It then demonstrates how the Irish service indicator data can be modeled and published following the RDF Data Cube patterns, including URIs, concepts, properties, datasets and observations. It also discusses publishing metadata and exploiting the linked data through a SPARQL endpoint and a web application.
Powerful Google developer tools for immediate impact! (2023-24 C)
Statistical Linked Data
1. Statistical Linked Data
Boris Villazón-Terrazas
Facultad de Informática, Universidad Politécnica de Madrid
Campus de Montegancedo sn 28660 Boadilla del Monte Madrid
sn, Monte,
http://www.oeg-upm.net
bvillazon@fi.upm.es
Phone: 34.91.3366605, Fax: 34.91.3524819
Slides available at: http://www.slideshare.net/boricles/
Acknowledgements: Local Government Management Services
Board - Ireland, Michael Hausenblas, Richard Cyganiak, Oscar
Corcho, Asunción Gómez-Pérez
WorkdistributedunderthelicenseCreativeCommonsAttribution-
Noncommercial-Share Alike 3.0
5. Specification - URI design
• Base URI
• http://stats.data-gov.ie
• TBOX URI
• We use the RDF Data Cube Vocabulary
• ABOX URI
• http:// stats.data-gov.ie /data/{resourceType}/{resource}
5
7. Vocabularies for modelling statistical data
• SCOVO
• Michael Hausenblas, Danny Ayers, Lee Feigenbaum, Tom
Heath,
Heath Wolfgang Halb Y es Raimond 2008
Halb, Yves Raimond,
• It is deprecated
http://purl.org/NET/scovo
http://purl org/NET/scovo
• SDMX – RDF
• Richard Cyganiak, Chris Dollin, Dave Reynolds, 2010
• Provides a general means to publish statistical data in RDF
(exploiting the SDMX information model).
http://publishing-statistical-data.googlecode.com/svn/trunk/specs/src/main/html/index.html
7
8. Vocabularies for modelling statistical data
• RDF Data Cube
• Richard Cyganiak, Dave Reynolds, Jeni Tennison, 2010
• SDMX is massive, and many parts of the standard are not
really relevant for the kind of web-based data publishing that
RDF excels in. So they identified a core of SDMX that
seemed most relevant for data publishing, called that core
“Data Cube”, and published it separately.
• W3C Government Linked Data Working group is going to
propose RDF Data Cube for modelling government statistical
data.
http://linked-statistics.org/datacube/
http://linked statistics org/datacube/
8
9. RDF Data Cube Vocabulary
qb http://purl.org/linked-data/cube#
9
19. Fuseki endpoint
• N
Now you can play a bit with SPARQL … ;)
l ith )
• What is the value of the Service Indicator F 2 1
F-2-1
(Percentage of cases in respect of fire in which first
attendance is at the scene within 10 minutes) in the
County of D
C f Donegal?l?
PREFIX data: <http://stats.data-gov.ie/data/>
PREFIX qb: <http://purl.org/linked-data/cube#>
qb ttp //pu o g/ ed data/cube#
PREFIX sdmx-dimension : <http://purl.org/linked-data/sdmx/2009/dimension#>
PREFIX property: <http://stats.data-gov.ie/property/>
SELECT ?obs ?ds ?val
WHERE {
?obs a qb:Observation .
?obs sdmx-dimension :refPeriod <http://reference.data.gov.uk/id/year/2009> .
?obs property:geoArea <http://geo.data-gov.ie/county/donegal> .
?obs qb:dataSet ?ds .
?obs property:f-2-1 ?val .
}
19
21. sitemap4rdf
• Simple command line tool
• Sends a SPARQL query to list all URIs
• Generates sitemap
sitemap4rdf http://yoursite/sparql http://yoursite/resource/
Example:
sitemap4rdf http://geo.linkeddata.es/sparql http://geo.linkeddata.es/
sitemap4rdf http://data-gov.ie/sparql http://stats.data-gov.ie
• run sitemap4rdf specifying the SPARQL endpoint
and the prefix of the URLs to include in the Sitemap
21
29. Statistical Linked Data
Boris Villazón-Terrazas
Facultad de Informática, Universidad Politécnica de Madrid
Campus de Montegancedo sn 28660 Boadilla del Monte Madrid
sn, Monte,
http://www.oeg-upm.net
bvillazon@fi.upm.es
Phone: 34.91.3366605, Fax: 34.91.3524819
Slides available at: http://www.slideshare.net/boricles/
Acknowledgements: Local Government Management Services
Board - Ireland, Michael Hausenblas, Richard Cyganiak, Oscar
Corcho, Asunción Gómez-Pérez
WorkdistributedunderthelicenseCreativeCommonsAttribution-
Noncommercial-Share Alike 3.0