the semantic desktop, sparql and you! - fosdem 2010

27
RDF "Bubble web"© CC BY-NC-SA Paul Hocksenar / Verbin inc Providing Genius.

Upload: codethink-limited

Post on 04-Dec-2014

669 views

Category:

Technology


0 download

DESCRIPTION

A brief introduction to RDF and sparql for desktop hackers. Orginally given at FOSDEM 2010

TRANSCRIPT

Page 1: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

RDF

"Bubble web"© CC BY-NC-SA Paul Hocksenar / Verbin inc

ProvidingGenius.

Page 2: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

johnownerOf

rover

- an RDF statement

Page 3: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

johnownerOf

rover

Subject Predicate Object

Page 4: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

<john> <ownerOf> <rover>.

Page 5: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

<john> <ownerOf> <rover>.

Reference

Page 6: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

<john> <type> <Person>.<rover> <type> <Dog>.<john> <hasName> "John Doe".<rover> <hasName> "Rover".<john> <ownerOf> <rover>.

Page 7: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

<john> <type> <Person>.<rover> <type> <Dog>.<john> <hasName> "John Doe".<rover> <hasName> "Rover".<john> <ownerOf> <rover>.

ClassLiteral

Instance

Page 8: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

"John Doe" <Person>

<john>

<type>

<ownerOf><rover>

<hasName> <type>

"Rover" <Dog>

<hasName>

Page 9: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

<http://example.org/example#john> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/example#Person>.

Page 10: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

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

example:john rdf:type example:Person .

<http://example.org/example#john> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/example#Person>.

Or:

Page 11: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

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

example:john rdf:type example:Person .

<http://example.org/example#john> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/example#Person>.

Or:

@prefix example: <http://example.org/example#>.

example:john a example:Person .

Or:

Page 12: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

@prefix example: <http://example.org/example#>.

example:john a example:Person ; example:hasName "John Doe" ; example:ownerOf example:rover> .

example:rover a example:Dog ; example:hasName "Rover" .

Page 13: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.ProvidingGenius.

"Shards" © 2009 CC BY-SA Martin Latter

Page 14: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

People have namesPeople can own some kinds of thingsPets can be ownedA dog is an petDogs can have names

Ontology!

Page 15: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

People have namesPeople can own some kinds of thingsPets can be ownedA dog is an petDogs can have names

Ontology!

Page 16: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

example:Nameable a rdfs:Class.

example:hasName a rdf:Property; rdfs:domain example:Nameable; range string .

Ontology! - Names

Page 17: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

People have namesPeople can own some kinds of thingsPets can be ownedA dog is an petDogs can have names

Ontology!

Page 18: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

example:Ownable a rdfs:Class .

example:ownerOf a rdf:Property; rdfs:domain example:Person; range example:Ownable .

example:Pet a rfds:Class ; rdfs:subClassOf example:Ownable ; rdfs:subClassOf example:Nameable .

Ontology! - Ownership

Page 19: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

example:Dog a rdfs:Class ; rdfs:subClassOf example:Pet .

example:Person a rdfs:Class ; rdfs:subClassOf example:Nameable .

Ontology! - Dogs and People

Page 20: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

"sparkling colored star" © CC BY christmasstockimages.com

ProvidingGenius.

Page 21: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

"John Doe" example:Person

example:john>

a

example:ownerOf

example:rover

example:hasName a

"Rover" example:Dog

example:hasName

Page 22: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

"John Doe" example:Person

example:john>

a

example:ownerOf

example:rover

example:hasName a

"Rover" example:Dog

example:hasName

Page 23: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

?name example:Person

?person

a

example:ownerOf

?pet

a

example:Dog

example:hasName

Page 24: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

?person a example:Person ; example:hasName ?name ; example:ownerOf ?pet .

?pet a example:Dog .

Page 25: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

?person a example:Person ; example:hasName ?name ; example:ownerOf ?pet .

?pet a example:Dog .

SELECT ?nameWHERE {

}

Page 26: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

?person a example:Person ; example:hasName ?name ; example:ownerOf ?pet .

?pet a example:Dog .

SELECT ?nameWHERE {

}

-> "John Doe"

Page 27: The Semantic Desktop, SPARQL and You! - FOSDEM 2010

ProvidingGenius.

All things RDF and SPARQL:

http://www.w3.org/RDF