Upload
boris-villazon-terrazas
View
3.090
Download
1
Tags:
Embed Size (px)
DESCRIPTION
An introduction to Statistical Linked Data
Citation preview
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
2
Specification – Spreadsheet about statistics
• Service Indicators of Ireland
3
Specification – Spreadsheet about statistics
• Service Indicators of Ireland• Data for 2009
4
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
6
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
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/
RDF Data Cube Vocabulary
qb http://purl.org/linked-data/cube#
9
RDF Data Cube – Main elements
10
11
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/
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/
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/
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/
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
17
Fuseki endpoint
• http://data-gov.ie/sparql
18
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
Metadata publication – VoID
• VoID description• VoID description• void.ttl
20
http://www.w3.org/TR/void/
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
22
Exploitation
http://county-rank.data-gov.ie/
23
Information about the County
24
Service Indicators - I
25
Service Indicators - II
26
Service Indicators - III
27
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