INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in...

227
INF3580 – Semantic Technologies – Spring 2010 Lecture 13: Publishing RDF Data on the Web Martin Giese 11th May 2010 Department of Informatics University of Oslo

Transcript of INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in...

Page 1: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

INF3580 – Semantic Technologies – Spring 2010Lecture 13: Publishing RDF Data on the Web

Martin Giese

11th May 2010

Department ofInformatics

University ofOslo

Page 2: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Today’s Plan

1 Introduction

2 Linked Open Data

3 Linking RDF to HTML

4 RDFa

INF3580 :: Spring 2010 Lecture 13 :: 11th May 2 / 42

Page 3: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

Outline

1 Introduction

2 Linked Open Data

3 Linking RDF to HTML

4 RDFa

INF3580 :: Spring 2010 Lecture 13 :: 11th May 3 / 42

Page 4: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:

In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 5: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 6: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profiles

data files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 7: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.

In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 8: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 9: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 10: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 11: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFa

Embedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 12: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata

. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 13: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 14: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 15: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpoint

Semantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 16: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)

Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 17: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data

“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 18: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Introduction

RDF on the Web

RDF data exists in many forms:In RDF files, downloadable with HTTP, FTP, etc.

FOAF profilesdata files from dbpedia.org, geonames, etc.In RSS 1.0 feeds

As data model behind SPARQL query endpoints

for instance dbpedia.org, dblp, and others

Embedded in HTML, as RDFaEmbedded in PDF as XMP metadata. . .

How do I find data about something?

Announcement of a cool new SPARQL endpointSemantic Web indices and search engines (Google to find some!)Links from HTML pages to RDF data“Linked Open Data” (LOD)

INF3580 :: Spring 2010 Lecture 13 :: 11th May 4 / 42

Page 19: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Outline

1 Introduction

2 Linked Open Data

3 Linking RDF to HTML

4 RDFa

INF3580 :: Spring 2010 Lecture 13 :: 11th May 5 / 42

Page 20: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 21: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web page

mailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 22: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailbox

http://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 23: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a town

http://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 24: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a person

tel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 25: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone number

urn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 26: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 27: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 28: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents

“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 29: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 30: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 31: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 32: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 33: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 34: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

URIs

URIs in RDF can have many different forms:

http://www.google.com/ – a web pagemailto:[email protected] – a mailboxhttp://dbpedia.org/resource/Oslo – a townhttp://heim.ifi.uio.no/martingi/foaf.rg#me – a persontel:+47-22852737 – a telephone numberurn:isbn:0-395-36341-1 – a book

Two basic types

“information resources”: downloadable documents“non-information resources”: other entities

Some provide a download protocol, but the resources don’t exist

Others are not dereferencable

From the RDF standpoint, all are OK

In practice, software wants to locate information

Protocols like http, ftp, etc. are an advantage

INF3580 :: Spring 2010 Lecture 13 :: 11th May 6 / 42

Page 35: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

The Problem

Need to differentiate between:

A web page or RDF file about BerlinThe city of Berlin

e.g. the city was “created” around 1200. . .

A URI for Berlin should not be an existing HTTP resource (why?)

Need another way to retrieve information about a resource

6=

INF3580 :: Spring 2010 Lecture 13 :: 11th May 7 / 42

Page 36: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Two Solutions

The problem:

Need to locate information about a resourceThe URI cannot denote a downloadable resource

Two W3C-recommended solutions:

The hash-namespace solutionThe slash-namespace solution (aka HTTP 303 redirects)

To fully understand them, we need to have a look at HTTP!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 8 / 42

Page 37: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Two Solutions

The problem:

Need to locate information about a resource

The URI cannot denote a downloadable resource

Two W3C-recommended solutions:

The hash-namespace solutionThe slash-namespace solution (aka HTTP 303 redirects)

To fully understand them, we need to have a look at HTTP!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 8 / 42

Page 38: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Two Solutions

The problem:

Need to locate information about a resourceThe URI cannot denote a downloadable resource

Two W3C-recommended solutions:

The hash-namespace solutionThe slash-namespace solution (aka HTTP 303 redirects)

To fully understand them, we need to have a look at HTTP!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 8 / 42

Page 39: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Two Solutions

The problem:

Need to locate information about a resourceThe URI cannot denote a downloadable resource

Two W3C-recommended solutions:

The hash-namespace solutionThe slash-namespace solution (aka HTTP 303 redirects)

To fully understand them, we need to have a look at HTTP!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 8 / 42

Page 40: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Two Solutions

The problem:

Need to locate information about a resourceThe URI cannot denote a downloadable resource

Two W3C-recommended solutions:

The hash-namespace solution

The slash-namespace solution (aka HTTP 303 redirects)

To fully understand them, we need to have a look at HTTP!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 8 / 42

Page 41: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Two Solutions

The problem:

Need to locate information about a resourceThe URI cannot denote a downloadable resource

Two W3C-recommended solutions:

The hash-namespace solutionThe slash-namespace solution (aka HTTP 303 redirects)

To fully understand them, we need to have a look at HTTP!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 8 / 42

Page 42: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Two Solutions

The problem:

Need to locate information about a resourceThe URI cannot denote a downloadable resource

Two W3C-recommended solutions:

The hash-namespace solutionThe slash-namespace solution (aka HTTP 303 redirects)

To fully understand them, we need to have a look at HTTP!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 8 / 42

Page 43: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP

HTTP Server listens to “requests” (usually on TCP/IP port 80)

An HTTP client sends requests to the server and obtains responses

A typical request: http://heim.ifi.uio.no/martingi/

Connect to port 80 on heim.ifi.uio.no

Send:

GET /martingi/ HTTP/1.1

