A First Course in RDF and RDFS (Resource Description Framework and Resource Description Framework Schema)

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

1 comments

Comments 1 - 1 of 1 previous next Post a comment

  • + mark.birbeck Mark Birbeck 2 years ago
    It’s a shame that SlideShare doesn’t use the speaker notes for the transcript; instead it just puts the text from the slide in there. If anyone is interested in this topic you might want to download the presentation, and then you’ll get the detailed notes.
Post a comment
Embed Video
Edit your comment Cancel

10 Favorites

A First Course in RDF and RDFS (Resource Description Framework and Resource Description Framework Schema) - Presentation Transcript

  1. Introduction to RDF and RDFS Mark Birbeck http://webBackplane.com/mark-birbeck
  2. RDF...a four letter word
  3. RDF/XML is the real villain
  4. The promise of XML
  5. RDF Documents
    • Primer
    • Concepts
    • Syntax
    • Semantics
    • Vocabulary
    • Test cases
  6. This tutorial
    • Concepts
    • Transporting RDF
    • Storing
    • Some sources of RDF data
    • Querying
    • Defining vocabularies
  7. Metadata: data about data
  8. Getting data from the web is easy...getting metadata is hard
  9.  
  10. XML was supposed to give us this information
    • <music genre=&quot;classical&quot;>
    • <title>
    • The Well-tempered Clavier
    • </title>
    • <composer>J. S. Bach</composer>
    • </music>
  11. Why has XML not delivered?
    • <document type=&quot;classical music&quot;>
    • <name>
    • The Well-tempered Clavier
    • </name>
    • <author>J. S. Bach</author>
    • </document>
  12. We want to say: &quot;give me everything created by J. S. Bach&quot;
  13. To achieve that we need to agree how to say ' created by ' in any document
  14. Dublin, Ohio Photo by Sleestak66: http://www.flickr.com/people/kesselring/
  15.  
  16. DC.Creator = &quot;J. S. Bach&quot;
  17. DC.Title = &quot;The Well Tempered Clavier&quot;
    • abstract
    • audience
    • contributor
    • creator
    • description
    • publisher
    • rightsHolder
    • ...and many more
    Often called a vocabulary or taxonomy
    • <html>
    • <head>
    • <title>
    • Bach: The Well Tempered Clavier
    • </title>
    • <meta name=&quot; DC.Title &quot;
    • content=&quot;The Well Tempered Clavier&quot; />
    • <meta name=&quot; DC.Creator &quot;
    • content=&quot;J. S. Bach&quot; />
    • </head>
    • <body>
    • ...
    • </body>
    • </html>
    • <html>
    • <head>
    • <title>
    • An introduction to RDF
    • </title>
    • <meta name=&quot; title &quot;
    • content=&quot;Introduction to RDF&quot; />
    • <meta name=&quot; author &quot;
    • content=&quot;Mark Birbeck&quot; />
    • </head>
    • <body>
    • ...
    • </body>
    • </html>
    • <html>
    • <head>
    • <title>
    • An introduction to RDF
    • </title>
    • <meta name=&quot; DC.Title &quot;
    • content=&quot;Introduction to RDF&quot; />
    • <meta name=&quot; DC.Creator &quot;
    • content=&quot;Mark Birbeck&quot; />
    • </head>
    • <body>
    • ...
    • </body>
    • </html>
    • <music genre=&quot;classical&quot;>
    • <title>
    • The Well-tempered Clavier
    • </title>
    • <composer>J. S. Bach</composer>
    • </music>
    • <document type=&quot;classical music&quot;>
    • <name>
    • The Well-tempered Clavier
    • </name>
    • <author>J. S. Bach</author>
    • </document>
    • <music genre=&quot;classical&quot;>
    • <title>
    • The Well-tempered Clavier
    • </title>
    • < dc:creator >J. S. Bach</ dc:creator >
    • </music>
    • <document type=&quot;classical music&quot;>
    • <name>
    • The Well-tempered Clavier
    • </name>
    • < dc:creator >J. S. Bach</ dc:creator >
    • </document>
  18. Recap
    • XML doesn't help
    • Having unique identifiers does
  19. Unique identifiers are a key concept in RDF
  20. DC.Creator DC.Title
  21. http://purl.org/dc/terms/ creator http://purl.org/dc/terms/ title
  22. Resource Description Framework
  23. http://purl.org/dc/terms/ creator http://purl.org/dc/terms/ title
  24.  
  25.  
  26.  
  27. Recap
    • Resources and unique identifiers are fundamental for RDF:
    • http://purl.org/dc/terms/creator http://purl.org/dc/terms/title http://dbpedia.org/resource/Johann_Sebastian_Bach http://dbpedia.org/resource/Well-Tempered_Clavier
  28. Triples
    • <html>
    • <head>
    • <title>
    • Bach: The Well Tempered Clavier
    • </title>
    • <meta name=&quot; DC.Title &quot;
    • content=&quot;The Well Tempered Clavier&quot; />
    • <meta name=&quot; DC.Creator &quot;
    • content=&quot;J. S. Bach&quot; />
    • </head>
    • <body>
    • ...
    • </body>
    • </html>
  29.  
    • var piece = { title : &quot;The Well-tempered Clavier&quot;, creator : &quot;J. S. Bach&quot; };
    • Triples are sometimes called statements:
    • J. S. Bach composed &quot;The Well Tempered Clavier&quot;. J. S. Bach was born on 21 st March, 1685. J. S. Bach died on 28 th July, 1750.
  30. The parts of a triple
  31. Subject A URI: http://dbpedia.org/resource/Johann_Sebastian_Bach
  32. Predicate
    • Also a URI:
      • http://purl.org/dc/terms/creator
  33. Object
    • Literal or URI:
      • &quot;Johann Sebastian Bach&quot; http://dbpedia.org/resource/Well-Tempered_Clavier
  34. Plain literals
    • Essentially strings:
      • &quot;Johann Sebastian Bach&quot; &quot;The Well-Tempered Clavier&quot;
  35. Plain literals
    • But can contain language information:
      • &quot;Johann Sebastian Bach&quot;@en &quot;Бах, Иоганн Себастьян&quot;@ru &quot;The Well-Tempered Clavier&quot;@en &quot;Wohltemperiertes Klavie&quot;@de
  36. Typed literals
    • And a datatype:
      • &quot;1685-03-21&quot;^^xsd:date &quot;1750-07-28&quot;^^xsd:date
  37. XML literals &quot;H<sub>2</sub>O&quot;^^rdf:XMLLiteral
  38. Recap
    • J. S. Bach composed &quot;The Well Tempered Clavier&quot;. J. S. Bach was born on 21 st March, 1685 J. S. Bach died on 28 th July, 1750.
  39. Recap
    • J. S. Bach composed &quot;The Well Tempered Clavier&quot;. J. S. Bach was born on 21 st March, 1685 J. S. Bach died on 28 th July, 1750.
    <http://dbpedia.org/resource/Johann_Sebastian_Bach> dc:creator <http://dbpedia.org/resource/Well-Tempered_Clavier> . <http://dbpedia.org/resource/Well-Tempered_Clavier> dc:title &quot;The Well Tempered Clavier&quot;@en . <http://dbpedia.org/resource/Well-Tempered_Clavier> dc:title &quot;Wohltemperiertes Klavie&quot;@de .
  40. Recap
    • J. S. Bach composed &quot;The Well Tempered Clavier&quot;. J. S. Bach was born on 21 st March, 1685 J. S. Bach died on 28 th July, 1750.
    <http://dbpedia.org/resource/Johann_Sebastian_Bach> p:dateOfBirth &quot;1685-03-21&quot;^^xsd:date .
  41. Recap
    • J. S. Bach composed &quot;The Well Tempered Clavier&quot;. J. S. Bach was born on 21 st March, 1685 J. S. Bach died on 28 th July, 1750.
    <http://dbpedia.org/resource/Johann_Sebastian_Bach> p:dateOfDeath &quot;1750-07-28&quot;^^xsd:date .
  42. Graphs
  43. The Well Tempered Clavier Wohltemperiertes Klavie dc:title dc:title 1685-03-21 1750-07-28 p:dateOfBirth p:dateOfDeath dc:creator
  44. rdf:type
  45. <http://dbpedia.org/resource/Johann_Sebastian_Bach> rdf:type yago:Composer . <http://dbpedia.org/resource/Johann_Sebastian_Bach> rdf:type foaf:Person .
  46. Lists
  47. Performed by Performed by dc:creator Performed by dc:creator rdf:Bag rdf:type
  48. Blank nodes
  49. Representing RDF
  50. RDF/XML <rdf:RDF> <yago:Composer109947232 rdf:about=&quot;http://[...]/Johann_Sebastian_Bach&quot; > <p:birthPlace rdf:resource=&quot;http://[...]/Eisenach&quot; /> <p:dateOfDeath rdf:datatype=&quot;http://[...]/XMLSchema#date&quot; >1750-07-28</p:dateOfDeath> </yago:Composer109947232> </rdf:RDF>
  51. Turtle dbpedia:Johann_Sebastian_Bach p:dateOfBirth &quot;1685-03-21&quot;^^xsd:date; p:dateOfDeath &quot;1750-07-28&quot;^^xsd:date; p:death &quot;1750-07-28&quot;^^xsd:date; p:deathPlace dbpedia:Leipzig; a yago:Composer, foaf:Person .
  52. RDFa
    • <html>
    • <head>
    • <title>
    • Johann Sebastian Bach
    • </title>
    • < link rel =&quot;dc:creator&quot;
    • href =&quot;http://[...]/Well-Tempered_Clavier&quot; />
    • <meta property=&quot;p:dateOfBirth&quot;
    • content =&quot;1685-03-21&quot; datatype =&quot;xsd:date&quot; />
    • </head>
    • <body>
    • ...
    • </body>
    • </html>
  53. RDFa
    • <html>
    • <head>
    • ...
    • </head>
    • <body>
    • <span property=&quot;foaf:name&quot;>
    • Johann Sebastian Bach
    • </span>
    • was born in
    • <span property=&quot;p:dateOfBirth&quot;
    • content=&quot;1685-03-21&quot; datatype=&quot;xsd:date&quot;
    • > 1685 </span> ,
    • in <span rel=&quot;p:placeOfBirth&quot;
    • resource=&quot; [dbp:Eisenach] &quot;> Eisenach </span>.
    • </body>
    • </html>
  54. Storing RDF
  55. Sources of RDF
  56. Querying RDF
    • SELECT ?composer WHERE { ?composer rdf:type yago:Composer }
    • SELECT ?composer WHERE { ?composer rdf:type yago:Composer }
    • <http://dbpedia.org/resource/Johann_Sebastian_Bach>
    • <http://dbpedia.org/resource/Ludwig_van_Beethoven>
    • SELECT ?piece WHERE { dbpr: Johann_Sebastian_Bach dc:creator ?piece }
    • <http://dbpedia.org/resource/Well-Tempered_Clavier>
    • <http://dbpedia.org/resource/Cello_Suites_%28Bach%29>
  57. Creating vocabularies
  58. Classes
  59. Composer Musician Is a type of Artist Is a type of Creator Is a type of
    • yago:Composer a rdfs:Class .
    • yago:Composer a rdfs:Class .
    • yago:Composer rdfs:subClassOf yago:Musician .
    • yago:Musician rdfs:subClassOf yago:Artist .
    • yago:Artist rdfs:subClassOf yago:Creator .
    • yago:Composer a rdfs:Class .
    • yago:Composer rdfs:subClassOf yago:Musician .
    • yago:Musician rdfs:subClassOf yago:Artist .
    • yago:Artist rdfs:subClassOf yago:Creator .
    • dbpedia:Johann_Sebastian_Bach a yago:Composer , foaf:Person .
    • SELECT ?composer WHERE { ?composer rdf:type yago:Composer }
    • <http://dbpedia.org/resource/Johann_Sebastian_Bach>
    • <http://dbpedia.org/resource/Ludwig_van_Beethoven>
    • SELECT ?s WHERE { ?s rdf:type yago:Artist }
    • <http://dbpedia.org/resource/Johann_Sebastian_Bach>
    • <http://dbpedia.org/resource/Ludwig_van_Beethoven>
  60. Properties
    • foaf:surname a rdfs:Property .
    • foaf:surname a rdfs:Property .
    • foaf:surname rdfs:Range rdfs:Literal .
    • foaf:surname a rdfs:Property .
    • foaf:surname rdfs:Range rdfs:Literal .
    • foaf:surname rdfs:Domain foaf:Person .
  61. Validation v. inference
    • foaf:surname a rdfs:Property .
    • foaf:surname rdfs:Range rdfs:Literal .
    • foaf:surname rdfs:Domain foaf:Person .
    • dbpedia:Johann_Sebastian_Bach foaf:surname &quot;Bach&quot; .
    dbpedia:Johann_Sebastian_Bach a foaf:Person .
    • xyz:composedBy a rdfs:Property .
    • xyz:composedBy rdfs:Range yago:Composer .
    • xyz:composedBy rdfs:Domain yago:Piece .
    • dbp:Cello_Suites_%28Bach%29 xyz:composedBy dbp:Johann_Sebastian_Bach .
    dbp:Johann_Sebastian_Bach a yago:Composer .
    • xyz:composedBy a rdfs:Property .
    • xyz:composedBy rdfs:Range yago:Composer .
    • xyz:composedBy rdfs:Domain yago:Piece .
    • xyz:composedBy rdfs :subPropertyOf dc:creator .
  62. OWL
  63. Conclusion
  64. References
    • RDF Primer: http://www.w3.org/TR/rdf-primer/
    • RDF Schema: http://www.w3.org/TR/rdf-schema/
    • OWL: http://www.w3.org/2004/OWL/

+ Mark BirbeckMark Birbeck, 2 years ago

custom

3016 views, 10 favs, 3 embeds more stats

This tutorial was given at SemTech 2008, on May 19t more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 3016
    • 2981 on SlideShare
    • 35 from embeds
  • Comments 1
  • Favorites 10
  • Downloads 132
Most viewed embeds
  • 27 views on http://adagenor.blogspot.com
  • 7 views on http://e-reality-database.blogspot.com
  • 1 views on http://e-reality-knowledge.blogspot.com

more

All embeds
  • 27 views on http://adagenor.blogspot.com
  • 7 views on http://e-reality-database.blogspot.com
  • 1 views on http://e-reality-knowledge.blogspot.com

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories