This document provides an agenda for a course on linked data. It introduces linked data and the Resource Description Framework (RDF), which is a data format for the web. The agenda covers RDF formats like Turtle and RDF/XML, as well as describing data with RDF Schema. It also discusses converting existing data to RDF, publishing linked open data, and using the SPARQL query language. The final project involves collecting, converting and publishing local data for applications using that data. Grades are based on participation and completing the final project.
1. An
Introduction
to
Linked Data
Part 1 of 5 David Hyland-Wood
Linked Data Context University of Mary Washington
Monday, May 16, 2011
2. Agenda
• Setting the scene
• What is Linked Data?
• RDF - A data format for the Web
• Data modeling without context
• URIs - Naming Things on the Web
Monday, May 16, 2011
3. Agenda
• Turtle - Human-readable RDF
• RDF/XML - RDF for XML pipelines
• Other RDF formats: RDFa, N3
• RDF Schema - Describing structure
Monday, May 16, 2011
4. Agenda
• Converting existing data into RDF
• Linked Open Data on the Web
• SPARQL - A query language for RDF
• Linked Data publishing options
• Building Linked Data applications
Monday, May 16, 2011
5. Reading
http://linkeddatabook.com/editions/1.0/
http://3roundstones.com/linking-enterprise-data/
Monday, May 16, 2011
6. Final Project
• Collect/convert/publish data about
Fredericksburg
• UMW, restaurants, Liberty Town,
parks/rec, music/bands, etc, etc.
• Whatever you want.
• Together, we will build one or more
applications using that data.
Monday, May 16, 2011
7. Grades
• Grades will be based on class
participation and completion of the
final project.
Monday, May 16, 2011
8. A Process
Identify Model Name Describe Convert Publish
Monday, May 16, 2011
9. A Process
Identify Model Name Describe Convert Publish
Maintain
Monday, May 16, 2011
12. shared innovation™
A HISTORY OF SILOS
$ cat foo.txt
| grep blah |
sort
1970s 1980s 1990s
A neat little package Client-Server The Early Web
Monday, May 16, 2011
13. shared innovation™
Universal Client Ubiquitous,
reusable applications
URL Curation
Universal Connection Logic and interlinking
Web
of Data
Universal Database
Monday, May 16, 2011
14. Access per 100 population worldwide
80
70 Mobile cellular subscriptions
60 Fixed telephone lines
Internet users
50
40
30
20
10
0
1990 1992 1994 1996 1998 2000 2002 2004 2006 2008
Monday, May 16, 2011
21. March of the Machines
“Information created by machines and used by
other machines will probably grow faster than
anything else...
Only 5% of the information that is created is
structured but this is changing as content
on the Web is increasing tagged.”
- Roger Bohn of University of California, San Diego
Study on American Households
Monday, May 16, 2011
29. The Web of Documents
• A global network of linked documents
• A place where anyone can say
anything about anything
• A vast collection of human-readable
knowledge (and opinion)
• Documents are linked, but links are not
qualified
Monday, May 16, 2011
30. The Web of Data
• A global network of linked statements
• A place where anyone can say
anything about anything
• A vast collection of machine-readable
knowledge (and opinion)
• Statements are linked, and links are
qualified
Monday, May 16, 2011
38. The Web of Data
• Modeled for re-use using simple
statements
• Named using HTTP URIs for things and
for documents
• Described using simple schema which
can be remixed and extended
• Data published on the web in RDF
Monday, May 16, 2011
39. The Web of Data
• Governments
http://data.gov/, http://data.gov.uk/ and others
• The BBC
http://www.bbc.co.uk/programmes/developers
• The New York Times
http://data.nytimes.com/
• The Library of Congress
http://id.loc.gov/
• Facebook
http://developers.facebook.com/docs/opengraph
http://opengraphprotocol.org/
Monday, May 16, 2011
40. RDF:
A data format for
the Web
Monday, May 16, 2011
41. RDF is ...
• Resource Description Framework
http://www.w3.org/RDF/
• A simple, powerful, data model
• Used to define relationships between
things
• Designed to work with the architecture of
the web
• The data model for the Web of Data
Monday, May 16, 2011
42. Allow anyone
to say anything
about anything
Monday, May 16, 2011
46. http://nssdc.gsfc.nasa.gov/
nmc/spacecraftDisplay.do?
id=1969-059A
NASA - NSSDC - Spacecraft - Details
title
Monday, May 16, 2011
47. http://nssdc.gsfc.nasa.gov/
nmc/spacecraftDisplay.do?
id=1969-059A
NASA - NSSDC - Spacecraft - Details
title
23 November 2009
published
Monday, May 16, 2011
48. http://nssdc.gsfc.nasa.gov/
nmc/spacecraftDisplay.do?
id=1969-059A
NASA - NSSDC - Spacecraft - Details
title
23 November 2009
published
size
15702
Monday, May 16, 2011
49. http://nssdc.gsfc.nasa.gov/
Apollo 11 Command and
nmc/spacecraftDisplay.do?
Service Module
id=1969-059A
NASA - NSSDC - Spacecraft - Details
title
23 November 2009
published
size
15702
Monday, May 16, 2011
50. http://nssdc.gsfc.nasa.gov/ about Apollo 11 Command and
nmc/spacecraftDisplay.do?
Service Module
id=1969-059A
NASA - NSSDC - Spacecraft - Details
title
23 November 2009
published
size
15702
Monday, May 16, 2011
51. http://nssdc.gsfc.nasa.gov/ about Apollo 11 Command and
nmc/spacecraftDisplay.do?
Service Module
id=1969-059A
NASA - NSSDC - Spacecraft - Details
title
23 November 2009
published
size
15702
a
Web Page
Monday, May 16, 2011
52. http://nssdc.gsfc.nasa.gov/ about Apollo 11 Command and
nmc/spacecraftDisplay.do?
Service Module
id=1969-059A
NASA - NSSDC - Spacecraft - Details
title
23 November 2009
published
size
15702
a a
Web Page Spacecraft
Monday, May 16, 2011
53. http://nssdc.gsfc.nasa.gov/ about Apollo 11 Command and
nmc/spacecraftDisplay.do?
Service Module
id=1969-059A
name
NASA - NSSDC - Spacecraft - Details Apollo 11 Command and Service Module
title
23 November 2009
published
size
15702
a a
Web Page Spacecraft
Monday, May 16, 2011
54. http://nssdc.gsfc.nasa.gov/ about Apollo 11 Command and
nmc/spacecraftDisplay.do?
Service Module
id=1969-059A
name
NASA - NSSDC - Spacecraft - Details Apollo 11 Command and Service Module
title
launched
23 November 2009 16 July 1969
published
size
15702
a a
Web Page Spacecraft
Monday, May 16, 2011
55. http://nssdc.gsfc.nasa.gov/ about Apollo 11 Command and
nmc/spacecraftDisplay.do?
Service Module
id=1969-059A
name
NASA - NSSDC - Spacecraft - Details Apollo 11 Command and Service Module
title
launched
23 November 2009 16 July 1969
published
size mass
15702 28801.0
a a
Web Page Spacecraft
Monday, May 16, 2011
56. Spacecraft Name Mass Launched Launch Site
1969-018A Apollo 9 26801.0 1969-03-03 1
1969-030A Mariner 7 411.8 1969-03-27 1
1969-043A Apollo 10 28834.0 1969-05-18 1
1969-059A Apollo 11 Command and Service Module (CSM) 28801.0 1969-07-16 1
1969-059C Apollo 11 Lunar Module / EASEP 15065.0 1969-07-16 1
1969-099A Apollo 12 Command and Service Module (CSM) 28790.0 1969-11-14 1
1970-029C Apollo 13 Lunar Module/ALSEP 15196.0 1970-04-11 1
1970-029A Apollo 13 Command and Service Module (CSM) 28945.0 1970-04-11 1
Monday, May 16, 2011
57. Spacecraft Name Mass Launched Launch Site
1969-018A Apollo 9 26801.0 1969-03-03 1
1969-030A Mariner 7 411.8 1969-03-27 1
1969-043A Apollo 10 28834.0 1969-05-18 1
1969-059A Apollo 11 Command and Service Module (CSM) 28801.0 1969-07-16 1
1969-059C Apollo 11 Lunar Module / EASEP 15065.0 1969-07-16 1
1969-099A Apollo 12 Command and Service Module (CSM) 28790.0 1969-11-14 1
1970-029C Apollo 13 Lunar Module/ALSEP 15196.0 1970-04-11 1
1970-029A Apollo 13 Command and Service Module (CSM) 28945.0 1970-04-11 1
Monday, May 16, 2011
58. Spacecraft Name Mass Launched Launch Site
1969-018A Apollo 9 26801.0 1969-03-03 1
1969-030A Mariner 7 411.8 1969-03-27 1
1969-043A Apollo 10 28834.0 1969-05-18 1
1969-059A Apollo 11 Command and Service Module (CSM) 28801.0 1969-07-16 1
1969-059C Apollo 11 Lunar Module / EASEP 15065.0 1969-07-16 1
1969-099A Apollo 12 Command and Service Module (CSM) 28790.0 1969-11-14 1
1970-029C Apollo 13 Lunar Module/ALSEP 15196.0 1970-04-11 1
1970-029A Apollo 13 Command and Service Module (CSM) 28945.0 1970-04-11 1
Monday, May 16, 2011
59. Spacecraft Name Mass Launched Launch Site
1969-018A Apollo 9 26801.0 1969-03-03 1
1969-030A Mariner 7 411.8 1969-03-27 1
1969-043A Apollo 10 28834.0 1969-05-18 1
1969-059A Apollo 11 Command and Service Module (CSM) 28801.0 1969-07-16 1
1969-059C Apollo 11 Lunar Module / EASEP 15065.0 1969-07-16 1
1969-099A Apollo 12 Command and Service Module (CSM) 28790.0 1969-11-14 1
1970-029C Apollo 13 Lunar Module/ALSEP 15196.0 1970-04-11 1
1970-029A Apollo 13 Command and Service Module (CSM) 28945.0 1970-04-11 1
Monday, May 16, 2011
60. http://nssdc.gsfc.nasa.gov/ about Apollo 11 Command and
nmc/spacecraftDisplay.do?
Service Module
id=1969-059A
name
NASA - NSSDC - Spacecraft - Details Apollo 11 Command and Service Module
title
launched
23 November 2009 16 July 1969
published
size mass
15702 28801.0
a a
Web Page Spacecraft
Monday, May 16, 2011
61. Spacecraft Name Mass Launched Launch Site
1969-018A Apollo 9 26801.0 1969-03-03 1
1969-030A Mariner 7 411.8 1969-03-27 1
1969-043A Apollo 10 28834.0 1969-05-18 1
1969-059A Apollo 11 Command and Service Module (CSM) 28801.0 1969-07-16 1
1969-059C Apollo 11 Lunar Module / EASEP 15065.0 1969-07-16 1
1969-099A Apollo 12 Command and Service Module (CSM) 28790.0 1969-11-14 1
1970-029C Apollo 13 Lunar Module/ALSEP 15196.0 1970-04-11 1
1970-029A Apollo 13 Command and Service Module (CSM) 28945.0 1970-04-11 1
Monday, May 16, 2011
62. Spacecraft Name Mass Launched Launch Site
1969-018A Apollo 9 26801.0 1969-03-03 1
1969-030A Mariner 7 411.8 1969-03-27 1
1969-043A Apollo 10 28834.0 1969-05-18 1
ID Name
1969-059A Apollo 11 Command and Service Module (CSM) 28801.0 1969-07-16 1
1 Cape Canaveral, United States
1969-059C Apollo 11 Lunar Module / EASEP 15065.0 1969-07-16 1
2 Tyuratam (Baikonur Cosmodrome), U.S.S.R
1969-099A Apollo 12 Command and Service Module (CSM) 28790.0 1969-11-14 1
3 Xichang Space Launch Center
1970-029C Apollo 13 Lunar Module/ALSEP 15196.0 1970-04-11 1
1970-029A Apollo 13 Command and Service Module (CSM) 28945.0 1970-04-11 1
Monday, May 16, 2011
63. Spacecraft Name Mass Launched Launch Site
1969-018A Apollo 9 26801.0 1969-03-03 1
1969-030A Mariner 7 411.8 1969-03-27 1
1969-043A Apollo 10 28834.0 1969-05-18 1
ID Name
1969-059A Apollo 11 Command and Service Module (CSM) 28801.0 1969-07-16 1
1 Cape Canaveral, United States
1969-059C Apollo 11 Lunar Module / EASEP 15065.0 1969-07-16 1
2 Tyuratam (Baikonur Cosmodrome), U.S.S.R
1969-099A Apollo 12 Command and Service Module (CSM) 28790.0 1969-11-14 1
3 Xichang Space Launch Center
1970-029C Apollo 13 Lunar Module/ALSEP 15196.0 1970-04-11 1
1970-029A Apollo 13 Command and Service Module (CSM) 28945.0 1970-04-11 1
Monday, May 16, 2011
64. http://nssdc.gsfc.nasa.gov/ about Apollo 11 Command and
nmc/spacecraftDisplay.do?
Service Module
id=1969-059A
name
NASA - NSSDC - Spacecraft - Details Apollo 11 Command and Service Module
title
launched
23 November 2009 16 July 1969
published
size mass
15702 28801.0
a a
Web Page Spacecraft
Monday, May 16, 2011
65. Apollo 11 Command and
Service Module
name
Apollo 11 Command and Service Module
launched
16 July 1969
mass
28801.0
a
Spacecraft
Monday, May 16, 2011
66. Apollo 11 Command and launchsite
Cape Canaveral
Service Module
name name
Apollo 11 Command and Service Module Cape Canaveral, United States
launched
16 July 1969
mass
28801.0
a
Spacecraft
Monday, May 16, 2011
67. Resource
Apollo 11 Command and launchsite
Cape Canaveral
Service Module
name name
Apollo 11 Command and Service Module Cape Canaveral, United States
launched
16 July 1969
mass
28801.0
a
Spacecraft
Monday, May 16, 2011
68. Resource
Apollo 11 Command and launchsite
Cape Canaveral
Service Module
name name
Apollo 11 Command and Service Module Cape Canaveral, United States
launched
16 July 1969
Literal
mass
28801.0
a
Spacecraft
Monday, May 16, 2011
69. Resource
Apollo 11 Command and launchsite
Cape Canaveral
Service Module
name name
Apollo 11 Command and Service Module Cape Canaveral, United States
launched
16 July 1969
Literal
Predicate
mass
28801.0
a
Spacecraft
Monday, May 16, 2011
70. Resources...
• Represent things on the web, like web
pages — Information Resources
• Represent things not on the web, like
people and places — Non-Information
Resources
• Can represent anything at all
• Named using URIs (usually)
• May not have a name — Blank Nodes
Monday, May 16, 2011
71. Literal Values...
• Are values to work with and show
users
• Can be just a string of text — Plain
Literals
• Can have a language assigned to the
them using ISO codes
• Can have a specific datatype assigned
to them — Typed Literals
Monday, May 16, 2011
72. Predicates are...
• Relationships between Resources
• Named using URIs
• Described in Schema
(or vocabularies, or ontologies)
Monday, May 16, 2011
73. Apollo 11 Command and launchsite name Cape Canaveral,
Cape Canaveral
Service Module United States
Statement or Triple
Monday, May 16, 2011
74. Apollo 11 Command and launchsite name Cape Canaveral,
Cape Canaveral
Service Module United States
Statement or Triple
Monday, May 16, 2011
75. Subject Predicate Object
Apollo 11 Command and launchsite name Cape Canaveral,
Cape Canaveral
Service Module United States
Statement or Triple
Monday, May 16, 2011
76. Statement or Triple
Subject Predicate Object
Apollo 11 Command and launchsite name Cape Canaveral,
Cape Canaveral
Service Module United States
Statement or Triple
Monday, May 16, 2011
77. Statement or Triple
Subject Predicate Object
Apollo 11 Command and launchsite name Cape Canaveral,
Cape Canaveral
Service Module United States
Subject Predicate Object
Statement or Triple
Monday, May 16, 2011
78. Resource
Apollo 11 Command and launchsite
Cape Canaveral
Service Module
name name
Apollo 11 Command and Service Module Cape Canaveral, United States
launched
16 July 1969
Literal
Predicate
mass
28801.0
a
Spacecraft
Monday, May 16, 2011
79. Apollo 11 Command and launchsite
Cape Canaveral
Service Module
name name
Apollo 11 Command and Service Module Cape Canaveral, United States
launched
16 July 1969
mass
28801.0
a
Spacecraft
Monday, May 16, 2011
80. http://...
Apollo 11 Command and launchsite http://...
Cape Canaveral
Service Module
/1969-059A /cape+cana...
name name
Apollo 11 Command and Service Module Cape Canaveral, United States
launched
16 July 1969
mass
28801.0
a http://...
Spacecraft
/Spacecraft
Monday, May 16, 2011
81. http://...
Apollo 11 Command and launchsite http://...
Cape Canaveral
Service Module
/1969-059A /cape+cana...
name name
Apollo 11 Command and Service Module Cape Canaveral, United States
launched
16 July 1969
mass
28801.0
a http://...
Spacecraft latitude
/Spacecraft N 28° 27' 31''
longitude
W 80° 31' 59''
Monday, May 16, 2011
82. Simple Rules for Merging
• URIs name the resources we are
describing
• Two people using the same URI are
describing the same thing
• The same URI in two datasets
becomes one URI with all of the
properties from both datasets
• RDF data can use URIs from many
different websites
Monday, May 16, 2011
83. Simple Rules for Merging
• Graphs from several different sources
can be merged
• Resources with the same URI are
considered identical
• No limitations on which graphs can be
merged
Monday, May 16, 2011
84. Any RDF can be
merged with any
other RDF
Monday, May 16, 2011
85. RDF...
• is a Graph data model
XML is a tree data model
RDBMS is a table data model
• can be easily distributed
• is easily mergeable
• can say anything about anything
• is not new
the spec is from 1999
the idea, EAV, stems back to the late 1960s
Monday, May 16, 2011
86. Thanks to
• Rob Styles, Talis Group Ltd for his CC-BY
licensed “Two Day Introduction to the Web of
Data” slides and spacecraft example data.
Monday, May 16, 2011