statistical linked data

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 Campus de Montegancedo sn, 28660 Boadilla del Monte, Madrid http://www.oeg-upm.net [email protected] 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 WorkdistributedunderthelicenseCreativeCommonsAttribution- Noncommercial-Share Alike 3.0 Corcho, Asunción Gómez-Pérez

Upload: boris-villazon-terrazas

Post on 11-May-2015

3.088 views

Category:

Technology


1 download

DESCRIPTION

An introduction to Statistical Linked Data

TRANSCRIPT

Page 1: Statistical Linked Data

Statistical Linked Data

Boris Villazón-TerrazasFacultad de Informática, Universidad Politécnica de Madrid

Campus de Montegancedo sn 28660 Boadilla del Monte MadridCampus de Montegancedo sn, 28660 Boadilla del Monte, Madridhttp://www.oeg-upm.net

[email protected]: 34.91.3366605, Fax: 34.91.3524819

Slides available at: http://www.slideshare.net/boricles/

Acknowledgements: Local Government Management ServicesBoard - Ireland, Michael Hausenblas, Richard Cyganiak, Oscar

WorkdistributedunderthelicenseCreativeCommonsAttribution-Noncommercial-Share Alike 3.0

Corcho, Asunción Gómez-Pérez

Page 2: Statistical Linked Data

2

Page 3: Statistical Linked Data

Specification – Spreadsheet about statistics

• Service Indicators of Ireland

3

Page 4: Statistical Linked Data

Specification – Spreadsheet about statistics

• Service Indicators of Ireland• Data for 2009

4

Page 5: Statistical Linked Data

Specification - URI design

• Base URI

• http://stats.data-gov.ie

• TBOX URITBOX URI

• We use the RDF Data Cube Vocabulary

• ABOX URI

• http:// stats.data-gov.ie /data/{resourceType}/{resource}

5

Page 6: Statistical Linked Data

6

Page 7: Statistical Linked Data

Vocabularies for modelling statistical data

• SCOVO• Michael Hausenblas, Danny Ayers, Lee Feigenbaum, Tom

Heath Wolfgang Halb Y es Raimond 2008Heath, Wolfgang Halb, Yves Raimond, 2008• It is deprecated

http://purl org/NET/scovohttp://purl.org/NET/scovo

• SDMX – RDF• Richard Cyganiak, Chris Dollin, Dave Reynolds, 2010• Provides a general means to publish statistical data in RDFProvides 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

Page 8: Statistical Linked Data

Vocabularies for modelling statistical data

• RDF Data Cube• 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/

8

http://linked-statistics.org/datacube/

Page 9: Statistical Linked Data

RDF Data Cube Vocabulary

qb http://purl.org/linked-data/cube#

9

Page 10: Statistical Linked Data

RDF Data Cube – Main elements

10

Page 11: Statistical Linked Data

11

Page 12: Statistical Linked Data

RDF Data Cube - Concepts

rdf:type

stats:concept/f

skos:Conceptskos:Concept

df tskos:broader skos:broader

rdf:type

stats:concept/f-1 stats:concept/f-2rdf:type

stats:concept/f-1-2

skos:broaderrdf:type

rdf:http://www w3 org/1999/02/22 rdf syntax ns#

12

stats:concept/f 1 2 rdf:http://www.w3.org/1999/02/22-rdf-syntax-ns#skos: http://www.w3.org/2004/02/skos/core#stats: http://stats.data-gov.ie/data/

Page 13: Statistical Linked Data

RDF Data Cube - Properties

qb:MeasurePropertyqb:MeasureProperty

/f

rdf:type

rdfs:subPropertyOfstats:property/f-1-2 qb:obsValue

b t rdfs:labelqb:conceptrdfs:range

rdfs:label

stats:concept/f-1-2 xsd:double “Average time …”

rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#

13

rdfs: http://www.w3.org/2000/01/rdf-schema#qb: http://purl.org/linked-data/cube#stats: http://stats.data-gov.ie/data/

