33
Semantic web at the Library of the National Congress of Chile August, 15th 2012

IFLA Semantic Web at the BCN, 15.08.2012

Embed Size (px)

DESCRIPTION

Presentación para Grupo de Interés de Web Semántica de la IFLA

Citation preview

Page 1: IFLA Semantic Web at the BCN, 15.08.2012

Semantic web at the Library of the National Congress of Chile

August, 15th 2012

Page 2: IFLA Semantic Web at the BCN, 15.08.2012

Motivation

Government actions and data can be monitoredImprove transparency and confidence

Public value (generates citizen experience)Research and collaborationData reuse

Public information belongs to citizensPublicly fundedROI

Page 3: IFLA Semantic Web at the BCN, 15.08.2012

Considerations in public agencies

Large data volumesSemi-structured contentGeneral interest contentsHihg expectations

Smal teams in large organizationsLittle knowledge of semantic web

Page 4: IFLA Semantic Web at the BCN, 15.08.2012

Open linked data architecture

Web Server Operating System

RDF Storage CacheDB

Endpoint SPARQLEndpoint SPARQL

OutputRDF

Graph

OutputRDF

GraphOntologiesOntologiesUpdate

RDFGraph

Service

UpdateRDF

GraphService

Web Application ServerWeb Application Server

Server side

Client side

Web Browser Semantic ApplicationSemantic Application

Cifuentes-Silva, Sifaqui & Labra Gayo: Towards an architecture and adoption process for linked data technologies in open government contexts: a case study for the Library of Congress of Chile. I-SEMANTICS 2011: 79-86,http://dl.acm.org/citation.cfm?id=2063529

Page 5: IFLA Semantic Web at the BCN, 15.08.2012

Application domains

Legislation

Political history

Page 6: IFLA Semantic Web at the BCN, 15.08.2012

Legislation

The legislation is public information ...

... and should be in public domain

Page 7: IFLA Semantic Web at the BCN, 15.08.2012

Legislation

Leychile (2008)Juridical certainty

Page 8: IFLA Semantic Web at the BCN, 15.08.2012

LeyChile: access offer

