RDFS In A Nutshell V1

8,369 views
8,551 views

Published on

Tutorial on RDFS (version 1)

Published in: Technology, Education
0 Comments
13 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
8,369
On SlideShare
0
From Embeds
0
Number of Embeds
1,203
Actions
Shares
0
Downloads
350
Comments
0
Likes
13
Embeds 0
No embeds

No notes for slide

RDFS In A Nutshell V1

  1. 1. in a nutshell RDFS fabien, gandon, inria
  2. 2. R D F <ul><li>is a triple model i.e. every piece of knowledge is broken down into </li></ul><ul><li>( subject , predicate , object ) </li></ul>
  3. 3. RDF S <ul><li>stands for R D F Schema </li></ul>
  4. 4. RDF S <ul><li>provides primitives to write lightweight schemas for R D F triples </li></ul>
  5. 5. long way <ul><li>a little drop of semantics goes a </li></ul>
  6. 6. RDF S <ul><li>provides primitives to... </li></ul><ul><li>... define the vocabulary used in triples </li></ul><ul><li>... define elementary inferences </li></ul>
  7. 7. RDF S <ul><li>to define classes of resources and organize their hierarchy </li></ul>
  8. 8. DOCUMENT REPORT
  9. 9. RDF S <ul><li>to define relations between resources and organize their hierarchy </li></ul>Tom Doc13 AUTHOR
  10. 10. CREATOR AUTHOR
  11. 11. RDF S <ul><li>allows for multiple inheritance for classes and properties </li></ul>
  12. 12. PERSON MAN MALE
  13. 13. RDFS <ul><li>relations have a signature </li></ul>DOMAIN RANGE
  14. 14. RDFS <ul><li>relations have a signature </li></ul><ul><li>... the domain is the type of the resource the relation starts from. </li></ul><ul><li>... the range is the type of the resource the relation ends to. </li></ul>
  15. 15. RDFS <ul><li>relations with several... </li></ul><ul><li>... domains mean all domains apply. </li></ul><ul><li>... ranges mean all ranges apply. </li></ul><ul><li>Ranges and domains are optional </li></ul>
  16. 16. but looks like object programming,
  17. 17. properties <ul><li>are first class citizens, </li></ul><ul><li>they are not defined inside classes, </li></ul><ul><li>they have their own hierarchy. </li></ul>
  18. 18. no overwriting <ul><li>in particular a property can not be refined for sub classes of its range or domain. </li></ul>
  19. 19. multi-instantiation <ul><li>a resource can have several types, </li></ul><ul><li>it can be the instance of several classes </li></ul><ul><li>like multiple lights, facets on a resource. </li></ul>
  20. 20. RDF S <ul><li>provides primitives to... </li></ul><ul><li>... give labels ... </li></ul><ul><li>... give comments ... </li></ul><ul><li>... for classes and properties </li></ul>
  21. 21. RDF... <ul><li>RDFS using the XML syntax for </li></ul>
  22. 22. <rdf:RDF xml:base=&quot;http://inria.fr/2005/humans.rdfs&quot; xmlns:rdf =&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:rdfs=&quot;http://www.w3.org/2000/01/rdf-schema#&quot; xmlns=&quot;http://www.w3.org/2000/01/rdf-schema#> < Class rdf:ID=&quot; Man &quot;> < subClassOf rdf:resource=&quot;# Person &quot;/> < subClassOf rdf:resource=&quot;# Male &quot;/> <label xml:lang=&quot;en&quot;>man</label> <comment xml:lang=&quot;en&quot;>a male person</comment> </Class>
  23. 23. <rdf: Property rdf:ID=&quot; hasMother &quot;> < subPropertyOf rdf:resource=&quot;# hasParent &quot;/> < range rdf:resource=&quot;# Female &quot;/> < domain rdf:resource=&quot;# Human &quot;/> <label xml:lang=&quot;en&quot;>has for mother</label> <comment xml:lang=&quot;en&quot;>a female parent</comment> </rdf:Property> </rdf:RDF>
  24. 24. RDF S <ul><li>semantics : standard inference rules to derive additional triples from known statements. </li></ul>
  25. 25. example of type propagation <ul><li>IF (c 2 , subClassOf , c 1 ) AND (x, type , c 2 ) THEN (x, type , c 1 ) </li></ul>IF (Man, subClassOf , Person) AND (Tom, type , Man) THEN (Tom, type , Person)
  26. 26. example of property propagation <ul><li>IF (p 2 , subPropertyOf , p 1 ) AND (x, p 2 , y) THEN (x, p 1 , y) </li></ul>IF (author, subPropertyOf , creator) AND (Tom, author, Report12) THEN (Tom, creator, Report12)
  27. 27. example of subClass transitivity <ul><li>IF (c 2 , subClassOf , c 1 ) AND (c 3 , subClassOf , c 2 ) THEN (c 3 , subClassOf , c 1 ) </li></ul>IF (Person, subClassOf , Animal) AND (Man, subClassOf , Person) THEN (Man, subClassOf , Animal)
  28. 28. example of subProp transitivity <ul><li>IF (p 2 , subPropertyOf , p 1 ) AND (p 3 , subPropertyOf , p 2 ) THEN (p 3 , subPropertyOf , p 1 ) </li></ul>IF (parent, subPropertyOf , ancestor) AND (father, subPropertyOf , parent) THEN (father, subPropertyOf , ancestor)
  29. 29. example of domain inference <ul><li>IF (p 1 , domain , c 1 ) AND (x, p 1 , y) THEN (x, type , c 1 ) </li></ul>IF (author, domain , Human) AND (Tom, author, Report12) THEN (Tom, type , Human)
  30. 30. example of range inference <ul><li>IF (p 1 , range , c 1 ) AND (x, p 1 , y) THEN (y, type , c 1 ) </li></ul>IF (author, range , Document) AND (Tom, author, Report12) THEN (Report, type , Document)
  31. 31. summary take-home message on RDF S
  32. 32. RDF Schema to... <ul><li>... define classes and relations of resources and organize their hierarchy </li></ul><ul><li>... define signatures of relations (domain, range) </li></ul><ul><li>... document them with labels and comments </li></ul><ul><li>... define associated inference rules </li></ul>
  33. 33. fabien, gandon

×