130 likes | 267 Views
OWL & Protégé. ARIN – KR Practical 2. Suresh Manandhar ; Dimitar Kazakov . Lets build a family ontology. S1: Each person is either Male or Female S2: You cannot be both Male and Female. UnionOf imposes stronger constraint compared to using subClassOf. Instructions.
E N D
OWL & Protégé ARIN – KR Practical 2 Suresh Manandhar; Dimitar Kazakov
Lets build a family ontology S1: Each person is either Male or Female S2: You cannot be both Male and Female • UnionOfimposes stronger constraint compared to using subClassOf
Instructions • Start Protégé and add the following knowledge to a new DB on families:
S3: Parent is Person with a Child • equivalentClassimposes stronger constraint compared to using subClassOf
S4: Mother is Parent and Female. Father is Parent and Male.
S5: A person is either Dead or Alive. S6: You cannot be Dead and Alive at the same time.
S7: hasParent and hasChild are inverses of each other. • Remember from MFCS: • (x,y) ∈ R implies (y,x) ∈ R-1 • Thus: • (x,y) ∈ hasParentimplies (y,x) ∈ hasChild
S9: My Parents are my Ancestors and my Parent’s Ancestors are my Ancestors too. equivalently S9: Ancestor is a transitive relation over Parent. • The first statement states: “Every parent is an ancestor”
S10: A childless person does not have any children. S11: A big family person is someone with at least 4 children.
S12: Each person has a first name and a last name (both strings) .
Individuals • John Smith is a male person • Thomas Smith and Jack Smith are male persons • Jenny Smith, Rosie Smith and Jessica Smith are female persons • John Smith has the following children: Thomas Smith, Rosie Smith, Jessica Smith and Jack Smith • Jenny Smith has the following children: Thomas Smith, Rosie Smith, Jessica Smith and Jack Smith
Still hungry for work? • Revisit the Protégé tutorial used in the lectures: http://130.88.198.11/tutorials/protegeowltutorial/resources/ProtegeOWLTutorialP3_v1_0.pdf • …and compare your work with the snapshots of the pizza database mypizza[1-5].* in /n/course/arin/2013/ Well done!