User-Agent: Mozilla/5.0 (X11; U; Linux i686; ...

Accept: text/html,application/xhtml+xml,...

Accept-Language: no, en

Host: heim.ifi.uio.no

...

followed by a blank line

Other “methods”: HEAD, POST, PUT,. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 9 / 42

Page 44: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP

HTTP Server listens to “requests” (usually on TCP/IP port 80)

An HTTP client sends requests to the server and obtains responses

A typical request: http://heim.ifi.uio.no/martingi/

Connect to port 80 on heim.ifi.uio.no

Send:

GET /martingi/ HTTP/1.1

User-Agent: Mozilla/5.0 (X11; U; Linux i686; ...

Accept: text/html,application/xhtml+xml,...

Accept-Language: no, en

Host: heim.ifi.uio.no

...

followed by a blank line

Other “methods”: HEAD, POST, PUT,. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 9 / 42

Page 45: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP

HTTP Server listens to “requests” (usually on TCP/IP port 80)

An HTTP client sends requests to the server and obtains responses

A typical request: http://heim.ifi.uio.no/martingi/

Connect to port 80 on heim.ifi.uio.no

Send:

GET /martingi/ HTTP/1.1

User-Agent: Mozilla/5.0 (X11; U; Linux i686; ...

Accept: text/html,application/xhtml+xml,...

Accept-Language: no, en

Host: heim.ifi.uio.no

...

followed by a blank line

Other “methods”: HEAD, POST, PUT,. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 9 / 42

Page 46: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP

HTTP Server listens to “requests” (usually on TCP/IP port 80)

An HTTP client sends requests to the server and obtains responses

A typical request: http://heim.ifi.uio.no/martingi/

Connect to port 80 on heim.ifi.uio.no

Send:

GET /martingi/ HTTP/1.1

User-Agent: Mozilla/5.0 (X11; U; Linux i686; ...

Accept: text/html,application/xhtml+xml,...

Accept-Language: no, en

Host: heim.ifi.uio.no

...

followed by a blank line

Other “methods”: HEAD, POST, PUT,. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 9 / 42

Page 47: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP

HTTP Server listens to “requests” (usually on TCP/IP port 80)

An HTTP client sends requests to the server and obtains responses

A typical request: http://heim.ifi.uio.no/martingi/

Connect to port 80 on heim.ifi.uio.no

Send:

GET /martingi/ HTTP/1.1

User-Agent: Mozilla/5.0 (X11; U; Linux i686; ...

Accept: text/html,application/xhtml+xml,...

Accept-Language: no, en

Host: heim.ifi.uio.no

...

followed by a blank line

Other “methods”: HEAD, POST, PUT,. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 9 / 42

Page 48: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP

HTTP Server listens to “requests” (usually on TCP/IP port 80)

An HTTP client sends requests to the server and obtains responses

A typical request: http://heim.ifi.uio.no/martingi/

Connect to port 80 on heim.ifi.uio.no

Send:

GET /martingi/ HTTP/1.1

User-Agent: Mozilla/5.0 (X11; U; Linux i686; ...

Accept: text/html,application/xhtml+xml,...

Accept-Language: no, en

Host: heim.ifi.uio.no

...

followed by a blank line

Other “methods”: HEAD, POST, PUT,. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 9 / 42

Page 49: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP (cont.)

A typical response to the GET request:

HTTP/1.1 200 OK

Date: Wed, 05 May 2010 14:15:24 GMT

Server: Apache/2.2.14 (Unix) ...

Content-Length: 14348

Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">

<html>

...

Result may vary depending on the Accept: choices in request

200 OK is not the only possible response (“status code”)

404 Not Found

401 Unauthorized

303 See Other

INF3580 :: Spring 2010 Lecture 13 :: 11th May 10 / 42

Page 50: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP (cont.)

A typical response to the GET request:

HTTP/1.1 200 OK

Date: Wed, 05 May 2010 14:15:24 GMT

Server: Apache/2.2.14 (Unix) ...

Content-Length: 14348

Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">

<html>

...

Result may vary depending on the Accept: choices in request

200 OK is not the only possible response (“status code”)

404 Not Found

401 Unauthorized

303 See Other

INF3580 :: Spring 2010 Lecture 13 :: 11th May 10 / 42

Page 51: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP (cont.)

A typical response to the GET request:

HTTP/1.1 200 OK

Date: Wed, 05 May 2010 14:15:24 GMT

Server: Apache/2.2.14 (Unix) ...

Content-Length: 14348

Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">

<html>

...

Result may vary depending on the Accept: choices in request

200 OK is not the only possible response (“status code”)

404 Not Found

401 Unauthorized

303 See Other

INF3580 :: Spring 2010 Lecture 13 :: 11th May 10 / 42

Page 52: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP (cont.)

A typical response to the GET request:

HTTP/1.1 200 OK

Date: Wed, 05 May 2010 14:15:24 GMT

Server: Apache/2.2.14 (Unix) ...

Content-Length: 14348

Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">

<html>

...

Result may vary depending on the Accept: choices in request

200 OK is not the only possible response (“status code”)

404 Not Found

401 Unauthorized

303 See Other

INF3580 :: Spring 2010 Lecture 13 :: 11th May 10 / 42

Page 53: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP (cont.)

A typical response to the GET request:

HTTP/1.1 200 OK

Date: Wed, 05 May 2010 14:15:24 GMT

Server: Apache/2.2.14 (Unix) ...

Content-Length: 14348

Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">

<html>

...

Result may vary depending on the Accept: choices in request

200 OK is not the only possible response (“status code”)

404 Not Found

401 Unauthorized

303 See Other

INF3580 :: Spring 2010 Lecture 13 :: 11th May 10 / 42

Page 54: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP (cont.)

A typical response to the GET request:

HTTP/1.1 200 OK

Date: Wed, 05 May 2010 14:15:24 GMT

Server: Apache/2.2.14 (Unix) ...

Content-Length: 14348

Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">

<html>

...

Result may vary depending on the Accept: choices in request

200 OK is not the only possible response (“status code”)

404 Not Found

401 Unauthorized

303 See Other

INF3580 :: Spring 2010 Lecture 13 :: 11th May 10 / 42

Page 55: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Fragment identifiers

A fragment identifier is the part after # in a URI

http://en.wikipedia.org/wiki/Fragment_identifier#Examples

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

HTTP specifies that fragment identifiers are processed client-side:

GET request is sent without the fragment identifiers:

GET /wiki/Fragment_identifier HTTP/1.1

fragment identifier is processed by client

For HTML or XHTML:

Elements (sections titles, paragraphs, etc.) can have id attributes

<h2 id="Examples">Examples</h2>

Browser will jump to element identified by fragment identifier

Various uses with JavaScript (AJAX), PDF viewers, etc.

INF3580 :: Spring 2010 Lecture 13 :: 11th May 11 / 42

Page 56: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Fragment identifiers

A fragment identifier is the part after # in a URI

http://en.wikipedia.org/wiki/Fragment_identifier#Examples

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

HTTP specifies that fragment identifiers are processed client-side:

GET request is sent without the fragment identifiers:

GET /wiki/Fragment_identifier HTTP/1.1

fragment identifier is processed by client

For HTML or XHTML:

Elements (sections titles, paragraphs, etc.) can have id attributes

<h2 id="Examples">Examples</h2>

Browser will jump to element identified by fragment identifier

Various uses with JavaScript (AJAX), PDF viewers, etc.

INF3580 :: Spring 2010 Lecture 13 :: 11th May 11 / 42

Page 57: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Fragment identifiers

A fragment identifier is the part after # in a URI

http://en.wikipedia.org/wiki/Fragment_identifier#Examples

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

HTTP specifies that fragment identifiers are processed client-side:

GET request is sent without the fragment identifiers:

GET /wiki/Fragment_identifier HTTP/1.1

fragment identifier is processed by client

For HTML or XHTML:

Elements (sections titles, paragraphs, etc.) can have id attributes

<h2 id="Examples">Examples</h2>

Browser will jump to element identified by fragment identifier

Various uses with JavaScript (AJAX), PDF viewers, etc.

INF3580 :: Spring 2010 Lecture 13 :: 11th May 11 / 42

Page 58: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Fragment identifiers

A fragment identifier is the part after # in a URI

http://en.wikipedia.org/wiki/Fragment_identifier#Examples

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

HTTP specifies that fragment identifiers are processed client-side:

GET request is sent without the fragment identifiers:

GET /wiki/Fragment_identifier HTTP/1.1

fragment identifier is processed by client

For HTML or XHTML:

Elements (sections titles, paragraphs, etc.) can have id attributes

<h2 id="Examples">Examples</h2>

Browser will jump to element identified by fragment identifier

Various uses with JavaScript (AJAX), PDF viewers, etc.

INF3580 :: Spring 2010 Lecture 13 :: 11th May 11 / 42

Page 59: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Fragment identifiers

A fragment identifier is the part after # in a URI

http://en.wikipedia.org/wiki/Fragment_identifier#Examples

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

HTTP specifies that fragment identifiers are processed client-side:

GET request is sent without the fragment identifiers:

GET /wiki/Fragment_identifier HTTP/1.1

fragment identifier is processed by client

For HTML or XHTML:

Elements (sections titles, paragraphs, etc.) can have id attributes

<h2 id="Examples">Examples</h2>

Browser will jump to element identified by fragment identifier

Various uses with JavaScript (AJAX), PDF viewers, etc.

INF3580 :: Spring 2010 Lecture 13 :: 11th May 11 / 42

Page 60: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Fragment identifiers

A fragment identifier is the part after # in a URI

http://en.wikipedia.org/wiki/Fragment_identifier#Examples

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

HTTP specifies that fragment identifiers are processed client-side:

GET request is sent without the fragment identifiers:

GET /wiki/Fragment_identifier HTTP/1.1

fragment identifier is processed by client

For HTML or XHTML:

Elements (sections titles, paragraphs, etc.) can have id attributes

<h2 id="Examples">Examples</h2>

Browser will jump to element identified by fragment identifier

Various uses with JavaScript (AJAX), PDF viewers, etc.

INF3580 :: Spring 2010 Lecture 13 :: 11th May 11 / 42

Page 61: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Fragment identifiers

A fragment identifier is the part after # in a URI

http://en.wikipedia.org/wiki/Fragment_identifier#Examples

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

HTTP specifies that fragment identifiers are processed client-side:

GET request is sent without the fragment identifiers:

GET /wiki/Fragment_identifier HTTP/1.1

fragment identifier is processed by client

For HTML or XHTML:

Elements (sections titles, paragraphs, etc.) can have id attributes

<h2 id="Examples">Examples</h2>

Browser will jump to element identified by fragment identifier

Various uses with JavaScript (AJAX), PDF viewers, etc.

INF3580 :: Spring 2010 Lecture 13 :: 11th May 11 / 42

Page 62: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Fragment identifiers

A fragment identifier is the part after # in a URI

http://en.wikipedia.org/wiki/Fragment_identifier#Examples

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

HTTP specifies that fragment identifiers are processed client-side:

GET request is sent without the fragment identifiers:

GET /wiki/Fragment_identifier HTTP/1.1

fragment identifier is processed by client

For HTML or XHTML:

Elements (sections titles, paragraphs, etc.) can have id attributes

<h2 id="Examples">Examples</h2>

Browser will jump to element identified by fragment identifier

Various uses with JavaScript (AJAX), PDF viewers, etc.

INF3580 :: Spring 2010 Lecture 13 :: 11th May 11 / 42

Page 63: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces

For RDF served over HTTP: fragment identifiers identify resources:

http://bla.bla/bla#resource is a resourcehttp://bla.bla/bla is a document describing the resource

E.g. FOAF files:

http://heim.ifi.uio.no/martingi/foaf.rdf#me - a personhttp://heim.ifi.uio.no/martingi/foaf.rdf - an RDF/XML file

by convention the RDF file contains some triples involving resourcesidentified by its fragments.

Can use the part of the URI until # as namespace

@prefix myfoaf: <http://.../martingi/foaf.rdf#>

myfoaf:me foaf:givenname "Martin" .

This is known as a “hash namespace”

INF3580 :: Spring 2010 Lecture 13 :: 11th May 12 / 42

Page 64: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces

For RDF served over HTTP: fragment identifiers identify resources:

http://bla.bla/bla#resource is a resource

http://bla.bla/bla is a document describing the resource

E.g. FOAF files:

http://heim.ifi.uio.no/martingi/foaf.rdf#me - a personhttp://heim.ifi.uio.no/martingi/foaf.rdf - an RDF/XML file

by convention the RDF file contains some triples involving resourcesidentified by its fragments.

Can use the part of the URI until # as namespace

@prefix myfoaf: <http://.../martingi/foaf.rdf#>

myfoaf:me foaf:givenname "Martin" .

This is known as a “hash namespace”

INF3580 :: Spring 2010 Lecture 13 :: 11th May 12 / 42

Page 65: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces

For RDF served over HTTP: fragment identifiers identify resources:

http://bla.bla/bla#resource is a resourcehttp://bla.bla/bla is a document describing the resource

E.g. FOAF files:

http://heim.ifi.uio.no/martingi/foaf.rdf#me - a personhttp://heim.ifi.uio.no/martingi/foaf.rdf - an RDF/XML file

by convention the RDF file contains some triples involving resourcesidentified by its fragments.

Can use the part of the URI until # as namespace

@prefix myfoaf: <http://.../martingi/foaf.rdf#>

myfoaf:me foaf:givenname "Martin" .

This is known as a “hash namespace”

INF3580 :: Spring 2010 Lecture 13 :: 11th May 12 / 42

Page 66: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces

For RDF served over HTTP: fragment identifiers identify resources:

http://bla.bla/bla#resource is a resourcehttp://bla.bla/bla is a document describing the resource

E.g. FOAF files:

http://heim.ifi.uio.no/martingi/foaf.rdf#me - a personhttp://heim.ifi.uio.no/martingi/foaf.rdf - an RDF/XML file

by convention the RDF file contains some triples involving resourcesidentified by its fragments.

Can use the part of the URI until # as namespace

@prefix myfoaf: <http://.../martingi/foaf.rdf#>

myfoaf:me foaf:givenname "Martin" .

This is known as a “hash namespace”

INF3580 :: Spring 2010 Lecture 13 :: 11th May 12 / 42

Page 67: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces

For RDF served over HTTP: fragment identifiers identify resources:

http://bla.bla/bla#resource is a resourcehttp://bla.bla/bla is a document describing the resource

E.g. FOAF files:

http://heim.ifi.uio.no/martingi/foaf.rdf#me - a person

http://heim.ifi.uio.no/martingi/foaf.rdf - an RDF/XML file

by convention the RDF file contains some triples involving resourcesidentified by its fragments.

Can use the part of the URI until # as namespace

@prefix myfoaf: <http://.../martingi/foaf.rdf#>

myfoaf:me foaf:givenname "Martin" .

This is known as a “hash namespace”

INF3580 :: Spring 2010 Lecture 13 :: 11th May 12 / 42

Page 68: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces

For RDF served over HTTP: fragment identifiers identify resources:

http://bla.bla/bla#resource is a resourcehttp://bla.bla/bla is a document describing the resource

E.g. FOAF files:

http://heim.ifi.uio.no/martingi/foaf.rdf#me - a personhttp://heim.ifi.uio.no/martingi/foaf.rdf - an RDF/XML file

by convention the RDF file contains some triples involving resourcesidentified by its fragments.

Can use the part of the URI until # as namespace

@prefix myfoaf: <http://.../martingi/foaf.rdf#>

myfoaf:me foaf:givenname "Martin" .

This is known as a “hash namespace”

INF3580 :: Spring 2010 Lecture 13 :: 11th May 12 / 42

Page 69: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces

For RDF served over HTTP: fragment identifiers identify resources:

http://bla.bla/bla#resource is a resourcehttp://bla.bla/bla is a document describing the resource

E.g. FOAF files:

http://heim.ifi.uio.no/martingi/foaf.rdf#me - a personhttp://heim.ifi.uio.no/martingi/foaf.rdf - an RDF/XML file

by convention the RDF file contains some triples involving resourcesidentified by its fragments.

Can use the part of the URI until # as namespace

@prefix myfoaf: <http://.../martingi/foaf.rdf#>

myfoaf:me foaf:givenname "Martin" .

This is known as a “hash namespace”

INF3580 :: Spring 2010 Lecture 13 :: 11th May 12 / 42

Page 70: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces

For RDF served over HTTP: fragment identifiers identify resources:

http://bla.bla/bla#resource is a resourcehttp://bla.bla/bla is a document describing the resource

E.g. FOAF files:

http://heim.ifi.uio.no/martingi/foaf.rdf#me - a personhttp://heim.ifi.uio.no/martingi/foaf.rdf - an RDF/XML file

by convention the RDF file contains some triples involving resourcesidentified by its fragments.

Can use the part of the URI until # as namespace

@prefix myfoaf: <http://.../martingi/foaf.rdf#>

myfoaf:me foaf:givenname "Martin" .

This is known as a “hash namespace”

INF3580 :: Spring 2010 Lecture 13 :: 11th May 12 / 42

Page 71: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces

For RDF served over HTTP: fragment identifiers identify resources:

http://bla.bla/bla#resource is a resourcehttp://bla.bla/bla is a document describing the resource

E.g. FOAF files:

http://heim.ifi.uio.no/martingi/foaf.rdf#me - a personhttp://heim.ifi.uio.no/martingi/foaf.rdf - an RDF/XML file

by convention the RDF file contains some triples involving resourcesidentified by its fragments.

Can use the part of the URI until # as namespace

@prefix myfoaf: <http://.../martingi/foaf.rdf#>

myfoaf:me foaf:givenname "Martin" .

This is known as a “hash namespace”

INF3580 :: Spring 2010 Lecture 13 :: 11th May 12 / 42

Page 72: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces – pros and cons

Hash namespaces solve our problem:

Resources are separate from documents about themIt is possible to find a document given a resource URI

Moreover:

Fetching the right document is done automatically by HTTPIt is enough to publish the RDF file on an HTTP serverVery low tech and fool proof, in other words!

However:

All data published this way about all entities in a hash namespaceneeds to be stored in the same RDF file

http://brreg.no/bedrifter.rdf#974760673

URI says much about data organization. RDF file name baked in!No way to change the organization without changing URIs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 13 / 42

Page 73: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces – pros and cons

Hash namespaces solve our problem:

Resources are separate from documents about them

It is possible to find a document given a resource URI

Moreover:

Fetching the right document is done automatically by HTTPIt is enough to publish the RDF file on an HTTP serverVery low tech and fool proof, in other words!

However:

All data published this way about all entities in a hash namespaceneeds to be stored in the same RDF file

http://brreg.no/bedrifter.rdf#974760673

URI says much about data organization. RDF file name baked in!No way to change the organization without changing URIs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 13 / 42

Page 74: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces – pros and cons

Hash namespaces solve our problem:

Resources are separate from documents about themIt is possible to find a document given a resource URI

Moreover:

Fetching the right document is done automatically by HTTPIt is enough to publish the RDF file on an HTTP serverVery low tech and fool proof, in other words!

However:

All data published this way about all entities in a hash namespaceneeds to be stored in the same RDF file

http://brreg.no/bedrifter.rdf#974760673

URI says much about data organization. RDF file name baked in!No way to change the organization without changing URIs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 13 / 42

Page 75: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces – pros and cons

Hash namespaces solve our problem:

Resources are separate from documents about themIt is possible to find a document given a resource URI

Moreover:

Fetching the right document is done automatically by HTTPIt is enough to publish the RDF file on an HTTP serverVery low tech and fool proof, in other words!

However:

All data published this way about all entities in a hash namespaceneeds to be stored in the same RDF file

http://brreg.no/bedrifter.rdf#974760673

URI says much about data organization. RDF file name baked in!No way to change the organization without changing URIs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 13 / 42

Page 76: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces – pros and cons

Hash namespaces solve our problem:

Resources are separate from documents about themIt is possible to find a document given a resource URI

Moreover:

Fetching the right document is done automatically by HTTP

It is enough to publish the RDF file on an HTTP serverVery low tech and fool proof, in other words!

However:

All data published this way about all entities in a hash namespaceneeds to be stored in the same RDF file

http://brreg.no/bedrifter.rdf#974760673

URI says much about data organization. RDF file name baked in!No way to change the organization without changing URIs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 13 / 42

Page 77: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces – pros and cons

Hash namespaces solve our problem:

Resources are separate from documents about themIt is possible to find a document given a resource URI

Moreover:

Fetching the right document is done automatically by HTTPIt is enough to publish the RDF file on an HTTP server

Very low tech and fool proof, in other words!

However:

All data published this way about all entities in a hash namespaceneeds to be stored in the same RDF file

http://brreg.no/bedrifter.rdf#974760673

URI says much about data organization. RDF file name baked in!No way to change the organization without changing URIs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 13 / 42

Page 78: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces – pros and cons

Hash namespaces solve our problem:

Resources are separate from documents about themIt is possible to find a document given a resource URI

Moreover:

Fetching the right document is done automatically by HTTPIt is enough to publish the RDF file on an HTTP serverVery low tech and fool proof, in other words!

However:

All data published this way about all entities in a hash namespaceneeds to be stored in the same RDF file

http://brreg.no/bedrifter.rdf#974760673

URI says much about data organization. RDF file name baked in!No way to change the organization without changing URIs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 13 / 42

Page 79: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces – pros and cons

Hash namespaces solve our problem:

Resources are separate from documents about themIt is possible to find a document given a resource URI

Moreover:

Fetching the right document is done automatically by HTTPIt is enough to publish the RDF file on an HTTP serverVery low tech and fool proof, in other words!

However:

All data published this way about all entities in a hash namespaceneeds to be stored in the same RDF file

http://brreg.no/bedrifter.rdf#974760673

URI says much about data organization. RDF file name baked in!No way to change the organization without changing URIs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 13 / 42

Page 80: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces – pros and cons

Hash namespaces solve our problem:

Resources are separate from documents about themIt is possible to find a document given a resource URI

Moreover:

Fetching the right document is done automatically by HTTPIt is enough to publish the RDF file on an HTTP serverVery low tech and fool proof, in other words!

However:

All data published this way about all entities in a hash namespaceneeds to be stored in the same RDF file

http://brreg.no/bedrifter.rdf#974760673

URI says much about data organization. RDF file name baked in!No way to change the organization without changing URIs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 13 / 42

Page 81: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces – pros and cons

Hash namespaces solve our problem:

Resources are separate from documents about themIt is possible to find a document given a resource URI

Moreover:

Fetching the right document is done automatically by HTTPIt is enough to publish the RDF file on an HTTP serverVery low tech and fool proof, in other words!

However:

All data published this way about all entities in a hash namespaceneeds to be stored in the same RDF file

http://brreg.no/bedrifter.rdf#974760673

URI says much about data organization. RDF file name baked in!

No way to change the organization without changing URIs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 13 / 42

Page 82: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Hash namespaces – pros and cons

Hash namespaces solve our problem:

Resources are separate from documents about themIt is possible to find a document given a resource URI

Moreover:

Fetching the right document is done automatically by HTTPIt is enough to publish the RDF file on an HTTP serverVery low tech and fool proof, in other words!

However:

All data published this way about all entities in a hash namespaceneeds to be stored in the same RDF file

http://brreg.no/bedrifter.rdf#974760673

URI says much about data organization. RDF file name baked in!No way to change the organization without changing URIs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 13 / 42

Page 83: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Redirection

Reminder: HTTP responses start with a “status code”

Usually “200 OK”, if the document was found and can be served“404 Not Found”, if the document does not exist

One of the possible status codes is “303 See Other”

Always comes with a Location: field in the response

Tells the client to submit a “GET” request to that location

Also known as “303 redirection”

Followed by all modern HTTP clients

Often used when URIs have changed

INF3580 :: Spring 2010 Lecture 13 :: 11th May 14 / 42

Page 84: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Redirection

Reminder: HTTP responses start with a “status code”

Usually “200 OK”, if the document was found and can be served

“404 Not Found”, if the document does not exist

One of the possible status codes is “303 See Other”

Always comes with a Location: field in the response

Tells the client to submit a “GET” request to that location

Also known as “303 redirection”

Followed by all modern HTTP clients

Often used when URIs have changed

INF3580 :: Spring 2010 Lecture 13 :: 11th May 14 / 42

Page 85: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Redirection

Reminder: HTTP responses start with a “status code”

Usually “200 OK”, if the document was found and can be served“404 Not Found”, if the document does not exist

One of the possible status codes is “303 See Other”

Always comes with a Location: field in the response

Tells the client to submit a “GET” request to that location

Also known as “303 redirection”

Followed by all modern HTTP clients

Often used when URIs have changed

INF3580 :: Spring 2010 Lecture 13 :: 11th May 14 / 42

Page 86: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Redirection

Reminder: HTTP responses start with a “status code”

Usually “200 OK”, if the document was found and can be served“404 Not Found”, if the document does not exist

One of the possible status codes is “303 See Other”

Always comes with a Location: field in the response

Tells the client to submit a “GET” request to that location

Also known as “303 redirection”

Followed by all modern HTTP clients

Often used when URIs have changed

INF3580 :: Spring 2010 Lecture 13 :: 11th May 14 / 42

Page 87: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Redirection

Reminder: HTTP responses start with a “status code”

Usually “200 OK”, if the document was found and can be served“404 Not Found”, if the document does not exist

One of the possible status codes is “303 See Other”

Always comes with a Location: field in the response

Tells the client to submit a “GET” request to that location

Also known as “303 redirection”

Followed by all modern HTTP clients

Often used when URIs have changed

INF3580 :: Spring 2010 Lecture 13 :: 11th May 14 / 42

Page 88: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Redirection

Reminder: HTTP responses start with a “status code”

Usually “200 OK”, if the document was found and can be served“404 Not Found”, if the document does not exist

One of the possible status codes is “303 See Other”

Always comes with a Location: field in the response

Tells the client to submit a “GET” request to that location

Also known as “303 redirection”

Followed by all modern HTTP clients

Often used when URIs have changed

INF3580 :: Spring 2010 Lecture 13 :: 11th May 14 / 42

Page 89: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Redirection

Reminder: HTTP responses start with a “status code”

Usually “200 OK”, if the document was found and can be served“404 Not Found”, if the document does not exist

One of the possible status codes is “303 See Other”

Always comes with a Location: field in the response

Tells the client to submit a “GET” request to that location

Also known as “303 redirection”

Followed by all modern HTTP clients

Often used when URIs have changed

INF3580 :: Spring 2010 Lecture 13 :: 11th May 14 / 42

Page 90: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Redirection

Reminder: HTTP responses start with a “status code”

Usually “200 OK”, if the document was found and can be served“404 Not Found”, if the document does not exist

One of the possible status codes is “303 See Other”

Always comes with a Location: field in the response

Tells the client to submit a “GET” request to that location

Also known as “303 redirection”

Followed by all modern HTTP clients

Often used when URIs have changed

INF3580 :: Spring 2010 Lecture 13 :: 11th May 14 / 42

Page 91: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Redirection

Reminder: HTTP responses start with a “status code”

Usually “200 OK”, if the document was found and can be served“404 Not Found”, if the document does not exist

One of the possible status codes is “303 See Other”

Always comes with a Location: field in the response

Tells the client to submit a “GET” request to that location

Also known as “303 redirection”

Followed by all modern HTTP clients

Often used when URIs have changed

INF3580 :: Spring 2010 Lecture 13 :: 11th May 14 / 42

Page 92: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example of 303 Redirection

User requests http://www.sun.com/

Client sends request to www.sun.com

GET / HTTP/1.1

Host: www.sun.com

Sun was bought by Oracle. . . Server responds:

HTTP/1.1 303 See Other

Location: http://www.oracle.com/

Client sends new request to www.oracle.com:

GET / HTTP/1.1

Host: www.oracle.com

Server at www.oracle.com responds:HTTP/1.1 200 OK

Content-Type: text/html. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 15 / 42

Page 93: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example of 303 Redirection

User requests http://www.sun.com/

Client sends request to www.sun.com

GET / HTTP/1.1

Host: www.sun.com

Sun was bought by Oracle. . . Server responds:

HTTP/1.1 303 See Other

Location: http://www.oracle.com/

Client sends new request to www.oracle.com:

GET / HTTP/1.1

Host: www.oracle.com

Server at www.oracle.com responds:HTTP/1.1 200 OK

Content-Type: text/html. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 15 / 42

Page 94: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example of 303 Redirection

User requests http://www.sun.com/

Client sends request to www.sun.com

GET / HTTP/1.1

Host: www.sun.com

Sun was bought by Oracle. . . Server responds:

HTTP/1.1 303 See Other

Location: http://www.oracle.com/

Client sends new request to www.oracle.com:

GET / HTTP/1.1

Host: www.oracle.com

Server at www.oracle.com responds:HTTP/1.1 200 OK

Content-Type: text/html. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 15 / 42

Page 95: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example of 303 Redirection

User requests http://www.sun.com/

Client sends request to www.sun.com

GET / HTTP/1.1

Host: www.sun.com

Sun was bought by Oracle. . . Server responds:

HTTP/1.1 303 See Other

Location: http://www.oracle.com/

Client sends new request to www.oracle.com:

GET / HTTP/1.1

Host: www.oracle.com

Server at www.oracle.com responds:HTTP/1.1 200 OK

Content-Type: text/html. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 15 / 42

Page 96: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example of 303 Redirection

User requests http://www.sun.com/

Client sends request to www.sun.com

GET / HTTP/1.1

Host: www.sun.com

Sun was bought by Oracle. . . Server responds:

HTTP/1.1 303 See Other

Location: http://www.oracle.com/

Client sends new request to www.oracle.com:

GET / HTTP/1.1

Host: www.oracle.com

Server at www.oracle.com responds:HTTP/1.1 200 OK

Content-Type: text/html. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 15 / 42

Page 97: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

303 Redirection for RDF

Find information about http://dbpedia.org/resource/Oslo

Send “GET” request to server dbpedia.org:GET /resource/Oslo HTTP/1.1

Accept: application/rdf+xml

Server dbpedia.org recognizes this as a non-information resource

Redirects to a file with data about the city of Oslo:HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Browser can now send a new request for that location:GET /data/Oslo.xml HTTP/1.1

Accept: application/rdf+xml

This time the server responds with the requested document:HTTP/1.1 200 OK

Content-Type: application/rdf+xml

. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 16 / 42

Page 98: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

303 Redirection for RDF

Find information about http://dbpedia.org/resource/Oslo

Send “GET” request to server dbpedia.org:GET /resource/Oslo HTTP/1.1

Accept: application/rdf+xml

Server dbpedia.org recognizes this as a non-information resource

Redirects to a file with data about the city of Oslo:HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Browser can now send a new request for that location:GET /data/Oslo.xml HTTP/1.1

Accept: application/rdf+xml

This time the server responds with the requested document:HTTP/1.1 200 OK

Content-Type: application/rdf+xml

. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 16 / 42

Page 99: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

303 Redirection for RDF

Find information about http://dbpedia.org/resource/Oslo

Send “GET” request to server dbpedia.org:GET /resource/Oslo HTTP/1.1

Accept: application/rdf+xml

Server dbpedia.org recognizes this as a non-information resource

Redirects to a file with data about the city of Oslo:HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Browser can now send a new request for that location:GET /data/Oslo.xml HTTP/1.1

Accept: application/rdf+xml

This time the server responds with the requested document:HTTP/1.1 200 OK

Content-Type: application/rdf+xml

. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 16 / 42

Page 100: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

303 Redirection for RDF

Find information about http://dbpedia.org/resource/Oslo

Send “GET” request to server dbpedia.org:GET /resource/Oslo HTTP/1.1

Accept: application/rdf+xml

Server dbpedia.org recognizes this as a non-information resource

Redirects to a file with data about the city of Oslo:HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Browser can now send a new request for that location:GET /data/Oslo.xml HTTP/1.1

Accept: application/rdf+xml

This time the server responds with the requested document:HTTP/1.1 200 OK

Content-Type: application/rdf+xml

. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 16 / 42

Page 101: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

303 Redirection for RDF

Find information about http://dbpedia.org/resource/Oslo

Send “GET” request to server dbpedia.org:GET /resource/Oslo HTTP/1.1

Accept: application/rdf+xml

Server dbpedia.org recognizes this as a non-information resource

Redirects to a file with data about the city of Oslo:HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Browser can now send a new request for that location:GET /data/Oslo.xml HTTP/1.1

Accept: application/rdf+xml

This time the server responds with the requested document:HTTP/1.1 200 OK

Content-Type: application/rdf+xml

. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 16 / 42

Page 102: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

303 Redirection for RDF

Find information about http://dbpedia.org/resource/Oslo

Send “GET” request to server dbpedia.org:GET /resource/Oslo HTTP/1.1

Accept: application/rdf+xml

Server dbpedia.org recognizes this as a non-information resource

Redirects to a file with data about the city of Oslo:HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Browser can now send a new request for that location:GET /data/Oslo.xml HTTP/1.1

Accept: application/rdf+xml

This time the server responds with the requested document:HTTP/1.1 200 OK

Content-Type: application/rdf+xml

. . .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 16 / 42

Page 103: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Slash Namespaces

Common to use URIs with a slash (/) as last non-identifier character:

http://dbpedia.org/resource/Oslo

Can use URI up to last slash as namespace:

@prefix dbpedia: <http://dbpedia.org/resource/>

dbpedia:Oslo dbprop:maySnowCm "0" .

Known as a “slash namespace”

Advantages over hash namespaces:

Whole URI is sent to server, so. . .Possible to redirect different resources to different documentsPossible to change redirection without changing URIs

Requires some more server configuration

See recipes at http://www.w3.org/TR/swbp-vocab-pub/

See also http://sites.wiwiss.fu-berlin.de/suhl/bizer/pub/LinkedDataTutorial/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 17 / 42

Page 104: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Slash Namespaces

Common to use URIs with a slash (/) as last non-identifier character:

http://dbpedia.org/resource/Oslo

Can use URI up to last slash as namespace:

@prefix dbpedia: <http://dbpedia.org/resource/>

dbpedia:Oslo dbprop:maySnowCm "0" .

Known as a “slash namespace”

Advantages over hash namespaces:

Whole URI is sent to server, so. . .Possible to redirect different resources to different documentsPossible to change redirection without changing URIs

Requires some more server configuration

See recipes at http://www.w3.org/TR/swbp-vocab-pub/

See also http://sites.wiwiss.fu-berlin.de/suhl/bizer/pub/LinkedDataTutorial/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 17 / 42

Page 105: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Slash Namespaces

Common to use URIs with a slash (/) as last non-identifier character:

http://dbpedia.org/resource/Oslo

Can use URI up to last slash as namespace:

@prefix dbpedia: <http://dbpedia.org/resource/>

dbpedia:Oslo dbprop:maySnowCm "0" .

Known as a “slash namespace”

Advantages over hash namespaces:

Whole URI is sent to server, so. . .Possible to redirect different resources to different documentsPossible to change redirection without changing URIs

Requires some more server configuration

See recipes at http://www.w3.org/TR/swbp-vocab-pub/

See also http://sites.wiwiss.fu-berlin.de/suhl/bizer/pub/LinkedDataTutorial/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 17 / 42

Page 106: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Slash Namespaces

Common to use URIs with a slash (/) as last non-identifier character:

http://dbpedia.org/resource/Oslo

Can use URI up to last slash as namespace:

@prefix dbpedia: <http://dbpedia.org/resource/>

dbpedia:Oslo dbprop:maySnowCm "0" .

Known as a “slash namespace”

Advantages over hash namespaces:

Whole URI is sent to server, so. . .Possible to redirect different resources to different documentsPossible to change redirection without changing URIs

Requires some more server configuration

See recipes at http://www.w3.org/TR/swbp-vocab-pub/

See also http://sites.wiwiss.fu-berlin.de/suhl/bizer/pub/LinkedDataTutorial/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 17 / 42

Page 107: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Slash Namespaces

Common to use URIs with a slash (/) as last non-identifier character:

http://dbpedia.org/resource/Oslo

Can use URI up to last slash as namespace:

@prefix dbpedia: <http://dbpedia.org/resource/>

dbpedia:Oslo dbprop:maySnowCm "0" .

Known as a “slash namespace”

Advantages over hash namespaces:

Whole URI is sent to server, so. . .

Possible to redirect different resources to different documentsPossible to change redirection without changing URIs

Requires some more server configuration

See recipes at http://www.w3.org/TR/swbp-vocab-pub/

See also http://sites.wiwiss.fu-berlin.de/suhl/bizer/pub/LinkedDataTutorial/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 17 / 42

Page 108: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Slash Namespaces

Common to use URIs with a slash (/) as last non-identifier character:

http://dbpedia.org/resource/Oslo

Can use URI up to last slash as namespace:

@prefix dbpedia: <http://dbpedia.org/resource/>

dbpedia:Oslo dbprop:maySnowCm "0" .

Known as a “slash namespace”

Advantages over hash namespaces:

Whole URI is sent to server, so. . .Possible to redirect different resources to different documents

Possible to change redirection without changing URIs

Requires some more server configuration

See recipes at http://www.w3.org/TR/swbp-vocab-pub/

See also http://sites.wiwiss.fu-berlin.de/suhl/bizer/pub/LinkedDataTutorial/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 17 / 42

Page 109: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Slash Namespaces

Common to use URIs with a slash (/) as last non-identifier character:

http://dbpedia.org/resource/Oslo

Can use URI up to last slash as namespace:

@prefix dbpedia: <http://dbpedia.org/resource/>

dbpedia:Oslo dbprop:maySnowCm "0" .

Known as a “slash namespace”

Advantages over hash namespaces:

Whole URI is sent to server, so. . .Possible to redirect different resources to different documentsPossible to change redirection without changing URIs

Requires some more server configuration

See recipes at http://www.w3.org/TR/swbp-vocab-pub/

See also http://sites.wiwiss.fu-berlin.de/suhl/bizer/pub/LinkedDataTutorial/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 17 / 42

Page 110: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Slash Namespaces

Common to use URIs with a slash (/) as last non-identifier character:

http://dbpedia.org/resource/Oslo

Can use URI up to last slash as namespace:

@prefix dbpedia: <http://dbpedia.org/resource/>

dbpedia:Oslo dbprop:maySnowCm "0" .

Known as a “slash namespace”

Advantages over hash namespaces:

Whole URI is sent to server, so. . .Possible to redirect different resources to different documentsPossible to change redirection without changing URIs

Requires some more server configuration

See recipes at http://www.w3.org/TR/swbp-vocab-pub/

See also http://sites.wiwiss.fu-berlin.de/suhl/bizer/pub/LinkedDataTutorial/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 17 / 42

Page 111: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Slash Namespaces

Common to use URIs with a slash (/) as last non-identifier character:

http://dbpedia.org/resource/Oslo

Can use URI up to last slash as namespace:

@prefix dbpedia: <http://dbpedia.org/resource/>

dbpedia:Oslo dbprop:maySnowCm "0" .

Known as a “slash namespace”

Advantages over hash namespaces:

Whole URI is sent to server, so. . .Possible to redirect different resources to different documentsPossible to change redirection without changing URIs

Requires some more server configuration

See recipes at http://www.w3.org/TR/swbp-vocab-pub/

See also http://sites.wiwiss.fu-berlin.de/suhl/bizer/pub/LinkedDataTutorial/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 17 / 42

Page 112: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Slash Namespaces

Common to use URIs with a slash (/) as last non-identifier character:

http://dbpedia.org/resource/Oslo

Can use URI up to last slash as namespace:

@prefix dbpedia: <http://dbpedia.org/resource/>

dbpedia:Oslo dbprop:maySnowCm "0" .

Known as a “slash namespace”

Advantages over hash namespaces:

Whole URI is sent to server, so. . .Possible to redirect different resources to different documentsPossible to change redirection without changing URIs

Requires some more server configuration

See recipes at http://www.w3.org/TR/swbp-vocab-pub/

See also http://sites.wiwiss.fu-berlin.de/suhl/bizer/pub/LinkedDataTutorial/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 17 / 42

Page 113: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Serving Vocabularies

What about classes and properties?

Identified by URIs:

http://xmlns.com/foaf/0.1/Person

http://xmlns.com/foaf/0.1/knows

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

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

What should be served in response to these?

A description of the “vocabulary” defining the termOften an RDF file with RDFS or OWL/RDF contentSometimes (FOAF) just an HTML page with documentation

Mechanisms are the same as for “ordinary” RDF data

A single RDF file (hash namespace) is usually OK

Should also serve the vocabulary description for the “vocabulary URI”:

http://xmlns.com/foaf/0.1/

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

INF3580 :: Spring 2010 Lecture 13 :: 11th May 18 / 42

Page 114: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Serving Vocabularies

What about classes and properties?

Identified by URIs:

http://xmlns.com/foaf/0.1/Person

http://xmlns.com/foaf/0.1/knows

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

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

What should be served in response to these?

A description of the “vocabulary” defining the termOften an RDF file with RDFS or OWL/RDF contentSometimes (FOAF) just an HTML page with documentation

Mechanisms are the same as for “ordinary” RDF data

A single RDF file (hash namespace) is usually OK

Should also serve the vocabulary description for the “vocabulary URI”:

http://xmlns.com/foaf/0.1/

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

INF3580 :: Spring 2010 Lecture 13 :: 11th May 18 / 42

Page 115: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Serving Vocabularies

What about classes and properties?

Identified by URIs:

http://xmlns.com/foaf/0.1/Person

http://xmlns.com/foaf/0.1/knows

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

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

What should be served in response to these?

A description of the “vocabulary” defining the termOften an RDF file with RDFS or OWL/RDF contentSometimes (FOAF) just an HTML page with documentation

Mechanisms are the same as for “ordinary” RDF data

A single RDF file (hash namespace) is usually OK

Should also serve the vocabulary description for the “vocabulary URI”:

http://xmlns.com/foaf/0.1/

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

INF3580 :: Spring 2010 Lecture 13 :: 11th May 18 / 42

Page 116: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Serving Vocabularies

What about classes and properties?

Identified by URIs:

http://xmlns.com/foaf/0.1/Person

http://xmlns.com/foaf/0.1/knows

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

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

What should be served in response to these?A description of the “vocabulary” defining the term

Often an RDF file with RDFS or OWL/RDF contentSometimes (FOAF) just an HTML page with documentation

Mechanisms are the same as for “ordinary” RDF data

A single RDF file (hash namespace) is usually OK

Should also serve the vocabulary description for the “vocabulary URI”:

http://xmlns.com/foaf/0.1/

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

INF3580 :: Spring 2010 Lecture 13 :: 11th May 18 / 42

Page 117: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Serving Vocabularies

What about classes and properties?

Identified by URIs:

http://xmlns.com/foaf/0.1/Person

http://xmlns.com/foaf/0.1/knows

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

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

What should be served in response to these?A description of the “vocabulary” defining the termOften an RDF file with RDFS or OWL/RDF content

Sometimes (FOAF) just an HTML page with documentation

Mechanisms are the same as for “ordinary” RDF data

A single RDF file (hash namespace) is usually OK

Should also serve the vocabulary description for the “vocabulary URI”:

http://xmlns.com/foaf/0.1/

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

INF3580 :: Spring 2010 Lecture 13 :: 11th May 18 / 42

Page 118: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Serving Vocabularies

What about classes and properties?

Identified by URIs:

http://xmlns.com/foaf/0.1/Person

http://xmlns.com/foaf/0.1/knows

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

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

What should be served in response to these?A description of the “vocabulary” defining the termOften an RDF file with RDFS or OWL/RDF contentSometimes (FOAF) just an HTML page with documentation

Mechanisms are the same as for “ordinary” RDF data

A single RDF file (hash namespace) is usually OK

Should also serve the vocabulary description for the “vocabulary URI”:

http://xmlns.com/foaf/0.1/

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

INF3580 :: Spring 2010 Lecture 13 :: 11th May 18 / 42

Page 119: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Serving Vocabularies

What about classes and properties?

Identified by URIs:

http://xmlns.com/foaf/0.1/Person

http://xmlns.com/foaf/0.1/knows

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

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

What should be served in response to these?A description of the “vocabulary” defining the termOften an RDF file with RDFS or OWL/RDF contentSometimes (FOAF) just an HTML page with documentation

Mechanisms are the same as for “ordinary” RDF data

A single RDF file (hash namespace) is usually OK

Should also serve the vocabulary description for the “vocabulary URI”:

http://xmlns.com/foaf/0.1/

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

INF3580 :: Spring 2010 Lecture 13 :: 11th May 18 / 42

Page 120: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Serving Vocabularies

What about classes and properties?

Identified by URIs:

http://xmlns.com/foaf/0.1/Person

http://xmlns.com/foaf/0.1/knows

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

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

What should be served in response to these?A description of the “vocabulary” defining the termOften an RDF file with RDFS or OWL/RDF contentSometimes (FOAF) just an HTML page with documentation

Mechanisms are the same as for “ordinary” RDF data

A single RDF file (hash namespace) is usually OK

Should also serve the vocabulary description for the “vocabulary URI”:

http://xmlns.com/foaf/0.1/

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

INF3580 :: Spring 2010 Lecture 13 :: 11th May 18 / 42

Page 121: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Serving Vocabularies

What about classes and properties?

Identified by URIs:

http://xmlns.com/foaf/0.1/Person

http://xmlns.com/foaf/0.1/knows

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

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

What should be served in response to these?A description of the “vocabulary” defining the termOften an RDF file with RDFS or OWL/RDF contentSometimes (FOAF) just an HTML page with documentation

Mechanisms are the same as for “ordinary” RDF data

A single RDF file (hash namespace) is usually OK

Should also serve the vocabulary description for the “vocabulary URI”:

http://xmlns.com/foaf/0.1/

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

INF3580 :: Spring 2010 Lecture 13 :: 11th May 18 / 42

Page 122: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 123: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME types

text/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 124: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 125: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 126: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xml

Turtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 127: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)

N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 128: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 129: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 130: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 131: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 132: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 133: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available types

Sends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 134: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the header

Content-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 135: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

HTTP Content Type Negotiation

In HTTP, data formats are identified by “internet media types”

Previously known as MIME typestext/html, image/jpeg, application/pdf,...

RDF media types:

RDF/XML: application/rdf+xmlTurtle: text/turtle (registration pending)N3: text/rdf+n3 (not registered)

Client sends accepted media types in Accept: header:

Accept: text/html, text/plain

Can additionally add “quality factors” to specify preference

Server chooses sent media type:

Picks the preferred one among available typesSends the media type of the response in the headerContent-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 19 / 42

Page 136: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Content Type Negotiation for RDF

Given the URI of a non-information resource. . .

A semantic web applications wants RDF data, as discussedA regular WWW browser wants HTML, human readable

This can be achieved using HTTP content type negotiation!

Semantic web client:

Requests RDF, e.g. Accept: application/rdf+xml, text/turtle

Server uses e.g. 303 redirection to an RDF file

HTML web client:

Requests text, e.g. Accept: text/html, text/plain

Server uses e.g. 303 redirection to an HTML file

Also possible with hash namespaces, seehttp://www.w3.org/TR/swbp-vocab-pub/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 20 / 42

Page 137: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Content Type Negotiation for RDF

Given the URI of a non-information resource. . .

A semantic web applications wants RDF data, as discussed

A regular WWW browser wants HTML, human readable

This can be achieved using HTTP content type negotiation!

Semantic web client:

Requests RDF, e.g. Accept: application/rdf+xml, text/turtle

Server uses e.g. 303 redirection to an RDF file

HTML web client:

Requests text, e.g. Accept: text/html, text/plain

Server uses e.g. 303 redirection to an HTML file

Also possible with hash namespaces, seehttp://www.w3.org/TR/swbp-vocab-pub/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 20 / 42

Page 138: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Content Type Negotiation for RDF

Given the URI of a non-information resource. . .

A semantic web applications wants RDF data, as discussedA regular WWW browser wants HTML, human readable

This can be achieved using HTTP content type negotiation!

Semantic web client:

Requests RDF, e.g. Accept: application/rdf+xml, text/turtle

Server uses e.g. 303 redirection to an RDF file

HTML web client:

Requests text, e.g. Accept: text/html, text/plain

Server uses e.g. 303 redirection to an HTML file

Also possible with hash namespaces, seehttp://www.w3.org/TR/swbp-vocab-pub/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 20 / 42

Page 139: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Content Type Negotiation for RDF

Given the URI of a non-information resource. . .

A semantic web applications wants RDF data, as discussedA regular WWW browser wants HTML, human readable

This can be achieved using HTTP content type negotiation!

Semantic web client:

Requests RDF, e.g. Accept: application/rdf+xml, text/turtle

Server uses e.g. 303 redirection to an RDF file

HTML web client:

Requests text, e.g. Accept: text/html, text/plain

Server uses e.g. 303 redirection to an HTML file

Also possible with hash namespaces, seehttp://www.w3.org/TR/swbp-vocab-pub/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 20 / 42

Page 140: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Content Type Negotiation for RDF

Given the URI of a non-information resource. . .

A semantic web applications wants RDF data, as discussedA regular WWW browser wants HTML, human readable

This can be achieved using HTTP content type negotiation!

Semantic web client:

Requests RDF, e.g. Accept: application/rdf+xml, text/turtle

Server uses e.g. 303 redirection to an RDF file

HTML web client:

Requests text, e.g. Accept: text/html, text/plain

Server uses e.g. 303 redirection to an HTML file

Also possible with hash namespaces, seehttp://www.w3.org/TR/swbp-vocab-pub/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 20 / 42

Page 141: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Content Type Negotiation for RDF

Given the URI of a non-information resource. . .

A semantic web applications wants RDF data, as discussedA regular WWW browser wants HTML, human readable

This can be achieved using HTTP content type negotiation!

Semantic web client:

Requests RDF, e.g. Accept: application/rdf+xml, text/turtle

Server uses e.g. 303 redirection to an RDF file

HTML web client:

Requests text, e.g. Accept: text/html, text/plain

Server uses e.g. 303 redirection to an HTML file

Also possible with hash namespaces, seehttp://www.w3.org/TR/swbp-vocab-pub/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 20 / 42

Page 142: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Content Type Negotiation for RDF

Given the URI of a non-information resource. . .

A semantic web applications wants RDF data, as discussedA regular WWW browser wants HTML, human readable

This can be achieved using HTTP content type negotiation!

Semantic web client:

Requests RDF, e.g. Accept: application/rdf+xml, text/turtle

Server uses e.g. 303 redirection to an RDF file

HTML web client:

Requests text, e.g. Accept: text/html, text/plain

Server uses e.g. 303 redirection to an HTML file

Also possible with hash namespaces, seehttp://www.w3.org/TR/swbp-vocab-pub/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 20 / 42

Page 143: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Content Type Negotiation for RDF

Given the URI of a non-information resource. . .

A semantic web applications wants RDF data, as discussedA regular WWW browser wants HTML, human readable

This can be achieved using HTTP content type negotiation!

Semantic web client:

Requests RDF, e.g. Accept: application/rdf+xml, text/turtle

Server uses e.g. 303 redirection to an RDF file

HTML web client:

Requests text, e.g. Accept: text/html, text/plain

Server uses e.g. 303 redirection to an HTML file

Also possible with hash namespaces, seehttp://www.w3.org/TR/swbp-vocab-pub/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 20 / 42

Page 144: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Content Type Negotiation for RDF

Given the URI of a non-information resource. . .

A semantic web applications wants RDF data, as discussedA regular WWW browser wants HTML, human readable

This can be achieved using HTTP content type negotiation!

Semantic web client:

Requests RDF, e.g. Accept: application/rdf+xml, text/turtle

Server uses e.g. 303 redirection to an RDF file

HTML web client:

Requests text, e.g. Accept: text/html, text/plain

Server uses e.g. 303 redirection to an HTML file

Also possible with hash namespaces, seehttp://www.w3.org/TR/swbp-vocab-pub/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 20 / 42

Page 145: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Content Type Negotiation for RDF

Given the URI of a non-information resource. . .

A semantic web applications wants RDF data, as discussedA regular WWW browser wants HTML, human readable

This can be achieved using HTTP content type negotiation!

Semantic web client:

Requests RDF, e.g. Accept: application/rdf+xml, text/turtle

Server uses e.g. 303 redirection to an RDF file

HTML web client:

Requests text, e.g. Accept: text/html, text/plain

Server uses e.g. 303 redirection to an HTML file

Also possible with hash namespaces, seehttp://www.w3.org/TR/swbp-vocab-pub/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 20 / 42

Page 146: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Content Type Negotiation for RDF

Given the URI of a non-information resource. . .

A semantic web applications wants RDF data, as discussedA regular WWW browser wants HTML, human readable

This can be achieved using HTTP content type negotiation!

Semantic web client:

Requests RDF, e.g. Accept: application/rdf+xml, text/turtle

Server uses e.g. 303 redirection to an RDF file

HTML web client:

Requests text, e.g. Accept: text/html, text/plain

Server uses e.g. 303 redirection to an HTML file

Also possible with hash namespaces, seehttp://www.w3.org/TR/swbp-vocab-pub/

INF3580 :: Spring 2010 Lecture 13 :: 11th May 20 / 42

Page 147: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org

Requesting the URI http://dbpedia.org/resource/Oslo

From an HTML web browser:

Sends Accept: text/html in requestServer returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/page/Oslo

Client requests http://dbpedia.org/page/Oslo

Server sends HTML document:

HTTP/1.1 200 OK

Content-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 21 / 42

Page 148: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org

Requesting the URI http://dbpedia.org/resource/Oslo

From an HTML web browser:

Sends Accept: text/html in requestServer returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/page/Oslo

Client requests http://dbpedia.org/page/Oslo

Server sends HTML document:

HTTP/1.1 200 OK

Content-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 21 / 42

Page 149: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org

Requesting the URI http://dbpedia.org/resource/Oslo

From an HTML web browser:

Sends Accept: text/html in request

Server returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/page/Oslo

Client requests http://dbpedia.org/page/Oslo

Server sends HTML document:

HTTP/1.1 200 OK

Content-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 21 / 42

Page 150: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org

Requesting the URI http://dbpedia.org/resource/Oslo

From an HTML web browser:

Sends Accept: text/html in requestServer returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/page/Oslo

Client requests http://dbpedia.org/page/Oslo

Server sends HTML document:

HTTP/1.1 200 OK

Content-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 21 / 42

Page 151: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org

Requesting the URI http://dbpedia.org/resource/Oslo

From an HTML web browser:

Sends Accept: text/html in requestServer returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/page/Oslo

Client requests http://dbpedia.org/page/Oslo

Server sends HTML document:

HTTP/1.1 200 OK

Content-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 21 / 42

Page 152: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org

Requesting the URI http://dbpedia.org/resource/Oslo

From an HTML web browser:

Sends Accept: text/html in requestServer returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/page/Oslo

Client requests http://dbpedia.org/page/Oslo

Server sends HTML document:

HTTP/1.1 200 OK

Content-Type: text/html

INF3580 :: Spring 2010 Lecture 13 :: 11th May 21 / 42

Page 153: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org (cont.)

Requesting the URI http://dbpedia.org/resource/Oslo

From a semantic web browser:

Sends Accept: application/rdf+xml in requestServer returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Client requests http://dbpedia.org/data/Oslo.xml

Server sends RDF/XML document:

HTTP/1.1 200 OK

Content-Type: application/rdf+xml

INF3580 :: Spring 2010 Lecture 13 :: 11th May 22 / 42

Page 154: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org (cont.)

Requesting the URI http://dbpedia.org/resource/Oslo

From a semantic web browser:

Sends Accept: application/rdf+xml in requestServer returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Client requests http://dbpedia.org/data/Oslo.xml

Server sends RDF/XML document:

HTTP/1.1 200 OK

Content-Type: application/rdf+xml

INF3580 :: Spring 2010 Lecture 13 :: 11th May 22 / 42

Page 155: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org (cont.)

Requesting the URI http://dbpedia.org/resource/Oslo

From a semantic web browser:

Sends Accept: application/rdf+xml in request

Server returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Client requests http://dbpedia.org/data/Oslo.xml

Server sends RDF/XML document:

HTTP/1.1 200 OK

Content-Type: application/rdf+xml

INF3580 :: Spring 2010 Lecture 13 :: 11th May 22 / 42

Page 156: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org (cont.)

Requesting the URI http://dbpedia.org/resource/Oslo

From a semantic web browser:

Sends Accept: application/rdf+xml in requestServer returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Client requests http://dbpedia.org/data/Oslo.xml

Server sends RDF/XML document:

HTTP/1.1 200 OK

Content-Type: application/rdf+xml

INF3580 :: Spring 2010 Lecture 13 :: 11th May 22 / 42

Page 157: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org (cont.)

Requesting the URI http://dbpedia.org/resource/Oslo

From a semantic web browser:

Sends Accept: application/rdf+xml in requestServer returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Client requests http://dbpedia.org/data/Oslo.xml

Server sends RDF/XML document:

HTTP/1.1 200 OK

Content-Type: application/rdf+xml

INF3580 :: Spring 2010 Lecture 13 :: 11th May 22 / 42

Page 158: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linked Open Data

Example: dbpedia.org (cont.)

Requesting the URI http://dbpedia.org/resource/Oslo

From a semantic web browser:

Sends Accept: application/rdf+xml in requestServer returns:

HTTP/1.1 303 See Other

Location: http://dbpedia.org/data/Oslo.xml

Client requests http://dbpedia.org/data/Oslo.xml

Server sends RDF/XML document:

HTTP/1.1 200 OK

Content-Type: application/rdf+xml

INF3580 :: Spring 2010 Lecture 13 :: 11th May 22 / 42

Page 159: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

Outline

1 Introduction

2 Linked Open Data

3 Linking RDF to HTML

4 RDFa

INF3580 :: Spring 2010 Lecture 13 :: 11th May 23 / 42

Page 160: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

The Problem

The HTML web contains lots of human-readable information

How can clients discover the location of correspondingmachine-readable information?

?−→

INF3580 :: Spring 2010 Lecture 13 :: 11th May 24 / 42

Page 161: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

Embedding RDF/XML in (X)HTML

First idea: Embed RDF/XML in HTML or XHTML:

<html>

<head>

<title>My Homepage</title>

<rdf:RDF>

<rdf:Description rdf:about="#me">

<foaf:name>Martin Giese</foaf:name>

...

Not recommended:

Does not fit HTML or XHTML DTDs

No satisfactory solution, due to flexible RDF vocabulary

B.t.w. there is a metadata element in SVG for this!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 25 / 42

Page 162: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

Embedding RDF/XML in (X)HTML

First idea: Embed RDF/XML in HTML or XHTML:

<html>

<head>

<title>My Homepage</title>

<rdf:RDF>

<rdf:Description rdf:about="#me">

<foaf:name>Martin Giese</foaf:name>

...

Not recommended:

Does not fit HTML or XHTML DTDs

No satisfactory solution, due to flexible RDF vocabulary

B.t.w. there is a metadata element in SVG for this!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 25 / 42

Page 163: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

Embedding RDF/XML in (X)HTML

First idea: Embed RDF/XML in HTML or XHTML:

<html>

<head>

<title>My Homepage</title>

<rdf:RDF>

<rdf:Description rdf:about="#me">

<foaf:name>Martin Giese</foaf:name>

...

Not recommended:

Does not fit HTML or XHTML DTDs

No satisfactory solution, due to flexible RDF vocabulary

B.t.w. there is a metadata element in SVG for this!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 25 / 42

Page 164: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

Embedding RDF/XML in (X)HTML

First idea: Embed RDF/XML in HTML or XHTML:

<html>

<head>

<title>My Homepage</title>

<rdf:RDF>

<rdf:Description rdf:about="#me">

<foaf:name>Martin Giese</foaf:name>

...

Not recommended:

Does not fit HTML or XHTML DTDs

No satisfactory solution, due to flexible RDF vocabulary

B.t.w. there is a metadata element in SVG for this!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 25 / 42

Page 165: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

Embedding RDF/XML in (X)HTML

First idea: Embed RDF/XML in HTML or XHTML:

<html>

<head>

<title>My Homepage</title>

<rdf:RDF>

<rdf:Description rdf:about="#me">

<foaf:name>Martin Giese</foaf:name>

...

Not recommended:

Does not fit HTML or XHTML DTDs

No satisfactory solution, due to flexible RDF vocabulary

B.t.w. there is a metadata element in SVG for this!

INF3580 :: Spring 2010 Lecture 13 :: 11th May 25 / 42

Page 166: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documents

CSS style sheetsAlternative languagesNext, previous, index, etc.

Can contain attributes:

rel – the kind of relationtype – the media type of the related documenthref – the URL of the other documenttitle – the title of the other document(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 167: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documents

CSS style sheetsAlternative languagesNext, previous, index, etc.

Can contain attributes:

rel – the kind of relationtype – the media type of the related documenthref – the URL of the other documenttitle – the title of the other document(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 168: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documentsCSS style sheets

Alternative languagesNext, previous, index, etc.

Can contain attributes:

rel – the kind of relationtype – the media type of the related documenthref – the URL of the other documenttitle – the title of the other document(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 169: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documentsCSS style sheetsAlternative languages

Next, previous, index, etc.

Can contain attributes:

rel – the kind of relationtype – the media type of the related documenthref – the URL of the other documenttitle – the title of the other document(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 170: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documentsCSS style sheetsAlternative languagesNext, previous, index, etc.

Can contain attributes:

rel – the kind of relationtype – the media type of the related documenthref – the URL of the other documenttitle – the title of the other document(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 171: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documentsCSS style sheetsAlternative languagesNext, previous, index, etc.

Can contain attributes:

rel – the kind of relationtype – the media type of the related documenthref – the URL of the other documenttitle – the title of the other document(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 172: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documentsCSS style sheetsAlternative languagesNext, previous, index, etc.

Can contain attributes:rel – the kind of relation

type – the media type of the related documenthref – the URL of the other documenttitle – the title of the other document(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 173: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documentsCSS style sheetsAlternative languagesNext, previous, index, etc.

Can contain attributes:rel – the kind of relationtype – the media type of the related document

href – the URL of the other documenttitle – the title of the other document(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 174: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documentsCSS style sheetsAlternative languagesNext, previous, index, etc.

Can contain attributes:rel – the kind of relationtype – the media type of the related documenthref – the URL of the other document

title – the title of the other document(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 175: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documentsCSS style sheetsAlternative languagesNext, previous, index, etc.

Can contain attributes:rel – the kind of relationtype – the media type of the related documenthref – the URL of the other documenttitle – the title of the other document

(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 176: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documentsCSS style sheetsAlternative languagesNext, previous, index, etc.

Can contain attributes:rel – the kind of relationtype – the media type of the related documenthref – the URL of the other documenttitle – the title of the other document(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 177: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTML LINK elements

LINK occur inside HTML HEAD elements

relate a document to other documentsCSS style sheetsAlternative languagesNext, previous, index, etc.

Can contain attributes:rel – the kind of relationtype – the media type of the related documenthref – the URL of the other documenttitle – the title of the other document(and some more)

E.g. a style sheet:

<html>

<head>

<title>My Homepage</title>

<link rel="stylesheet" type="text/css" href="style.css">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 26 / 42

Page 178: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

LINKing to RDF

To link to an RDF representation:

<LINK rel="meta"

type="application/rdf+xml"

title="RDF/XML version"

href="http://dbpedia.org/data/Oslo.xml">

Also: rel="alternate"

Note: difference between meta-data and alternative representation

Various web browser plugins exist to detect these LINKs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 27 / 42

Page 179: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

LINKing to RDF

To link to an RDF representation:

<LINK rel="meta"

type="application/rdf+xml"

title="RDF/XML version"

href="http://dbpedia.org/data/Oslo.xml">

Also: rel="alternate"

Note: difference between meta-data and alternative representation

Various web browser plugins exist to detect these LINKs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 27 / 42

Page 180: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

LINKing to RDF

To link to an RDF representation:

<LINK rel="meta"

type="application/rdf+xml"

title="RDF/XML version"

href="http://dbpedia.org/data/Oslo.xml">

Also: rel="alternate"

Note: difference between meta-data and alternative representation

Various web browser plugins exist to detect these LINKs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 27 / 42

Page 181: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

LINKing to RDF

To link to an RDF representation:

<LINK rel="meta"

type="application/rdf+xml"

title="RDF/XML version"

href="http://dbpedia.org/data/Oslo.xml">

Also: rel="alternate"

Note: difference between meta-data and alternative representation

Various web browser plugins exist to detect these LINKs

INF3580 :: Spring 2010 Lecture 13 :: 11th May 27 / 42

Page 182: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTTP Link: response headers

Non-standardized proposal, originally by Berners-Lee, 1992

Generated by a few servers, recognized by a few clients

Same information as in LINK HTML element, but as HTTP header:

Link: <foaf.rdf>; rel="meta"; type="application/rdf+xml"

Advantage: can be sent also with non-HTML data

INF3580 :: Spring 2010 Lecture 13 :: 11th May 28 / 42

Page 183: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTTP Link: response headers

Non-standardized proposal, originally by Berners-Lee, 1992

Generated by a few servers, recognized by a few clients

Same information as in LINK HTML element, but as HTTP header:

Link: <foaf.rdf>; rel="meta"; type="application/rdf+xml"

Advantage: can be sent also with non-HTML data

INF3580 :: Spring 2010 Lecture 13 :: 11th May 28 / 42

Page 184: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTTP Link: response headers

Non-standardized proposal, originally by Berners-Lee, 1992

Generated by a few servers, recognized by a few clients

Same information as in LINK HTML element, but as HTTP header:

Link: <foaf.rdf>; rel="meta"; type="application/rdf+xml"

Advantage: can be sent also with non-HTML data

INF3580 :: Spring 2010 Lecture 13 :: 11th May 28 / 42

Page 185: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

Linking RDF to HTML

HTTP Link: response headers

Non-standardized proposal, originally by Berners-Lee, 1992

Generated by a few servers, recognized by a few clients

Same information as in LINK HTML element, but as HTTP header:

Link: <foaf.rdf>; rel="meta"; type="application/rdf+xml"

Advantage: can be sent also with non-HTML data

INF3580 :: Spring 2010 Lecture 13 :: 11th May 28 / 42

Page 186: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Outline

1 Introduction

2 Linked Open Data

3 Linking RDF to HTML

4 RDFa

INF3580 :: Spring 2010 Lecture 13 :: 11th May 29 / 42

Page 187: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Once More: Embedding RDF in (X)HTML

Directly embedding RDF/XML in (X)HTML does not work well

Use a different “serialization” that blends well with (X)HTML!

From the RDFa specification (http://www.w3.org/TR/rdfa-syntax/)

The aim of RDFa is to allow a single RDF graph to be carried in varioustypes of document mark-up.

XHTML in spec., but works with HTML and other XML

RDFa adds a fixed set of attributes to (X)HTML

Document type:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"

"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 30 / 42

Page 188: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Once More: Embedding RDF in (X)HTML

Directly embedding RDF/XML in (X)HTML does not work well

Use a different “serialization” that blends well with (X)HTML!

From the RDFa specification (http://www.w3.org/TR/rdfa-syntax/)

The aim of RDFa is to allow a single RDF graph to be carried in varioustypes of document mark-up.

XHTML in spec., but works with HTML and other XML

RDFa adds a fixed set of attributes to (X)HTML

Document type:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"

"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 30 / 42

Page 189: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Once More: Embedding RDF in (X)HTML

Directly embedding RDF/XML in (X)HTML does not work well

Use a different “serialization” that blends well with (X)HTML!

From the RDFa specification (http://www.w3.org/TR/rdfa-syntax/)

The aim of RDFa is to allow a single RDF graph to be carried in varioustypes of document mark-up.

XHTML in spec., but works with HTML and other XML

RDFa adds a fixed set of attributes to (X)HTML

Document type:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"

"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 30 / 42

Page 190: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Once More: Embedding RDF in (X)HTML

Directly embedding RDF/XML in (X)HTML does not work well

Use a different “serialization” that blends well with (X)HTML!

From the RDFa specification (http://www.w3.org/TR/rdfa-syntax/)

The aim of RDFa is to allow a single RDF graph to be carried in varioustypes of document mark-up.

XHTML in spec., but works with HTML and other XML

RDFa adds a fixed set of attributes to (X)HTML

Document type:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"

"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 30 / 42

Page 191: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Once More: Embedding RDF in (X)HTML

Directly embedding RDF/XML in (X)HTML does not work well

Use a different “serialization” that blends well with (X)HTML!

From the RDFa specification (http://www.w3.org/TR/rdfa-syntax/)

The aim of RDFa is to allow a single RDF graph to be carried in varioustypes of document mark-up.

XHTML in spec., but works with HTML and other XML

RDFa adds a fixed set of attributes to (X)HTML

Document type:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"

"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 30 / 42

Page 192: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Once More: Embedding RDF in (X)HTML

Directly embedding RDF/XML in (X)HTML does not work well

Use a different “serialization” that blends well with (X)HTML!

From the RDFa specification (http://www.w3.org/TR/rdfa-syntax/)

The aim of RDFa is to allow a single RDF graph to be carried in varioustypes of document mark-up.

XHTML in spec., but works with HTML and other XML

RDFa adds a fixed set of attributes to (X)HTML

Document type:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"

"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

INF3580 :: Spring 2010 Lecture 13 :: 11th May 30 / 42

Page 193: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Processing

Web browsers ignore RDFa attributes

RDFa processors extract a single RDF graph from a document

<html>

XHTML+RDFa</html>

Web page RDF graph

Web browser RDFa processor

INF3580 :: Spring 2010 Lecture 13 :: 11th May 31 / 42

Page 194: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Concepts

RDFa adds semantic annotations to

hyper-links (href)textual content

RDFa attributes can appear in (almost) any element

As the XHTML is processed, there is always a “current subject” thatgenerated triples refer to

The current subject starts as the base URI of the document, but canchange on the way

INF3580 :: Spring 2010 Lecture 13 :: 11th May 32 / 42

Page 195: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Concepts

RDFa adds semantic annotations to

hyper-links (href)

textual content

RDFa attributes can appear in (almost) any element

As the XHTML is processed, there is always a “current subject” thatgenerated triples refer to

The current subject starts as the base URI of the document, but canchange on the way

INF3580 :: Spring 2010 Lecture 13 :: 11th May 32 / 42

Page 196: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Concepts

RDFa adds semantic annotations to

hyper-links (href)textual content

RDFa attributes can appear in (almost) any element

As the XHTML is processed, there is always a “current subject” thatgenerated triples refer to

The current subject starts as the base URI of the document, but canchange on the way

INF3580 :: Spring 2010 Lecture 13 :: 11th May 32 / 42

Page 197: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Concepts

RDFa adds semantic annotations to

hyper-links (href)textual content

RDFa attributes can appear in (almost) any element

As the XHTML is processed, there is always a “current subject” thatgenerated triples refer to

The current subject starts as the base URI of the document, but canchange on the way

INF3580 :: Spring 2010 Lecture 13 :: 11th May 32 / 42

Page 198: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Concepts

RDFa adds semantic annotations to

hyper-links (href)textual content

RDFa attributes can appear in (almost) any element

As the XHTML is processed, there is always a “current subject” thatgenerated triples refer to

The current subject starts as the base URI of the document, but canchange on the way

INF3580 :: Spring 2010 Lecture 13 :: 11th May 32 / 42

Page 199: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Concepts

RDFa adds semantic annotations to

hyper-links (href)textual content

RDFa attributes can appear in (almost) any element

As the XHTML is processed, there is always a “current subject” thatgenerated triples refer to

The current subject starts as the base URI of the document, but canchange on the way

INF3580 :: Spring 2010 Lecture 13 :: 11th May 32 / 42

Page 200: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Reminder: (X)HTML Meta and Link

Links and metadata in HTML header:

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Page 507</title>

<meta name="author" content="Sigrid Undset" />

<link rel="prev" href="page506.html" />

<link rel="next" href="page508.html" />

</head>

<body>...</body>

</html>

Meaning of name and rel informal

Only a few values defined by the standard

INF3580 :: Spring 2010 Lecture 13 :: 11th May 33 / 42

Page 201: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Reminder: (X)HTML Meta and Link

Links and metadata in HTML header:

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Page 507</title>

<meta name="author" content="Sigrid Undset" />

<link rel="prev" href="page506.html" />

<link rel="next" href="page508.html" />

</head>

<body>...</body>

</html>

Meaning of name and rel informal

Only a few values defined by the standard

INF3580 :: Spring 2010 Lecture 13 :: 11th May 33 / 42

Page 202: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Reminder: (X)HTML Meta and Link

Links and metadata in HTML header:

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title>Page 507</title>

<meta name="author" content="Sigrid Undset" />

<link rel="prev" href="page506.html" />

<link rel="next" href="page508.html" />

</head>

<body>...</body>

</html>

Meaning of name and rel informal

Only a few values defined by the standard

INF3580 :: Spring 2010 Lecture 13 :: 11th May 33 / 42

Page 203: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa property and rel

“semantic” meta and link in RDFa:

<html xmlns="http://www.w3.org/1999/xhtml"

xmlns:foaf="http://xmlns.com/foaf/0.1/"

xmlns:dc="http://purl.org/dc/elements/1.1/">

<head>

<title>MG’s home page</title>

<meta property="dc:creator" content="Martin Giese" />

<link rel="foaf:topic" href="foaf.rdf#me" />

</head>

<body>...</body>

</html>

Extracted triples: (<> is base URI!)

<> dc:creator "Martin Giese" .

<> foaf:topic <foaf.rdf#me> .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 34 / 42

Page 204: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa property and rel

“semantic” meta and link in RDFa:

<html xmlns="http://www.w3.org/1999/xhtml"

xmlns:foaf="http://xmlns.com/foaf/0.1/"

xmlns:dc="http://purl.org/dc/elements/1.1/">

<head>

<title>MG’s home page</title>

<meta property="dc:creator" content="Martin Giese" />

<link rel="foaf:topic" href="foaf.rdf#me" />

</head>

<body>...</body>

</html>

Extracted triples: (<> is base URI!)

<> dc:creator "Martin Giese" .

<> foaf:topic <foaf.rdf#me> .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 34 / 42

Page 205: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Attribute rel on A elements

Any hyper-link can be given a “meaning”:

This document is licensed under a

<a xmlns:cc="http://creativecommons.org/ns#"

rel="cc:license"

href="http://creativecommons.org/licenses/by-nc-nd/3.0/">

Creative Commons License

</a>.

Extracted triple:

<> cc:license <http://creativecommons.org/.../3.0/> .

Can use rev instead of rel to swap subject and object

INF3580 :: Spring 2010 Lecture 13 :: 11th May 35 / 42

Page 206: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Attribute rel on A elements

Any hyper-link can be given a “meaning”:

This document is licensed under a

<a xmlns:cc="http://creativecommons.org/ns#"

rel="cc:license"

href="http://creativecommons.org/licenses/by-nc-nd/3.0/">

Creative Commons License

</a>.

Extracted triple:

<> cc:license <http://creativecommons.org/.../3.0/> .

Can use rev instead of rel to swap subject and object

INF3580 :: Spring 2010 Lecture 13 :: 11th May 35 / 42

Page 207: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Attribute rel on A elements

Any hyper-link can be given a “meaning”:

This document is licensed under a

<a xmlns:cc="http://creativecommons.org/ns#"

rel="cc:license"

href="http://creativecommons.org/licenses/by-nc-nd/3.0/">

Creative Commons License

</a>.

Extracted triple:

<> cc:license <http://creativecommons.org/.../3.0/> .

Can use rev instead of rel to swap subject and object

INF3580 :: Spring 2010 Lecture 13 :: 11th May 35 / 42

Page 208: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

The property attribute

rel is for resource objects, property for literal objects:

<html xmlns="http://www.w3.org/1999/xhtml"

xmlns:dc="http://purl.org/dc/elements/1.1/">

<head>...</head>

<body>

<h1 property="dc:title">Kransen</h1>

Written in <span property="dc:created">1920</span>

</body>

</html>

Extracted triples:<> dc:title "Kransen" ; dc:created "1920" .

Can also use content attribute together with property:<span property="dc:created" datatype="xsd:dateTime"

content="2007-09-16T16:00:00-05:00">

September 16th at 4pm

</span>

INF3580 :: Spring 2010 Lecture 13 :: 11th May 36 / 42

Page 209: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

The property attribute

rel is for resource objects, property for literal objects:

<html xmlns="http://www.w3.org/1999/xhtml"

xmlns:dc="http://purl.org/dc/elements/1.1/">

<head>...</head>

<body>

<h1 property="dc:title">Kransen</h1>

Written in <span property="dc:created">1920</span>

</body>

</html>

Extracted triples:<> dc:title "Kransen" ; dc:created "1920" .

Can also use content attribute together with property:<span property="dc:created" datatype="xsd:dateTime"

content="2007-09-16T16:00:00-05:00">

September 16th at 4pm

</span>

INF3580 :: Spring 2010 Lecture 13 :: 11th May 36 / 42

Page 210: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

The property attribute

rel is for resource objects, property for literal objects:

<html xmlns="http://www.w3.org/1999/xhtml"

xmlns:dc="http://purl.org/dc/elements/1.1/">

<head>...</head>

<body>

<h1 property="dc:title">Kransen</h1>

Written in <span property="dc:created">1920</span>

</body>

</html>

Extracted triples:<> dc:title "Kransen" ; dc:created "1920" .

Can also use content attribute together with property:<span property="dc:created" datatype="xsd:dateTime"

content="2007-09-16T16:00:00-05:00">

September 16th at 4pm

</span>

INF3580 :: Spring 2010 Lecture 13 :: 11th May 36 / 42

Page 211: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Changing the Subject

about changes subject of contained rel and property annotations:

<div about="http://.../foaf.rdf#me"

xmlns:foaf="http://xmlns.com/foaf/0.1/">

<p property="foaf:name">Martin Giese</p>

<p> Email:

<a rel="foaf:mbox" href="mailto:[email protected]">

[email protected]</a></p>

<p> Phone:

<a rel="foaf:phone" href="tel:+47-31415926">

31 41 59 26</a></p>

</div>

Extracted triples:

<http://.../foaf.rdf#me> foaf:name "Martin Giese" ;

foaf:mbox <mailto:[email protected]> ;

foaf:name <tel:+47-31415926> .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 37 / 42

Page 212: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Changing the Subject

about changes subject of contained rel and property annotations:

<div about="http://.../foaf.rdf#me"

xmlns:foaf="http://xmlns.com/foaf/0.1/">

<p property="foaf:name">Martin Giese</p>

<p> Email:

<a rel="foaf:mbox" href="mailto:[email protected]">

[email protected]</a></p>

<p> Phone:

<a rel="foaf:phone" href="tel:+47-31415926">

31 41 59 26</a></p>

</div>

Extracted triples:

<http://.../foaf.rdf#me> foaf:name "Martin Giese" ;

foaf:mbox <mailto:[email protected]> ;

foaf:name <tel:+47-31415926> .

INF3580 :: Spring 2010 Lecture 13 :: 11th May 37 / 42

Page 213: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Types and Blank Nodes

typeof adds an rdf:type triple

Missing URIs can lead to blank nodes:

<div typeof="foaf:Person"

xmlns:foaf="http://xmlns.com/foaf/0.1/">

<p property="foaf:name">Martin Giese</p>

<p> Email:

<a rel="foaf:mbox" href="mailto:[email protected]">

[email protected]</a></p>

</div>

Extracted triples:

[] a foaf:Person ;

foaf:name "Martin Giese" ;

foaf:mbox <mailto:[email protected]> ;

INF3580 :: Spring 2010 Lecture 13 :: 11th May 38 / 42

Page 214: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Types and Blank Nodes

typeof adds an rdf:type triple

Missing URIs can lead to blank nodes:

<div typeof="foaf:Person"

xmlns:foaf="http://xmlns.com/foaf/0.1/">

<p property="foaf:name">Martin Giese</p>

<p> Email:

<a rel="foaf:mbox" href="mailto:[email protected]">

[email protected]</a></p>

</div>

Extracted triples:

[] a foaf:Person ;

foaf:name "Martin Giese" ;

foaf:mbox <mailto:[email protected]> ;

INF3580 :: Spring 2010 Lecture 13 :: 11th May 38 / 42

Page 215: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Types and Blank Nodes

typeof adds an rdf:type triple

Missing URIs can lead to blank nodes:

<div typeof="foaf:Person"

xmlns:foaf="http://xmlns.com/foaf/0.1/">

<p property="foaf:name">Martin Giese</p>

<p> Email:

<a rel="foaf:mbox" href="mailto:[email protected]">

[email protected]</a></p>

</div>

Extracted triples:

[] a foaf:Person ;

foaf:name "Martin Giese" ;

foaf:mbox <mailto:[email protected]> ;

INF3580 :: Spring 2010 Lecture 13 :: 11th May 38 / 42

Page 216: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Know Your Friends

Missing objects collected from contained elements (chaining):

<div xmlns:foaf="http://xmlns.com/foaf/0.1/"

about="foaf.rdf#me" rel="foaf:knows">

<ul>

<li typeof="foaf:Person">

<a property="foaf:name" rel="foaf:homepage"

href="http://heim.ifi.uio.no/elian/">Espen</a>

</li>

<li typeof="foaf:Person">

<a property="foaf:name" rel="foaf:homepage"

href="http://heim.ifi.uio.no/martige/">Martin</a>

</li>

</ul>

</div>

INF3580 :: Spring 2010 Lecture 13 :: 11th May 39 / 42

Page 217: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Triples From Chaining Example

foaf.rdf#me

http:/.../elian/

foaf:h

omepag

e

Espenfoaf:name

foaf:Person

rdf:typefoa

f:know

s

foaf:Person

rdf:ty

pe

Martinfoaf:name

http:/.../martige/

foaf:homepage

foaf:knows

INF3580 :: Spring 2010 Lecture 13 :: 11th May 40 / 42

Page 218: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Summary

Allows to “hide” an RDF graph in an XHTML document

XHTML processor can ignore RDFaRDFa processor can extract RDF graph

Treat links and text as subjects/objects and literals

Many, many more details!

Specification hardly less complicated than RDF/XMLSee spec. at http://www.w3.org/TR/rdfa-syntax/

Nothing you couldn’t do with a LINK and an RDF file

Can be convenient to have information in one place

INF3580 :: Spring 2010 Lecture 13 :: 11th May 41 / 42

Page 219: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Summary

Allows to “hide” an RDF graph in an XHTML document

XHTML processor can ignore RDFa

RDFa processor can extract RDF graph

Treat links and text as subjects/objects and literals

Many, many more details!

Specification hardly less complicated than RDF/XMLSee spec. at http://www.w3.org/TR/rdfa-syntax/

Nothing you couldn’t do with a LINK and an RDF file

Can be convenient to have information in one place

INF3580 :: Spring 2010 Lecture 13 :: 11th May 41 / 42

Page 220: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Summary

Allows to “hide” an RDF graph in an XHTML document

XHTML processor can ignore RDFaRDFa processor can extract RDF graph

Treat links and text as subjects/objects and literals

Many, many more details!

Specification hardly less complicated than RDF/XMLSee spec. at http://www.w3.org/TR/rdfa-syntax/

Nothing you couldn’t do with a LINK and an RDF file

Can be convenient to have information in one place

INF3580 :: Spring 2010 Lecture 13 :: 11th May 41 / 42

Page 221: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Summary

Allows to “hide” an RDF graph in an XHTML document

XHTML processor can ignore RDFaRDFa processor can extract RDF graph

Treat links and text as subjects/objects and literals

Many, many more details!

Specification hardly less complicated than RDF/XMLSee spec. at http://www.w3.org/TR/rdfa-syntax/

Nothing you couldn’t do with a LINK and an RDF file

Can be convenient to have information in one place

INF3580 :: Spring 2010 Lecture 13 :: 11th May 41 / 42

Page 222: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Summary

Allows to “hide” an RDF graph in an XHTML document

XHTML processor can ignore RDFaRDFa processor can extract RDF graph

Treat links and text as subjects/objects and literals

Many, many more details!

Specification hardly less complicated than RDF/XMLSee spec. at http://www.w3.org/TR/rdfa-syntax/

Nothing you couldn’t do with a LINK and an RDF file

Can be convenient to have information in one place

INF3580 :: Spring 2010 Lecture 13 :: 11th May 41 / 42

Page 223: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Summary

Allows to “hide” an RDF graph in an XHTML document

XHTML processor can ignore RDFaRDFa processor can extract RDF graph

Treat links and text as subjects/objects and literals

Many, many more details!

Specification hardly less complicated than RDF/XML

See spec. at http://www.w3.org/TR/rdfa-syntax/

Nothing you couldn’t do with a LINK and an RDF file

Can be convenient to have information in one place

INF3580 :: Spring 2010 Lecture 13 :: 11th May 41 / 42

Page 224: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Summary

Allows to “hide” an RDF graph in an XHTML document

XHTML processor can ignore RDFaRDFa processor can extract RDF graph

Treat links and text as subjects/objects and literals

Many, many more details!

Specification hardly less complicated than RDF/XMLSee spec. at http://www.w3.org/TR/rdfa-syntax/

Nothing you couldn’t do with a LINK and an RDF file

Can be convenient to have information in one place

INF3580 :: Spring 2010 Lecture 13 :: 11th May 41 / 42

Page 225: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Summary

Allows to “hide” an RDF graph in an XHTML document

XHTML processor can ignore RDFaRDFa processor can extract RDF graph

Treat links and text as subjects/objects and literals

Many, many more details!

Specification hardly less complicated than RDF/XMLSee spec. at http://www.w3.org/TR/rdfa-syntax/

Nothing you couldn’t do with a LINK and an RDF file

Can be convenient to have information in one place

INF3580 :: Spring 2010 Lecture 13 :: 11th May 41 / 42

Page 226: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

RDFa Summary

Allows to “hide” an RDF graph in an XHTML document

XHTML processor can ignore RDFaRDFa processor can extract RDF graph

Treat links and text as subjects/objects and literals

Many, many more details!

Specification hardly less complicated than RDF/XMLSee spec. at http://www.w3.org/TR/rdfa-syntax/

Nothing you couldn’t do with a LINK and an RDF file

Can be convenient to have information in one place

INF3580 :: Spring 2010 Lecture 13 :: 11th May 41 / 42

Page 227: INF3580 { Semantic Technologies { Spring 2010 · Introduction RDF on the Web RDF data exists in many forms: In RDF les, downloadable with HTTP, FTP, etc. FOAF pro les data les from

RDFa

Next Lecture

How to publish a relational DB as RDF with D2R

Maybe Ontology-based Data Access

INF3580 :: Spring 2010 Lecture 13 :: 11th May 42 / 42