Vocabulary Documentation

Part of Semantic Web Tutorial

These slides: http://www.w3.org/2003/Talks/0520-www-tf1-b2-vocdoc/

Documenting Classes and Properties

Standard Terms

Informal Documentation

  rdfs:comment """The class of animals designated 
               Canis familiaris (domestic dog).  This
               includes all the dog breeds, but
               not wolves.""";
  rdfs:label "Canis familiaris";
  rdfs:seeAlso <http://www.agrobiologicals.com/glossary/G3089.htm>.


Class equivalence

Cardinality: many-to-one

Cardinality: one-to-many

Different and Disjoint

Class Hierarchies

:Man s:subclassOf :Human .
:YoungMan s:subclassOf :Man .
  owl:subClassOf :CanisFamiliaris;   # Dingos are Dogs!

:CanisRufus a owl:Class;
  owl:subClassOf :Canis;
  owl:disjointFrom :CanisFamiliaris;     # Wolves are not Dogs!
  rdfs:label "Red Wolf";
  rdfs:comment """As of 1999 there were about 300 individuals 
               of this endangered species""";
  rdfs:seeAlso <http://druidry.org/obod/endangered/redwolf.html>.

Domain, Range

:father s:domain :Human; s:range :Man.
:Sara :father :Alan.
:Sara a :Human.  :Alan a :Man.