The Semantic Desktop, SPARQL and You! - FOSDEM 2010

479
-1

Published on

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

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
479
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
14
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

The Semantic Desktop, SPARQL and You! - FOSDEM 2010

  1. 1. Providing Genius. RDF "Bubble web"© CC BY-NC-SA Paul Hocksenar / Verbin inc
  2. 2. Providing Genius. ownerOf john rover - an RDF statement
  3. 3. Providing Genius. ownerOf john rover Subject Predicate Object
  4. 4. Providing Genius. <john> <ownerOf> <rover>.
  5. 5. Providing Genius. <john> <ownerOf> <rover>. Reference
  6. 6. Providing Genius. <john> <type> <Person>. <rover> <type> <Dog>. <john> <hasName> "John Doe". <rover> <hasName> "Rover". <john> <ownerOf> <rover>.
  7. 7. Providing Genius. Class Literal <john> <type> <Person>. <rover> <type> <Dog>. <john> <hasName> "John Doe". <rover> <hasName> "Rover". <john> <ownerOf> <rover>. Instance
  8. 8. Providing Genius. "John Doe" <Person> <hasName> <type> <ownerOf> <john> <rover> <hasName> <type> "Rover" <Dog>
  9. 9. Providing Genius. <http://example.org/example#john> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/example#Person>.
  10. 10. Providing Genius. <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#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> example:john rdf:type example:Person .
  11. 11. Providing Genius. <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#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> example:john rdf:type example:Person . Or: @prefix example: <http://example.org/example#>. example:john a example:Person .
  12. 12. Providing Genius. @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" .
  13. 13. Providing Genius. "Shards" © 2009 CC BY-SA Martin Latter
  14. 14. Providing Genius. Ontology! People have names People can own some kinds of things Pets can be owned A dog is an pet Dogs can have names
  15. 15. Providing Genius. Ontology! People have names People can own some kinds of things Pets can be owned A dog is an pet Dogs can have names
  16. 16. Providing Genius. Ontology! - Names example:Nameable a rdfs:Class. example:hasName a rdf:Property; rdfs:domain example:Nameable; range string .
  17. 17. Providing Genius. Ontology! People have names People can own some kinds of things Pets can be owned A dog is an pet Dogs can have names
  18. 18. Providing Genius. Ontology! - Ownership 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 .
  19. 19. Providing Genius. Ontology! - Dogs and People example:Dog a rdfs:Class ; rdfs:subClassOf example:Pet . example:Person a rdfs:Class ; rdfs:subClassOf example:Nameable .
  20. 20. Providing Genius. "sparkling colored star" © CC BY christmasstockimages.com
  21. 21. Providing Genius. "John Doe" example:Person example:hasName a example:ownerOf example:john> example:rover example:hasName a "Rover" example:Dog
  22. 22. Providing Genius. "John Doe" example:Person example:hasName a example:ownerOf example:john> example:rover example:hasName a "Rover" example:Dog
  23. 23. Providing Genius. ?name example:Person example:hasName a example:ownerOf ?person ?pet a example:Dog
  24. 24. Providing Genius. ?person a example:Person ; example:hasName ?name ; example:ownerOf ?pet . ?pet a example:Dog .
  25. 25. Providing Genius. SELECT ?name WHERE { ?person a example:Person ; example:hasName ?name ; example:ownerOf ?pet . ?pet a example:Dog . }
  26. 26. Providing Genius. SELECT ?name WHERE { ?person a example:Person ; example:hasName ?name ; example:ownerOf ?pet . ?pet a example:Dog . } -> "John Doe"
  27. 27. Providing Genius. All things RDF and SPARQL: http://www.w3.org/RDF
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×