Page 14: Statistical Linked Data

RDF Data Cube – Data structure definition

qb:DataStructureDefinitionqb:DataStructureDefinition

rdf:type

stats:dsd/f-1-2

rdf:type

stats:componet/geoArea

qb:component

p g

qb:component

stats:componet/refPeriodqb:component

stats:componet/f-1-2

q p

rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#qb: http://purl org/linked data/cube#

14

qb: http://purl.org/linked-data/cube#stats: http://stats.data-gov.ie/data/

Page 15: Statistical Linked Data

RDF Data Cube – DataSet

qb:DataSetqb:DataSet

rdf:type

stats:data/f-1-2

rdf:type

stats:dsd/f-1-2

qb:structure

qb:dataSet qb:dataSet

stats:data/f-1-2/2009/county/donegal

stats:data/f-1-2/2009/county/cavan

……2/2009/county/donegal 2/2009/county/cavan

rdf:type rdf:type

15

qb:Observationqb:Observation rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#qb: http://purl.org/linked-data/cube#stats: http://stats.data-gov.ie/data/

Page 16: Statistical Linked Data

RDF Data Cube – Observationrdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#qb: http://purl.org/linked-data/cube#stats: http://stats.data-gov.ie/data/property: http://stats.data-gov.ie/property/sdmx-dimension: http://purl.org/linked-data/sdmx/2009/dimension#

http://reference.data.gov.uk/id/year/2009

qb:dataSet

sdmx-dimension:refPeriod

rdf:type

stats:data/f-1-2 stats:data/f-1-2/2009/county/donegal qb:Observationqb:Observation

http://geo data-

property:geoArea property:f-1-2

16

http://geo.data-gov.ie/county/donegal 5.29

Page 17: Statistical Linked Data

17

Page 18: Statistical Linked Data

Fuseki endpoint

• http://data-gov.ie/sparql

18

Page 19: Statistical Linked Data

Fuseki endpoint

N l bit ith SPARQL )• Now you can play a bit with SPARQL … ;)

• What is the value of the Service Indicator F 2 1• What is the value of the Service Indicator F-2-1 (Percentage of cases in respect of fire in which first attendance is at the scene within 10 minutes) in the C f D l?County of Donegal?

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 {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 qb:dataSet ?ds .?obs property:f-2-1 ?val .}

19

Page 20: Statistical Linked Data

Metadata publication – VoID

• VoID description• VoID description• void.ttl

20

http://www.w3.org/TR/void/

Page 21: Statistical Linked Data

sitemap4rdf

• Simple command line tool• Sends a SPARQL query to list all URIs• 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 endpointand the prefix of the URLs to include in the Sitemap

21

Page 22: Statistical Linked Data

22

Page 23: Statistical Linked Data

Exploitation

http://county-rank.data-gov.ie/

23

Page 24: Statistical Linked Data

Information about the County

24

Page 25: Statistical Linked Data

Service Indicators - I

25

Page 26: Statistical Linked Data

Service Indicators - II

26

Page 27: Statistical Linked Data

Service Indicators - III

27

Page 28: Statistical Linked Data
Page 29: Statistical Linked Data

Statistical Linked Data

Boris Villazón-TerrazasFacultad de Informática, Universidad Politécnica de Madrid

Campus de Montegancedo sn 28660 Boadilla del Monte MadridCampus de Montegancedo sn, 28660 Boadilla del Monte, Madridhttp://www.oeg-upm.net

[email protected]: 34.91.3366605, Fax: 34.91.3524819

Slides available at: http://www.slideshare.net/boricles/

Acknowledgements: Local Government Management ServicesBoard - Ireland, Michael Hausenblas, Richard Cyganiak, Oscar

WorkdistributedunderthelicenseCreativeCommonsAttribution-Noncommercial-Share Alike 3.0

Corcho, Asunción Gómez-Pérez