WSDL (http://www.leychile.cl/ws/LeyChile.wsdl)

Page 9: IFLA Semantic Web at the BCN, 15.08.2012

LeyChile: access offer

WSDL (http://www.leychile.cl/ws/LeyChile.wsdl)Enlaces, widgets, web services

(http://llevatelo.bcn.cl)

Page 10: IFLA Semantic Web at the BCN, 15.08.2012

¿LeyChile: LOD?

Natural extension

Improve interoperability (more formats)

To create domain ontologies

Offer a solution to complex queries using a SPARQL endpoint

First step: to expose metadata of the legal norms

Page 11: IFLA Semantic Web at the BCN, 15.08.2012

Principles LOD: URIs

http://datos.bcn.cl/recurso/cl/dto/ministerio-de-educacion/2008-11-07/341http://datos.bcn.cl/recurso/cl/dto/ministerio-de-educacion/2008-11-07/341Decree 341; nov. 11, 2008; Ministry of Education

http://datos.bcn.cl/recurso/cl/dto/ministerio-de-educacion/2008-11-07/341/es@2008-11-07http://datos.bcn.cl/recurso/cl/dto/ministerio-de-educacion/2008-11-07/341/es@2008-11-07

http://datos.bcn.cl/recurso/cl/dto/ministerio-de-educacion/2008-11-07/341/es@2010-07-20http://datos.bcn.cl/recurso/cl/dto/ministerio-de-educacion/2008-11-07/341/es@2010-07-20

Original version

Last version

Page 12: IFLA Semantic Web at the BCN, 15.08.2012

Principles LOD: RDF

Page 13: IFLA Semantic Web at the BCN, 15.08.2012

Principles LOD: links

Relationships to other datasets: Countries (International Treaties)DBPedia, Geonames

Reusing Vocabulary / OntologiesSKOS, DC, FOAF, DBPedia, ORG

Page 14: IFLA Semantic Web at the BCN, 15.08.2012

Complex queries

Find all the ordinances issued by a municipality between 1995 and 2000, but modified after 2005

PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX n: <http://datos.bcn.cl/ontologies/bcn-norms#> SELECT distinct str(?normTitle) as ?Titulo str(?creatorName) as ?Municipio ?pubDate as ?Fecha_Publicacion ?pubDateOther as ?Fecha_modificacionWHERE { ?norm n:createdBy ?creator . ?creator n:hasName ?creatorName . ?norm dc:title ?normTitle . ?norm n:publishDate ?pubDate . ?norm n:isModifiedBy ?otherNorm . ?otherNorm n:publishDate ?pubDateOther . FILTER (regex(?creatorName,"MUNICIPALIDAD","i")) FILTER (?pubDate > xsd:date("1995") && ?pubDate < xsd:date("2000") && ?pubDateOther > xsd:date("2005"))}ORDER BY (?pubDate)

PREFIX dc: <http://purl.org/dc/elements/1.1/>PREFIX n: <http://datos.bcn.cl/ontologies/bcn-norms#> SELECT distinct str(?normTitle) as ?Titulo str(?creatorName) as ?Municipio ?pubDate as ?Fecha_Publicacion ?pubDateOther as ?Fecha_modificacionWHERE { ?norm n:createdBy ?creator . ?creator n:hasName ?creatorName . ?norm dc:title ?normTitle . ?norm n:publishDate ?pubDate . ?norm n:isModifiedBy ?otherNorm . ?otherNorm n:publishDate ?pubDateOther . FILTER (regex(?creatorName,"MUNICIPALIDAD","i")) FILTER (?pubDate > xsd:date("1995") && ?pubDate < xsd:date("2000") && ?pubDateOther > xsd:date("2005"))}ORDER BY (?pubDate)

Page 15: IFLA Semantic Web at the BCN, 15.08.2012

http://datos.bcn.cl

First step finished in may 2011More than 300.000 norms exported

≈27 triples by norm≈8 million triples

200 to 400 triples added each day

Page 16: IFLA Semantic Web at the BCN, 15.08.2012

Political history

Biographical records

Page 17: IFLA Semantic Web at the BCN, 15.08.2012

Political history

Biographical records

Page 18: IFLA Semantic Web at the BCN, 15.08.2012

Political historyhttp://datos.bcn.cl/recurso/persona/2371http://datos.bcn.cl/recurso/persona/2371

Page 19: IFLA Semantic Web at the BCN, 15.08.2012

Political history

Biographical records

we do not have all the years/places of birth or death

for example, Salvador de la Cavareda Trucios alternate deputy for Valparaíso from 1824 to 1825 (brother of Salvador and José Joaquín)

But we know what we need:PREFIX bcnbio: <http://datos.bcn.cl/ontologies/bcn-biographies#> select * where { ?a a foaf:Person . OPTIONAL {?a bcnbio:hasBorn ?ano } . FILTER (!bound(?ano)) . }

PREFIX bcnbio: <http://datos.bcn.cl/ontologies/bcn-biographies#> select * where { ?a a foaf:Person . OPTIONAL {?a bcnbio:hasBorn ?ano } . FILTER (!bound(?ano)) . }

Page 20: IFLA Semantic Web at the BCN, 15.08.2012

Political history

Biographical records

Manuel Joaquín Díaz (deputy Constituent Congress 1891)

Manuel Joaquín Díaz Besoaín (deputy 1906-1908)

Is not the same person!first is Liberal-Democrático and second is Conservador

Page 21: IFLA Semantic Web at the BCN, 15.08.2012

Political history

Biographical records

Juan Esteban Manzano de la Sotta (deputy 1825-1826)

Esteban Ignacio Fernández del Manzano y de la Sotta

Is the same person!

Page 22: IFLA Semantic Web at the BCN, 15.08.2012

Political history

Biographical records

Carlos Larraín Claro (deputy 1912- 1915)Carlos Larraín Claro, father in law of Jorge

Astaburuaga Lyon (deputy 1924-1927)

Is the same person?

Page 23: IFLA Semantic Web at the BCN, 15.08.2012

Actual and future work

More datasets at the endpoint: biographies, transparency, geographical data, history of the law, legislative documents…

Expose parts of a legal norm and their metadata

Page 24: IFLA Semantic Web at the BCN, 15.08.2012

Actual development

Page 25: IFLA Semantic Web at the BCN, 15.08.2012

David Robinson and Harlan Yu in “El desafío hacia el gobierno abierto en la hora de la igualdad”, Gastón Concha y Alejandra Naser (eds.), Santiago, CEPAL, 2012

“Open data does not create its own demand. The government should compromise the developers”

Page 26: IFLA Semantic Web at the BCN, 15.08.2012

Visualizations

Page 27: IFLA Semantic Web at the BCN, 15.08.2012

Visualizations

Page 28: IFLA Semantic Web at the BCN, 15.08.2012

Visualizations

Page 29: IFLA Semantic Web at the BCN, 15.08.2012

Complex queries made easy

Page 30: IFLA Semantic Web at the BCN, 15.08.2012

Third party development

Page 31: IFLA Semantic Web at the BCN, 15.08.2012

Third party development

Source: Orand. S.A.

Page 32: IFLA Semantic Web at the BCN, 15.08.2012

Findings

Open data, open linked data, semantic web is more than a technology… it is a way of managing information

Visualization is not a final product, is a feedback process of data “ablution” and improving the visualization

Creates value for ourselves 1

Many technical details and challenges remain unsolved 1

1.- David Robinson and Harlan Yu in “El desafío hacia el gobierno abierto en la hora de la igualdad”, Gastón Concha y Alejandra Naser (eds.), Santiago, CEPAL, 2012

Page 33: IFLA Semantic Web at the BCN, 15.08.2012

Semantic web at the Library of the National Congress of Chile

August, 15th 2012