150 likes | 340 Views
Web Ontology Language (OWL) and protégé. Lecture # 13 Faculty of Computer Science, IBA. Reasoning. RDF and OWL based on DL(description logic). With predicate logic more complex logic do not have proof therefore subset of predicate logic is being used called DL (have proof).
E N D
Web Ontology Language (OWL)and protégé Lecture # 13 Faculty of Computer Science, IBA
Reasoning • RDF and OWL based on DL(description logic). • With predicate logic more complex logic do not have proof therefore subset of predicate logic is being used called DL (have proof). • Existence of proof systems, helps to make logical consequences that can provide explanation to answers. Quratulain
Example: Family Relationship • Infer relationships • Mother(X,Y) -> parent(X,Y) • Father(X,Y) -> parent(X,Y) Base predicate Mother(X,Y) Father(X,Y) Male(X) Female(X) Quratulain
Example • Male(X), parent(X,Y), parent(P,Y), notsame(X,Y) brother(X,Y) • Brother(X,P), parent(P,Y) grandmother(X,Y) Quratulain
Reasoner • Provide two services: • Classification (whether class is subclass of a given class or not) • Consistency checking Quratulain
Necessary and Sufficient conditions • A class only with necessary condition called primitive class. [under superclass header in Protege] • A class that has at least one set of necessary and sufficient condition are called defined class.[equivalent class in Protege] • With necessary condition alone, we cannot say that “if something fulfils these conditions then it must be a member of this class”. Quratulain
Automated Classification Protege • Select Reasoner either FaCT++ or HermiT • Then select start Reasoner • Now see inferred classes provided Reasoner (subclass and superclass relationship) • Reasoner used conditions for inferencing . Quratulain
Example: FamilyRelationships Quratulain
Example: FamilyRelationships • Now developed ontology and define each concept. • E.g Person and ((hasSibling some Person) and (hasSex value maleSex)) brother Person and (hasChild some (Person and (hasChild some Person))) grandParent Person and ((hasParent some Person) and (hasSex value femaleSex))daughter hasSex value maleSexmale Quratulain
Inferred class Hierarchy Quratulain
Explanation of Reasoning The condition define for offspring is also part of condition define for son. Therefore son should be subclass of offSpring. See explanation about other inference in protégé. Quratulain
Owl other properties • Functional properties • Symmetric properties • Transitive properties Quratulain
Functional Properties • For a given individual, there can be at most one individual that is related to the individual via property. • E.g. Saad---- hasBirthMother---- Salma Saad ---- hasBirthMother ---- Sana Since it is functional property therefore implies that Salma and Sana are same individual. • Inverse functional property • Means inverse property is functional. • E.g. Salma----- isBirthMotherOf ----- Saad Quratulain
Symmetric properties • If property relate individual x to individual y and also y to x then it symmetric. • E.g. Kashif ----- hasSibling ----- Faisal Similarly Faisal ----- hasSibling ----- Kashif Note: same property use as inverse property (hasSbling). Quratulain
Transitive property • If property relate individual X to individual Y and Y to Z then it implies that property relate X to Z. • E.g. hasAncestor Asad ---- hasAncestor ---- Saad ---- hasAncestor ---- Fahad implies that Asad--- hasAncestor ---- Fahad Quratulain