Linked (Open) Data

B
Bernhard HaslhoferResearcher em University of Vienna
Linked (Open) Data
INFO 4302 - April 18, 2011
Bernhard Haslhofer - Cornell University
Who am I?

• Postdoc at Cornell Information Science
• Research areas
 • linked data
 • user-contributed data (annotations)
 • (meta-)data interoperability
• Contact:
 • bernhard.haslhofer@cornell.edu
Today we talk about...



http://www.youtube.com/watch?v=5Cb3ik6zP2I
Today we talk about...

• Movies, actors and other real-world entities
• How to make data about these entities
 available on the Web (Linked Data)
• Enabling technologies, best-practices and
 useful tools that help us in doing so
• Other Linked Data projects (BBC, LoC)
Web Architecture Recap
The World Wide Web (WWW)
• Internet != WWW != Google != Facebook
• Fundamental technologies
 • URI - a simple and generic syntax for identifiers
 • HTML - a markup language without formal schema
     binding
 •   HTTP - a simple protocol to access and manipulate
     resources and resource representations in a
     distributed environment

• W3C Consortium (http://www.w3.org)
URIs

• Identification of resources via Uniform
  Resource Identifiers (URIs)
•The generic syntax consists of a hierarchical sequence of components, scheme,
  Generic Syntax:
 authority, path, query, and fragment.

 URI = scheme “:” hier-path [ “?” query ] [ “#” fragment ]

 Scheme and hier-path are required, though the path may be empty.

 Example URIs with components:                               URI


     foo://example.com:8042/over/there?name=ferret#nose
     _/ ________________/_________/ _________/ __/
                                        URL
      |           |             |            |       | URN
    scheme    authority        path        query   fragment
URIs / Resources

• Information Resource
 •   web pages, images, product catalogs, etc
 •   all their essential characteristics can be conveyed in a
     message
 •   e.g., http://www.flickr.com/user2/photos/image.jpg

• Non-Information Resource
 •   other things such as dogs, people, this classroom, concepts
 •   their essence is not information
 •   e.g., http://www.example.com/ontology/meter
HTTP


• A stateless request-response protocol in the
 client-server computing model
• HTTP methods: GET, POST, PUT, DELETE, ...
• Agents may use a URI to access the
 referenced resource = dereferencing the URI
HTTP Content Negotiation

• A URI is not (necessarily) a filename
• Conneg = making available multiple resource
 representations via the same URI

                                         Plain Text
                                         text/plain



                                         HTML (en)
                     URI                  text/html



                                         HTML (jp)
        http://example.com/The_Shining   text/html

                                         Resource
(X)HTML(5)
• A resource representation data format...
• ... for presentation markup
 • rendered by user agents (typically browsers)
 • focus on readability
 • less formal, user-friendly syntax and semantics
Web Services
• Application-to-application communication
 based on the Web architecture
 • simple and open standards (HTTP, XML, JSON, ...)
 • send data from Application A to Application B
     through the Web
 •   usually define some API



                          Web

         Application A               Application B
Linked Data
Why Linked Data?
Why Linked Data?
Why Linked Data?
Why Linked Data?

• There is lots of information on the Web
• ...valuable information that can be (re-)used
• Problem
 • information is usually expressed in the form of
     HTML documents
 •   the underlying raw data are locked in closed data
     silos (mostly DBMS)
(c) http://www.flickr.com/photos/docsearls/5500714140
Why Linked Data?

• The Web is successful because it provides
 • Uniform encoding (HTML)
 • Uniform addressing (URI)
 • Uniform transportation (HTTP)
 for the exchange of documents.
• Why not apply the same mechanism to the
 underlying data?
Linked (Open) Data
Linked (Open) Data
What is Linked Data?

• A method to build a Web of Data
• Architectural style, set of standards



                        Web
What is Linked Data?

• A set of four principles
 • use URIs as names for things
 • use HTTP URIs so that people can look up those
     names
 •   when someone looks up a URI, provide useful
     information, using the standards (RDF, SPARQL)
 •   include links to other URIs, so that they can
     discover more things
Enabling Technologies
Uniform Resource Identifiers (URI)

• Name and identify things (resources)
• Dereferencable HTTP URIs
                                   http://dbpedia.org/resource/
                                        The_Shining_(film)




      http://data.linkedmdb.org/
          resource/film/2014




                                   http://rdf.freebase.com/ns/m/
                                                 04fjzv
Resource Description Framework (RDF)

• A model for representing data on the Web
• Several statements (triples) form a graph
         http://dbpedia.org/ontology/                                                   http://xmlns.com/foaf/0.1/
                     Film                                                                         Person



                      rdf:type                                                                   rdf:type



         http://dbpedia.org/resource/                                                  http://dbpedia.org/resource/
                                                       dbpprop:starring
              The_Shining_(film)                                                               Jack_Nicholson



                                                                                                     foaf:name
              rdfs:label    rdfs:label
                                                                              dbpedia-owl:birthDate



    !" (#$)                        The Shining (film)                      1937-04-22                             Jack Nicholson
RDF serialization (RDF/XML, N3, Turtle, etc.)


• Data formats for RDF resource representations
   7.2.2.3            RDF Serialization Formats: RDF/XML, N3, Turtle, N-Triple, etc



• Used to transfer RDF data between apps
          Data formats for RDF resource representations

          Used to transfer RDF data from application-to-application

          N3/Turtle example:

         @prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
         @prefix dbpedia-owl:<http://dbpedia.org/ontology/> .

         <http://dbpedia.org/resource/The_Shining_%28film%29>
               rdf:type dbpedia-owl:Work , dbpedia-owl:Film .

         @prefix dbpprop:<http://dbpedia.org/property/> .
         @prefix ns9:<http://dbpedia.org/datatype/> .

         <http://dbpedia.org/resource/The_Shining_%28film%29>
               dbpprop:runtime"146.0"^^ns9:minute ;


   © Prof. Dr. Wolfgang Klas und Dr. Bernhard Haslhofer, WS 2010/11 - Multimediale Systeme 2
   7 Linked (Open) Data                                                                        7-15
RDF Vocabulary Description Language (RDFS)

• A language for describing the syntax and
 semantics of vocabularies in a machine-
 understandable way

                  http://dbpedia.org/ontology/
                             Work




                       rdfs:subClassOf




                  http://dbpedia.org/ontology/
                              Film
OWL - Web Ontology Language
• A more expressive (formal) language for defining the
  syntax and semantics of vocabularies
• Solves RDFS shortcomings but introduces quite some
  complexity

           http://www.w3.org/2002/07/                              http://dbpedia.org/ontology/
               owl#ObjectProperty                                             Work




                     rdf:type                        rdfs:domain




           http://dbpedia.org/ontology/                            http://dbpedia.org/ontology/
                                                     rdfs:range
                     starring                                                 Person



                            rdfs:label



                                          starring
Simple Knowledge Organization System (SKOS)

• A language for describing controlled vocabularies
      (taxonomies, thesauri, classification schemes)


                                              http://dbpedia.org/resource/
                                              Category:1980s_horror_films

                               skos:subject                                   rdf:type

http://dbpedia.org/resource/                         skos:broader
                                                                                         http://www.w3.org/2004/02/
     The_Shining_(film)                                                                       skos/core#Concept

                                                                             rdf:type
                                              http://dbpedia.org/resource/
                                                 Category:1980s_films
Links between Resources

   • OWL defines properties for linking resources
                             http://dbpedia.org/resource/                              http://dbpedia.org/resource/
                                                                 dbpprop:starring
                                  The_Shining_(film)                                           Jack_Nicholson



               owl:sameAs
                                                                                            owl:sameAs
                                          owl:sameAs
http://data.linkedmdb.org/
    resource/film/2014

                                                                                    http://data.nytimes.com/
                                                                                    N5761411277431266513
                                        http://rdf.freebase.com/ns/m/
                                                      04fjzv
SPARQL

 • A query language and protocol for accessing
7.2.2.7   SPARQL - RDF Query Language
    RDF data on the Web
    A query language and protocol for accessing RDF data on the Web


   SELECT DISTINCT ?x

   WHERE {?x skos:subject <http:dbpedia.org/resource/Cate-
      gory:1980s_horror_films>}

   LIMIT 10
Vocabulary / Data
Publishing Best Practices
Publishing Vocabularies
• Hash-based URIs
 •   e.g., http://example.com/example1#ClassA
 •   Suited to group the description of a moderate number of
     related terms into one RDF document
 •   Agent can retrieve terms with a single request

• Slash-based URIs
 •   e.g., http://example.com/example1/ClassB
 •   Suited to split terms in large vocabularies into one
     document per term
 •   No need to download a massive document
Provide either:

human-readable content from vocabulary URI
or:

machine-readable content from vocabulary URI




... depending on what is requested.
Linked (Open) Data
Linked (Open) Data
Publishing Data

• Distinguish between non-information and
 information resource
• Sample non-information resource
 • http://dbpedia.org/resource/The_Shining_(film)
• Sample information resource
 • http://dbpedia.org/page/The_Shining_(film) - HTML
 • http://dbpedia.org/data/The_Shining_(film) - RDF
Publishing Data

       GET http://dbpedia.org/resource/The_Shining_(film)
       Accept: application/rdf+xml



       303 See Other
       Location: http://dbpedia.org/data/The_Shining_(film)



       GET http://dbpedia.org/data/The_Shining_(film)
       Accept: application/rdf+xml



       200 OK
       ...
       <?xml version="1.0" encoding="utf-8"?>
       <rdf:RDF ...
The Linking Open Data
Community Project
Linking? Open? Data Project?

• Open Data: a philosophy, practice, or policy that data are
  freely available to everyone without restrictions from
  copyright, patents, a.s.o.

• Linked Data: method / best practices for exposing, sharing,
  and connecting data using URIs and RDF

• Linking Open Data: a W3C community project with the
  goal to extend the Web with a data commons by publishing
  various open data sets as RDF on the Web and by setting
  links between data items from different sources
Linked (Open) Data
Linked (Open) Data
Linked (Open) Data
Linked (Open) Data
Linked (Open) Data
Linked (Open) Data
Linked (Open) Data
Linked (Open) Data
Linked (Open) Data
Linked (Open) Data
Linked (Open) Data
Linked (Open) Data
Linked (Open) Data
Useful Tools
RDF APIs
•   Java
    •   Jena Semantic Web Framework (http://openjena.org/)
    •   Sesame RDF API (http://www.openrdf.org/)

•   PHP
    •   ARC (http://arc.semsol.org/)

•   Ruby
    •   RDF.rb: Linked Data for Ruby (http://rdf.rubyforge.org/)

•   Python
    •   RDFLib (http://www.rdflib.net/)

•   C
    •   Redland RDF Libraries (http://librdf.org/)
RDF Stores

• OpenLink Virtuoso (http://virtuoso.openlinksw.com/
  dataspace/dav/wiki/Main/)
• 4Store (http://4store.org/)
• AllegroGraph (http://www.franz.com/agraph/
  allegrograph/)
• Oracle 11g (http://www.oracle.com/technetwork/
  database/options/semantic-tech/ index.html)
• ...and many more: http://www.w3.org/2001/sw/wiki/Tools
RDF / Linked Data Wrappers
• D2RQ - SPARQL / Linked Data for relational
 databases (http://www4.wiwiss.fu-berlin.de/
 bizer/d2rq/)
• OAI2LOD Server - expose any OAI-PMH
 source as Linked Data
• TripFS - filesystem as Linked Data
• TripCel - XLS spreadsheets as Linked Dat
• ...
Linked Data debugging

Startup your console / terminal
  - native on Linux / Mac OS X
  - Windows: http://www.cygwin.com/

Dereference resources with cURL (http://curl.haxx.se/)
curl -I -H "Accept: application/rdf+xml" http://
dbpedia.org/resource/The_Shining_%28film%29

curl -H "Accept: application/rdf+xml" http://
dbpedia.org/data/The_Shining_%28film%29
Linked Data debugging

Install the Raptor RDF Syntax Library (http://
librdf.org/raptor/)
  - Mac: brew install raptor

Use the rapper utility to dereference URIs
rapper http://dbpedia.org/resource/The_Shining_%28film
%29

rapper -o rdfxml http://dbpedia.org/resource/
The_Shining_%28film%29
Readings
Required Reading



• T. Heath, C. Bizer. Linked Data: Evolving the Web into a
  Global Data Space, Chapters 1-5

  http://linkeddatabook.com/editions/1.0/
Recommended Readings
• Linked Data Web Site: http://linkeddata.org
• Linked Data / Semantic Web Introduction: http://
  www.linkeddatatools.com/semantic-web-basics
• Tim Berners-Lee. Linked Data Design Issues: http://
  www.w3.org/DesignIssues/LinkedData.html
• Best Practice Recipes for Publishing RDF Vocabularies:
  http://www.w3.org/TR/swbp-vocab-pub/
• How to Publish Linked Data on the Web: http://
  www4.wiwiss.fu-berlin.de/bizer/pub/LinkedDataTutorial/
1 de 64

Recomendados

SWT Lecture Session 2 - RDF por
SWT Lecture Session 2 - RDFSWT Lecture Session 2 - RDF
SWT Lecture Session 2 - RDFMariano Rodriguez-Muro
2.2K visualizações86 slides
Corrib.org - OpenSource and Research por
Corrib.org - OpenSource and ResearchCorrib.org - OpenSource and Research
Corrib.org - OpenSource and Researchadameq
1K visualizações71 slides
Hack U Barcelona 2011 por
Hack U Barcelona 2011Hack U Barcelona 2011
Hack U Barcelona 2011Peter Mika
1.4K visualizações24 slides
SDA2013 Pundit: Creating, Exploring and Consuming Annotations por
SDA2013 Pundit: Creating, Exploring and Consuming AnnotationsSDA2013 Pundit: Creating, Exploring and Consuming Annotations
SDA2013 Pundit: Creating, Exploring and Consuming AnnotationsMarco Grassi
2.6K visualizações26 slides
From the Semantic Web to the Web of Data: ten years of linking up por
From the Semantic Web to the Web of Data: ten years of linking upFrom the Semantic Web to the Web of Data: ten years of linking up
From the Semantic Web to the Web of Data: ten years of linking upDavide Palmisano
25.1K visualizações64 slides
Development of Semantic Web based Disaster Management System por
Development of Semantic Web based Disaster Management SystemDevelopment of Semantic Web based Disaster Management System
Development of Semantic Web based Disaster Management SystemNIT Durgapur
1.4K visualizações26 slides

Mais conteúdo relacionado

Mais procurados

semantic web & natural language por
semantic web & natural languagesemantic web & natural language
semantic web & natural languageNurfadhlina Mohd Sharef
738 visualizações58 slides
20110728 datalift-rpi-troy por
20110728 datalift-rpi-troy20110728 datalift-rpi-troy
20110728 datalift-rpi-troyFrançois Scharffe
857 visualizações55 slides
General Introduction for Semantic Web and Linked Open Data por
General Introduction for Semantic Web and Linked Open DataGeneral Introduction for Semantic Web and Linked Open Data
General Introduction for Semantic Web and Linked Open DataNational Institute of Informatics (NII)
1.5K visualizações69 slides
Introduction to RDF por
Introduction to RDFIntroduction to RDF
Introduction to RDFPedro Szekely
2.6K visualizações93 slides
Owl web ontology language por
Owl  web ontology languageOwl  web ontology language
Owl web ontology languagehassco2011
5.1K visualizações22 slides
RDF data model por
RDF data modelRDF data model
RDF data modelJose Emilio Labra Gayo
3.3K visualizações12 slides

Mais procurados(19)

20110728 datalift-rpi-troy por François Scharffe
20110728 datalift-rpi-troy20110728 datalift-rpi-troy
20110728 datalift-rpi-troy
François Scharffe857 visualizações
Introduction to RDF por Pedro Szekely
Introduction to RDFIntroduction to RDF
Introduction to RDF
Pedro Szekely2.6K visualizações
Owl web ontology language por hassco2011
Owl  web ontology languageOwl  web ontology language
Owl web ontology language
hassco20115.1K visualizações
The Semantic Web #5 - RDF (2) por Myungjin Lee
The Semantic Web #5 - RDF (2)The Semantic Web #5 - RDF (2)
The Semantic Web #5 - RDF (2)
Myungjin Lee1.1K visualizações
An introduction to Semantic Web and Linked Data por Fabien Gandon
An introduction to Semantic Web and Linked DataAn introduction to Semantic Web and Linked Data
An introduction to Semantic Web and Linked Data
Fabien Gandon38.8K visualizações
The Semantic Web #10 - SPARQL por Myungjin Lee
The Semantic Web #10 - SPARQLThe Semantic Web #10 - SPARQL
The Semantic Web #10 - SPARQL
Myungjin Lee1.8K visualizações
Linked data for librarians por trevorthornton
Linked data for librariansLinked data for librarians
Linked data for librarians
trevorthornton660 visualizações
An Introduction to RDF and the Web of Data por Olaf Hartig
An Introduction to RDF and the Web of DataAn Introduction to RDF and the Web of Data
An Introduction to RDF and the Web of Data
Olaf Hartig3.2K visualizações
The Semantic Web #4 - RDF (1) por Myungjin Lee
The Semantic Web #4 - RDF (1)The Semantic Web #4 - RDF (1)
The Semantic Web #4 - RDF (1)
Myungjin Lee1.1K visualizações
Tutorial on Semantic Digital Libraries (WWW'2007) por Sebastian Ryszard Kruk
Tutorial on Semantic Digital Libraries (WWW'2007)Tutorial on Semantic Digital Libraries (WWW'2007)
Tutorial on Semantic Digital Libraries (WWW'2007)
Sebastian Ryszard Kruk5.2K visualizações
Ontologies and semantic web por Stanley Wang
Ontologies and semantic webOntologies and semantic web
Ontologies and semantic web
Stanley Wang1.9K visualizações
Publishing and Using Linked Open Data - Day 2 por Richard Urban
Publishing and Using Linked Open Data - Day 2Publishing and Using Linked Open Data - Day 2
Publishing and Using Linked Open Data - Day 2
Richard Urban1K visualizações

Destaque

Modern PHP RDF toolkits: a comparative study por
Modern PHP RDF toolkits: a comparative studyModern PHP RDF toolkits: a comparative study
Modern PHP RDF toolkits: a comparative studyMarius Butuc
4.2K visualizações6 slides
Linked Open Data por
Linked Open DataLinked Open Data
Linked Open DataLars Marius Garshol
1.7K visualizações87 slides
Linked Open Data for Libraries por
Linked Open Data for LibrariesLinked Open Data for Libraries
Linked Open Data for LibrariesLukas Koster
5.7K visualizações83 slides
Overview of Open Data, Linked Data and Web Science por
Overview of Open Data, Linked Data and Web ScienceOverview of Open Data, Linked Data and Web Science
Overview of Open Data, Linked Data and Web ScienceHaklae Kim
8.7K visualizações34 slides
Linked Open Data Principles, Technologies and Examples por
Linked Open Data Principles, Technologies and ExamplesLinked Open Data Principles, Technologies and Examples
Linked Open Data Principles, Technologies and ExamplesOpen Data Support
9K visualizações100 slides
Linked Data Tutorial por
Linked Data TutorialLinked Data Tutorial
Linked Data TutorialMichael Hausenblas
13.7K visualizações37 slides

Destaque(6)

Modern PHP RDF toolkits: a comparative study por Marius Butuc
Modern PHP RDF toolkits: a comparative studyModern PHP RDF toolkits: a comparative study
Modern PHP RDF toolkits: a comparative study
Marius Butuc4.2K visualizações
Linked Open Data for Libraries por Lukas Koster
Linked Open Data for LibrariesLinked Open Data for Libraries
Linked Open Data for Libraries
Lukas Koster5.7K visualizações
Overview of Open Data, Linked Data and Web Science por Haklae Kim
Overview of Open Data, Linked Data and Web ScienceOverview of Open Data, Linked Data and Web Science
Overview of Open Data, Linked Data and Web Science
Haklae Kim8.7K visualizações
Linked Open Data Principles, Technologies and Examples por Open Data Support
Linked Open Data Principles, Technologies and ExamplesLinked Open Data Principles, Technologies and Examples
Linked Open Data Principles, Technologies and Examples
Open Data Support9K visualizações
Linked Data Tutorial por Michael Hausenblas
Linked Data TutorialLinked Data Tutorial
Linked Data Tutorial
Michael Hausenblas13.7K visualizações

Similar a Linked (Open) Data

Introduction to RDF por
Introduction to RDFIntroduction to RDF
Introduction to RDFDr Sukhpal Singh Gill
497 visualizações67 slides
Publishing Data Using Semantic Web Technologies por
Publishing Data Using Semantic Web TechnologiesPublishing Data Using Semantic Web Technologies
Publishing Data Using Semantic Web TechnologiesNikolaos Konstantinou
1.6K visualizações62 slides
SKOS, RDFa, Microformats, Microdata por
SKOS, RDFa, Microformats, MicrodataSKOS, RDFa, Microformats, Microdata
SKOS, RDFa, Microformats, MicrodataBernhard Haslhofer
3K visualizações70 slides
Lecture4202011 110420175305-phpapp01 por
Lecture4202011 110420175305-phpapp01Lecture4202011 110420175305-phpapp01
Lecture4202011 110420175305-phpapp01Tarek Koudsi
419 visualizações70 slides
Bio ontologies and semantic technologies por
Bio ontologies and semantic technologiesBio ontologies and semantic technologies
Bio ontologies and semantic technologiesProf. Wim Van Criekinge
1.9K visualizações103 slides
Ontologies and Vocabularies por
Ontologies and VocabulariesOntologies and Vocabularies
Ontologies and Vocabulariesseanb
5.9K visualizações53 slides

Similar a Linked (Open) Data(20)

Publishing Data Using Semantic Web Technologies por Nikolaos Konstantinou
Publishing Data Using Semantic Web TechnologiesPublishing Data Using Semantic Web Technologies
Publishing Data Using Semantic Web Technologies
Nikolaos Konstantinou1.6K visualizações
SKOS, RDFa, Microformats, Microdata por Bernhard Haslhofer
SKOS, RDFa, Microformats, MicrodataSKOS, RDFa, Microformats, Microdata
SKOS, RDFa, Microformats, Microdata
Bernhard Haslhofer3K visualizações
Lecture4202011 110420175305-phpapp01 por Tarek Koudsi
Lecture4202011 110420175305-phpapp01Lecture4202011 110420175305-phpapp01
Lecture4202011 110420175305-phpapp01
Tarek Koudsi419 visualizações
Bio ontologies and semantic technologies por Prof. Wim Van Criekinge
Bio ontologies and semantic technologiesBio ontologies and semantic technologies
Bio ontologies and semantic technologies
Prof. Wim Van Criekinge1.9K visualizações
Ontologies and Vocabularies por seanb
Ontologies and VocabulariesOntologies and Vocabularies
Ontologies and Vocabularies
seanb5.9K visualizações
Linking Open, Big Data Using Semantic Web Technologies - An Introduction por Ronald Ashri
Linking Open, Big Data Using Semantic Web Technologies - An IntroductionLinking Open, Big Data Using Semantic Web Technologies - An Introduction
Linking Open, Big Data Using Semantic Web Technologies - An Introduction
Ronald Ashri2.1K visualizações
Linked data 101: Getting Caught in the Semantic Web por Morgan Briles
Linked data 101: Getting Caught in the Semantic Web Linked data 101: Getting Caught in the Semantic Web
Linked data 101: Getting Caught in the Semantic Web
Morgan Briles645 visualizações
Integrating a Domain Ontology Development Environment and an Ontology Search ... por Takeshi Morita
Integrating a Domain Ontology Development Environment and an Ontology Search ...Integrating a Domain Ontology Development Environment and an Ontology Search ...
Integrating a Domain Ontology Development Environment and an Ontology Search ...
Takeshi Morita843 visualizações
Lecture linked data cloud & sparql por Dhavalkumar Thakker
Lecture linked data cloud & sparqlLecture linked data cloud & sparql
Lecture linked data cloud & sparql
Dhavalkumar Thakker2.6K visualizações
Semantic web por Pallavi Srivastava
Semantic web Semantic web
Semantic web
Pallavi Srivastava3.7K visualizações
First Steps in Semantic Data Modelling and Search & Analytics in the Cloud por Ontotext
First Steps in Semantic Data Modelling and Search & Analytics in the CloudFirst Steps in Semantic Data Modelling and Search & Analytics in the Cloud
First Steps in Semantic Data Modelling and Search & Analytics in the Cloud
Ontotext2.2K visualizações
Linked Open Data Fundamentals for Libraries, Archives and Museums por trevorthornton
Linked Open Data Fundamentals for Libraries, Archives and MuseumsLinked Open Data Fundamentals for Libraries, Archives and Museums
Linked Open Data Fundamentals for Libraries, Archives and Museums
trevorthornton1.3K visualizações
OWL: Yet to arrive on the Web of Data? por Aidan Hogan
OWL: Yet to arrive on the Web of Data?OWL: Yet to arrive on the Web of Data?
OWL: Yet to arrive on the Web of Data?
Aidan Hogan1.1K visualizações
CS6010 Social Network Analysis Unit II por pkaviya
CS6010 Social Network Analysis   Unit IICS6010 Social Network Analysis   Unit II
CS6010 Social Network Analysis Unit II
pkaviya8.4K visualizações
A Semantic Multimedia Web (Part 2) por Raphael Troncy
A Semantic Multimedia Web (Part 2)A Semantic Multimedia Web (Part 2)
A Semantic Multimedia Web (Part 2)
Raphael Troncy3K visualizações
Web ontology language (owl) por Ameer Sameer
Web ontology language (owl)Web ontology language (owl)
Web ontology language (owl)
Ameer Sameer7K visualizações
SPARQL in the Semantic Web por Jan Beeck
SPARQL in the Semantic WebSPARQL in the Semantic Web
SPARQL in the Semantic Web
Jan Beeck790 visualizações
Piloting Linked Data to Connect Library and Archive Resources to the New Worl... por Laura Akerman
Piloting Linked Data to Connect Library and Archive Resources to the New Worl...Piloting Linked Data to Connect Library and Archive Resources to the New Worl...
Piloting Linked Data to Connect Library and Archive Resources to the New Worl...
Laura Akerman1.2K visualizações
Semantic Web: From Representations to Applications por Guus Schreiber
Semantic Web: From Representations to ApplicationsSemantic Web: From Representations to Applications
Semantic Web: From Representations to Applications
Guus Schreiber361 visualizações

Mais de Bernhard Haslhofer

Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P... por
Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P...Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P...
Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P...Bernhard Haslhofer
565 visualizações20 slides
Token Systems, Payment Channels, and Corporate Currencies por
Token Systems, Payment Channels, and Corporate CurrenciesToken Systems, Payment Channels, and Corporate Currencies
Token Systems, Payment Channels, and Corporate CurrenciesBernhard Haslhofer
438 visualizações48 slides
Can a blockchain solve the trust problem? por
Can a blockchain solve the trust problem?Can a blockchain solve the trust problem?
Can a blockchain solve the trust problem?Bernhard Haslhofer
1.2K visualizações23 slides
Measurements in Cryptocurrency Networks por
Measurements in Cryptocurrency NetworksMeasurements in Cryptocurrency Networks
Measurements in Cryptocurrency NetworksBernhard Haslhofer
751 visualizações37 slides
Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur... por
 Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur... Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...
Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...Bernhard Haslhofer
926 visualizações57 slides
Insight Into Cryptocurrencies - Methods and Tools for Analyzing Blockchain-ba... por
Insight Into Cryptocurrencies - Methods and Tools for Analyzing Blockchain-ba...Insight Into Cryptocurrencies - Methods and Tools for Analyzing Blockchain-ba...
Insight Into Cryptocurrencies - Methods and Tools for Analyzing Blockchain-ba...Bernhard Haslhofer
422 visualizações22 slides

Mais de Bernhard Haslhofer(20)

Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P... por Bernhard Haslhofer
Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P...Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P...
Decentralized Finance (DeFi) - Understanding Risks in an Emerging Financial P...
Bernhard Haslhofer565 visualizações
Token Systems, Payment Channels, and Corporate Currencies por Bernhard Haslhofer
Token Systems, Payment Channels, and Corporate CurrenciesToken Systems, Payment Channels, and Corporate Currencies
Token Systems, Payment Channels, and Corporate Currencies
Bernhard Haslhofer438 visualizações
Can a blockchain solve the trust problem? por Bernhard Haslhofer
Can a blockchain solve the trust problem?Can a blockchain solve the trust problem?
Can a blockchain solve the trust problem?
Bernhard Haslhofer1.2K visualizações
Measurements in Cryptocurrency Networks por Bernhard Haslhofer
Measurements in Cryptocurrency NetworksMeasurements in Cryptocurrency Networks
Measurements in Cryptocurrency Networks
Bernhard Haslhofer751 visualizações
Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur... por Bernhard Haslhofer
 Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur... Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...
Post-Bitcoin Cryptocurrencies, Off-Chain Transaction Channels, and Cryptocur...
Bernhard Haslhofer926 visualizações
Insight Into Cryptocurrencies - Methods and Tools for Analyzing Blockchain-ba... por Bernhard Haslhofer
Insight Into Cryptocurrencies - Methods and Tools for Analyzing Blockchain-ba...Insight Into Cryptocurrencies - Methods and Tools for Analyzing Blockchain-ba...
Insight Into Cryptocurrencies - Methods and Tools for Analyzing Blockchain-ba...
Bernhard Haslhofer422 visualizações
O Bitcoin Where Art Thou? An Introduction to Cryptocurrency Analytics por Bernhard Haslhofer
O Bitcoin Where Art Thou? An Introduction to Cryptocurrency AnalyticsO Bitcoin Where Art Thou? An Introduction to Cryptocurrency Analytics
O Bitcoin Where Art Thou? An Introduction to Cryptocurrency Analytics
Bernhard Haslhofer635 visualizações
Mind the Gap - Data Science Meets Software Engineering por Bernhard Haslhofer
Mind the Gap - Data Science Meets Software EngineeringMind the Gap - Data Science Meets Software Engineering
Mind the Gap - Data Science Meets Software Engineering
Bernhard Haslhofer303 visualizações
GraphSense - Real-time Insight into Virtual Currency Ecosystems por Bernhard Haslhofer
GraphSense - Real-time Insight into Virtual Currency EcosystemsGraphSense - Real-time Insight into Virtual Currency Ecosystems
GraphSense - Real-time Insight into Virtual Currency Ecosystems
Bernhard Haslhofer1.1K visualizações
BITCOIN - De-anonymization and Money Laundering Detection Strategies por Bernhard Haslhofer
BITCOIN - De-anonymization and Money Laundering Detection StrategiesBITCOIN - De-anonymization and Money Laundering Detection Strategies
BITCOIN - De-anonymization and Money Laundering Detection Strategies
Bernhard Haslhofer2.7K visualizações
Bitcoin - Introduction, Technical Aspects and Ongoing Developments por Bernhard Haslhofer
Bitcoin - Introduction, Technical Aspects and Ongoing DevelopmentsBitcoin - Introduction, Technical Aspects and Ongoing Developments
Bitcoin - Introduction, Technical Aspects and Ongoing Developments
Bernhard Haslhofer3.9K visualizações
Maphub und Pelagios: Anwendung von Linked Data in den Digitalen Geisteswissen... por Bernhard Haslhofer
Maphub und Pelagios: Anwendung von Linked Data in den Digitalen Geisteswissen...Maphub und Pelagios: Anwendung von Linked Data in den Digitalen Geisteswissen...
Maphub und Pelagios: Anwendung von Linked Data in den Digitalen Geisteswissen...
Bernhard Haslhofer1.6K visualizações
The value of open data and the OpenGLAM network por Bernhard Haslhofer
The value of open data and the OpenGLAM networkThe value of open data and the OpenGLAM network
The value of open data and the OpenGLAM network
Bernhard Haslhofer835 visualizações
Things, not Strings por Bernhard Haslhofer
Things, not StringsThings, not Strings
Things, not Strings
Bernhard Haslhofer1.4K visualizações
Offene Daten im Kulturbereich - Die pragmatische Perspektive por Bernhard Haslhofer
Offene Daten im Kulturbereich - Die pragmatische PerspektiveOffene Daten im Kulturbereich - Die pragmatische Perspektive
Offene Daten im Kulturbereich - Die pragmatische Perspektive
Bernhard Haslhofer1.1K visualizações
Open Data - Principles and Techniques por Bernhard Haslhofer
Open Data - Principles and TechniquesOpen Data - Principles and Techniques
Open Data - Principles and Techniques
Bernhard Haslhofer1.3K visualizações
Semantic Tagging on Historical Maps por Bernhard Haslhofer
Semantic Tagging on Historical MapsSemantic Tagging on Historical Maps
Semantic Tagging on Historical Maps
Bernhard Haslhofer963 visualizações
The Story behind Maphub por Bernhard Haslhofer
The Story behind MaphubThe Story behind Maphub
The Story behind Maphub
Bernhard Haslhofer1.6K visualizações
OpenGLAM Intro @ OKFN.AT Meetup Graz por Bernhard Haslhofer
OpenGLAM Intro @ OKFN.AT Meetup GrazOpenGLAM Intro @ OKFN.AT Meetup Graz
OpenGLAM Intro @ OKFN.AT Meetup Graz
Bernhard Haslhofer1.2K visualizações
Semantic Tagging for old maps...and other things on the Web por Bernhard Haslhofer
Semantic Tagging for old maps...and other things on the WebSemantic Tagging for old maps...and other things on the Web
Semantic Tagging for old maps...and other things on the Web
Bernhard Haslhofer872 visualizações

Linked (Open) Data

  • 1. Linked (Open) Data INFO 4302 - April 18, 2011 Bernhard Haslhofer - Cornell University
  • 2. Who am I? • Postdoc at Cornell Information Science • Research areas • linked data • user-contributed data (annotations) • (meta-)data interoperability • Contact: • bernhard.haslhofer@cornell.edu
  • 3. Today we talk about... http://www.youtube.com/watch?v=5Cb3ik6zP2I
  • 4. Today we talk about... • Movies, actors and other real-world entities • How to make data about these entities available on the Web (Linked Data) • Enabling technologies, best-practices and useful tools that help us in doing so • Other Linked Data projects (BBC, LoC)
  • 6. The World Wide Web (WWW) • Internet != WWW != Google != Facebook • Fundamental technologies • URI - a simple and generic syntax for identifiers • HTML - a markup language without formal schema binding • HTTP - a simple protocol to access and manipulate resources and resource representations in a distributed environment • W3C Consortium (http://www.w3.org)
  • 7. URIs • Identification of resources via Uniform Resource Identifiers (URIs) •The generic syntax consists of a hierarchical sequence of components, scheme, Generic Syntax: authority, path, query, and fragment. URI = scheme “:” hier-path [ “?” query ] [ “#” fragment ] Scheme and hier-path are required, though the path may be empty. Example URIs with components: URI foo://example.com:8042/over/there?name=ferret#nose _/ ________________/_________/ _________/ __/ URL | | | | | URN scheme authority path query fragment
  • 8. URIs / Resources • Information Resource • web pages, images, product catalogs, etc • all their essential characteristics can be conveyed in a message • e.g., http://www.flickr.com/user2/photos/image.jpg • Non-Information Resource • other things such as dogs, people, this classroom, concepts • their essence is not information • e.g., http://www.example.com/ontology/meter
  • 9. HTTP • A stateless request-response protocol in the client-server computing model • HTTP methods: GET, POST, PUT, DELETE, ... • Agents may use a URI to access the referenced resource = dereferencing the URI
  • 10. HTTP Content Negotiation • A URI is not (necessarily) a filename • Conneg = making available multiple resource representations via the same URI Plain Text text/plain HTML (en) URI text/html HTML (jp) http://example.com/The_Shining text/html Resource
  • 11. (X)HTML(5) • A resource representation data format... • ... for presentation markup • rendered by user agents (typically browsers) • focus on readability • less formal, user-friendly syntax and semantics
  • 12. Web Services • Application-to-application communication based on the Web architecture • simple and open standards (HTTP, XML, JSON, ...) • send data from Application A to Application B through the Web • usually define some API Web Application A Application B
  • 17. Why Linked Data? • There is lots of information on the Web • ...valuable information that can be (re-)used • Problem • information is usually expressed in the form of HTML documents • the underlying raw data are locked in closed data silos (mostly DBMS)
  • 19. Why Linked Data? • The Web is successful because it provides • Uniform encoding (HTML) • Uniform addressing (URI) • Uniform transportation (HTTP) for the exchange of documents. • Why not apply the same mechanism to the underlying data?
  • 22. What is Linked Data? • A method to build a Web of Data • Architectural style, set of standards Web
  • 23. What is Linked Data? • A set of four principles • use URIs as names for things • use HTTP URIs so that people can look up those names • when someone looks up a URI, provide useful information, using the standards (RDF, SPARQL) • include links to other URIs, so that they can discover more things
  • 25. Uniform Resource Identifiers (URI) • Name and identify things (resources) • Dereferencable HTTP URIs http://dbpedia.org/resource/ The_Shining_(film) http://data.linkedmdb.org/ resource/film/2014 http://rdf.freebase.com/ns/m/ 04fjzv
  • 26. Resource Description Framework (RDF) • A model for representing data on the Web • Several statements (triples) form a graph http://dbpedia.org/ontology/ http://xmlns.com/foaf/0.1/ Film Person rdf:type rdf:type http://dbpedia.org/resource/ http://dbpedia.org/resource/ dbpprop:starring The_Shining_(film) Jack_Nicholson foaf:name rdfs:label rdfs:label dbpedia-owl:birthDate !" (#$) The Shining (film) 1937-04-22 Jack Nicholson
  • 27. RDF serialization (RDF/XML, N3, Turtle, etc.) • Data formats for RDF resource representations 7.2.2.3 RDF Serialization Formats: RDF/XML, N3, Turtle, N-Triple, etc • Used to transfer RDF data between apps Data formats for RDF resource representations Used to transfer RDF data from application-to-application N3/Turtle example: @prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix dbpedia-owl:<http://dbpedia.org/ontology/> . <http://dbpedia.org/resource/The_Shining_%28film%29> rdf:type dbpedia-owl:Work , dbpedia-owl:Film . @prefix dbpprop:<http://dbpedia.org/property/> . @prefix ns9:<http://dbpedia.org/datatype/> . <http://dbpedia.org/resource/The_Shining_%28film%29> dbpprop:runtime"146.0"^^ns9:minute ; © Prof. Dr. Wolfgang Klas und Dr. Bernhard Haslhofer, WS 2010/11 - Multimediale Systeme 2 7 Linked (Open) Data 7-15
  • 28. RDF Vocabulary Description Language (RDFS) • A language for describing the syntax and semantics of vocabularies in a machine- understandable way http://dbpedia.org/ontology/ Work rdfs:subClassOf http://dbpedia.org/ontology/ Film
  • 29. OWL - Web Ontology Language • A more expressive (formal) language for defining the syntax and semantics of vocabularies • Solves RDFS shortcomings but introduces quite some complexity http://www.w3.org/2002/07/ http://dbpedia.org/ontology/ owl#ObjectProperty Work rdf:type rdfs:domain http://dbpedia.org/ontology/ http://dbpedia.org/ontology/ rdfs:range starring Person rdfs:label starring
  • 30. Simple Knowledge Organization System (SKOS) • A language for describing controlled vocabularies (taxonomies, thesauri, classification schemes) http://dbpedia.org/resource/ Category:1980s_horror_films skos:subject rdf:type http://dbpedia.org/resource/ skos:broader http://www.w3.org/2004/02/ The_Shining_(film) skos/core#Concept rdf:type http://dbpedia.org/resource/ Category:1980s_films
  • 31. Links between Resources • OWL defines properties for linking resources http://dbpedia.org/resource/ http://dbpedia.org/resource/ dbpprop:starring The_Shining_(film) Jack_Nicholson owl:sameAs owl:sameAs owl:sameAs http://data.linkedmdb.org/ resource/film/2014 http://data.nytimes.com/ N5761411277431266513 http://rdf.freebase.com/ns/m/ 04fjzv
  • 32. SPARQL • A query language and protocol for accessing 7.2.2.7 SPARQL - RDF Query Language RDF data on the Web A query language and protocol for accessing RDF data on the Web SELECT DISTINCT ?x WHERE {?x skos:subject <http:dbpedia.org/resource/Cate- gory:1980s_horror_films>} LIMIT 10
  • 34. Publishing Vocabularies • Hash-based URIs • e.g., http://example.com/example1#ClassA • Suited to group the description of a moderate number of related terms into one RDF document • Agent can retrieve terms with a single request • Slash-based URIs • e.g., http://example.com/example1/ClassB • Suited to split terms in large vocabularies into one document per term • No need to download a massive document
  • 36. or: machine-readable content from vocabulary URI ... depending on what is requested.
  • 39. Publishing Data • Distinguish between non-information and information resource • Sample non-information resource • http://dbpedia.org/resource/The_Shining_(film) • Sample information resource • http://dbpedia.org/page/The_Shining_(film) - HTML • http://dbpedia.org/data/The_Shining_(film) - RDF
  • 40. Publishing Data GET http://dbpedia.org/resource/The_Shining_(film) Accept: application/rdf+xml 303 See Other Location: http://dbpedia.org/data/The_Shining_(film) GET http://dbpedia.org/data/The_Shining_(film) Accept: application/rdf+xml 200 OK ... <?xml version="1.0" encoding="utf-8"?> <rdf:RDF ...
  • 41. The Linking Open Data Community Project
  • 42. Linking? Open? Data Project? • Open Data: a philosophy, practice, or policy that data are freely available to everyone without restrictions from copyright, patents, a.s.o. • Linked Data: method / best practices for exposing, sharing, and connecting data using URIs and RDF • Linking Open Data: a W3C community project with the goal to extend the Web with a data commons by publishing various open data sets as RDF on the Web and by setting links between data items from different sources
  • 57. RDF APIs • Java • Jena Semantic Web Framework (http://openjena.org/) • Sesame RDF API (http://www.openrdf.org/) • PHP • ARC (http://arc.semsol.org/) • Ruby • RDF.rb: Linked Data for Ruby (http://rdf.rubyforge.org/) • Python • RDFLib (http://www.rdflib.net/) • C • Redland RDF Libraries (http://librdf.org/)
  • 58. RDF Stores • OpenLink Virtuoso (http://virtuoso.openlinksw.com/ dataspace/dav/wiki/Main/) • 4Store (http://4store.org/) • AllegroGraph (http://www.franz.com/agraph/ allegrograph/) • Oracle 11g (http://www.oracle.com/technetwork/ database/options/semantic-tech/ index.html) • ...and many more: http://www.w3.org/2001/sw/wiki/Tools
  • 59. RDF / Linked Data Wrappers • D2RQ - SPARQL / Linked Data for relational databases (http://www4.wiwiss.fu-berlin.de/ bizer/d2rq/) • OAI2LOD Server - expose any OAI-PMH source as Linked Data • TripFS - filesystem as Linked Data • TripCel - XLS spreadsheets as Linked Dat • ...
  • 60. Linked Data debugging Startup your console / terminal - native on Linux / Mac OS X - Windows: http://www.cygwin.com/ Dereference resources with cURL (http://curl.haxx.se/) curl -I -H "Accept: application/rdf+xml" http:// dbpedia.org/resource/The_Shining_%28film%29 curl -H "Accept: application/rdf+xml" http:// dbpedia.org/data/The_Shining_%28film%29
  • 61. Linked Data debugging Install the Raptor RDF Syntax Library (http:// librdf.org/raptor/) - Mac: brew install raptor Use the rapper utility to dereference URIs rapper http://dbpedia.org/resource/The_Shining_%28film %29 rapper -o rdfxml http://dbpedia.org/resource/ The_Shining_%28film%29
  • 63. Required Reading • T. Heath, C. Bizer. Linked Data: Evolving the Web into a Global Data Space, Chapters 1-5 http://linkeddatabook.com/editions/1.0/
  • 64. Recommended Readings • Linked Data Web Site: http://linkeddata.org • Linked Data / Semantic Web Introduction: http:// www.linkeddatatools.com/semantic-web-basics • Tim Berners-Lee. Linked Data Design Issues: http:// www.w3.org/DesignIssues/LinkedData.html • Best Practice Recipes for Publishing RDF Vocabularies: http://www.w3.org/TR/swbp-vocab-pub/ • How to Publish Linked Data on the Web: http:// www4.wiwiss.fu-berlin.de/bizer/pub/LinkedDataTutorial/