Chapter 4 Web Ontology Language: OWL Grigoris Antoniou Frank van Harmelen Augmented by Boontawee Suntisrivaraporn,

Slides:



Advertisements
Similar presentations
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
Advertisements

An Introduction to Description Logics
Of 27 lecture 7: owl - introduction. of 27 ece 627, winter ‘132 OWL a glimpse OWL – Web Ontology Language describes classes, properties and relations.
OWL TUTORIAL APT CSA 3003 OWL ANNOTATOR Charlie Abela CSAI Department.
Chapter 8: Web Ontology Language (OWL) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005.
Chapter 8: Web Ontology Language (OWL) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005.
Chapter 4 Web Ontology Language: OWL
From SHIQ and RDF to OWL: The Making of a Web Ontology Language
Chapter 4A Semantic Web Primer 1 Chapter 4 Web Ontology Language: OWL Grigoris Antoniou Frank van Harmelen.
Semantic Web Technologies Lecture # 2 Faculty of Computer Science, IBA.
OWL: Web Ontology Language
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
13 Dec. 2006CmpE 583 Fall 2006 OWL Lite- Property Char’s. 1 OWL Lite: Ch. 13- Property Characteristics Atilla ELÇİ.
Chapter 6 Understanding Each Other CSE 431 – Intelligent Agents.
Chapter 4 OWL Based on slides from Grigoris Antoniou and Frank van Harmelen.
OWL: Web Ontology Language
1 CSIT600f: Introduction to Semantic Web OWL Dickson K.W. Chiu PhD, SMIEEE Text: Antoniou & van Harmelen: A Semantic Web PrimerA Semantic Web Primer (Chapter.
Based on slides from Grigoris Antoniou and Frank van Harmelen
ΤΜΗΜΑ ΠΛΗΡΟΦΟΡΙΚΗΣ, ΑΠΘ ΜΕΤΑΠΤΥΧΙΑΚΟ ΠΡΟΓΡΑΜΜΑ ΣΠΟΥΔΩΝ Κατεύθυνση Πληροφοριακών Συστημάτων - 1ο Εξάμηνο Σημασιολογικός Ιστός lpis.csd.auth.gr/mtpx/sw/index.htm.
Logics for Data and Knowledge Representation
An Introduction to Description Logics. What Are Description Logics? A family of logic based Knowledge Representation formalisms –Descendants of semantic.
1 MASWS Multi-Agent Semantic Web Systems: OWL Stephen Potter, CISA, School of Informatics, University of Edinburgh, Edinburgh, UK.
Okech Odhiambo Faculty of Information Technology Strathmore University
Protege OWL Plugin Short Tutorial. OWL Usage The world wide web is a natural application area of ontologies, because ontologies could be used to describe.
8/11/2011 Web Ontology Language (OWL) Máster Universitario en Inteligencia Artificial Mikel Egaña Aranguren 3205 Facultad de Informática Universidad Politécnica.
OWL and SDD Dave Thau University of Kansas
A Z Approach in Validating ORA-SS Data Models Scott Uk-Jin Lee Jing Sun Gillian Dobbie Yuan Fang Li.
RDF and OWL Developing Semantic Web Services by H. Peter Alesso and Craig F. Smith CMPT 455/826 - Week 6, Day Sept-Dec 2009 – w6d21.
Building an Ontology of Semantic Web Techniques Utilizing RDF Schema and OWL 2.0 in Protégé 4.0 Presented by: Naveed Javed Nimat Umar Syed.
SQL Databases are a Moving Target Juan F. Sequeda – Syed Hamid Tirmizi –
OWL 2 in use. OWL 2 OWL 2 is a knowledge representation language, designed to formulate, exchange and reason with knowledge about a domain of interest.
OWL Representing Information Using the Web Ontology Language 1.
Michael Eckert1CS590SW: Web Ontology Language (OWL) Web Ontology Language (OWL) CS590SW: Semantic Web (Winter Quarter 2003) Presentation: Michael Eckert.
Ontology & OWL Semantic Web - Fall 2005 Computer Engineering Department Sharif University of Technology.
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 5: Web Ontology Language (II) Aidan Hogan
RQL: RDF Query language Jianguo Lu University of Windsor The following slides are from Grigoris Antoniou, Frank van Harmelen, “A Semantic Web Primer”
Chapter 4 OWL Based on slides from Grigoris Antoniou and Frank van Harmelen.
Chapter 4 OWL Based on slides from Grigoris Antoniou and Frank van Harmelen.
Artificial Intelligence 2004 Ontology
DAML+OIL: an Ontology Language for the Semantic Web.
OilEd An Introduction to OilEd Sean Bechhofer. Topics we will discuss Basic OilEd use –Defining Classes, Properties and Individuals in an Ontology –This.
Organization of the Lab Three meetings:  today: general introduction, first steps in Protégé OWL  November 19: second part of tutorial  December 3:
OWL & Protege Introduction Dongfang Xu Ph.D student, School of Information, University of Arizona Sept 10, 2015.
OWL Full Semantics -- RDF-Compatible Model-Theoretic Semantics by Peter F. Patel-Schneider, Patrick Hayes and Ian Horrocks W3C Recommendation, 2004
OWL Web Ontology Language Overview. The OWL Web Ontology Language is designed for use by applications that need to process the content of information.
Practical RDF Chapter 12. Ontologies: RDF Business Models Shelley Powers, O’Reilly SNU IDB Lab. Taikyoung Kim.
Chapter 4 OWL Based on slides from Grigoris Antoniou and Frank van Harmelen.
ece 627 intelligent web: ontology and beyond
OWL Representing Information Using the Web Ontology Language.
W3C’s (world wide web consortium) Semantic Web: - RDF and metadata markup efforts to represent data in a machine understandable form. DARPA started the.
Chapter 4 Web Ontology Language: OWL Grigoris Antoniou Frank van Harmelen Augmented by Boontawee Suntisrivaraporn,
Of 32 lecture 8: owl – language I. of 32 ece 627, winter ‘132 OWL XML/RDF syntax: header
ΑΝΑΠΑΡΑΣΤΑΣΗ ΓΝΩΣΗΣ ΣΤΟΝ ΠΑΓΚΟΣΜΙΟ ΙΣΤΟ OWL. RDF-RDFS Limitations Binary ground predicates Only subclass & subproperty hierarchy Domain and range definitions.
OWL Web Ontology Language Summary IHan HSIAO (Sharon)
Ccs.  Ontologies are used to capture knowledge about some domain of interest. ◦ An ontology describes the concepts in the domain and also the relationships.
Chapter 4 OWL Based on slides from Grigoris Antoniou and Frank van Harmelen.
Chapter Describing Individuals OWL Individuals ▫Ontological Primitive Layer  Mostly described with RDF ▫Instances of user-defined ontological.
OWL (Ontology Web Language and Applications) Maw-Sheng Horng Department of Mathematics and Information Education National Taipei University of Education.
Vincenzo Maltese, Fausto Giunchiglia University of Trento
Building Trustworthy Semantic Webs
Web Ontology Language: OWL
ece 720 intelligent web: ontology and beyond
Web Ontology Language: OWL
Service-Oriented Computing: Semantics, Processes, Agents
Chapter 4 Web Ontology Language: OWL
Chapter 4 Web Ontology Language: OWL
Based on slides from Grigoris Antoniou and Frank van Harmelen
ece 720 intelligent web: ontology and beyond
Based on slides from Grigoris Antoniou and Frank van Harmelen
Presentation transcript:

Chapter 4 Web Ontology Language: OWL Grigoris Antoniou Frank van Harmelen Augmented by Boontawee Suntisrivaraporn,

Lecture Outline 1.Basic Ideas of OWL 2.The OWL Language 3.Examples 4.The OWL Namespace 5.Future Extensions 1

Requirements for Ontology Languages Ontology languages allow users to write explicit, formal conceptualizations of domain models The main requirements are: – a well-defined syntax – a formal semantics – sufficient expressive power – convenience of expression – efficient reasoning support 2

Tradeoff between Expressive Power and Efficient Reasoning Support The richer the language is, the more inefficient the reasoning support becomes Sometimes it crosses the border of noncomputability We need a compromise: – A language supported by reasonably efficient reasoners – A language that can express large classes of ontologies and knowledge. 3

Reasoning About Knowledge in Ontology Languages Subclass relationship – C is said to be a subclass of D if every instance of C is also an instance of D Equivalence of classes – C and D are equivalent if one is a subclass of the other, and vice versa Class membership – Test if an individual x is an instance of a class C 4

Reasoning About Knowledge in Ontology Languages (2) Unsatisfiability of classes – C is unsatisfiable, i.e. equivalent to owl:Nothing, if it cannot be instantiated Consistency – Check if there is a (logical) error in the ontology – E.g. x is declared to be an instance of C and D, but C and D happen to be disjoint Classification – Construction of a complete class hierarchy from owl:Thing to owl:Nothing – Based on subclass relationship 5

Uses of Reasoning Reasoning support is important for – checking the overall consistency of the ontology and thus the modelled knowledge – checking for any local inconsistencies – checking for unintended relationships between classes – automatically classifying instances in classes Such reasoning services are valuable for – designing large ontologies, where multiple authors are involved – integrating and sharing ontologies from various sources 6

Reasoning Support for OWL Semantics is a prerequisite for reasoning support Formal semantics and reasoning support are usually provided by – mapping an ontology language to a known logical formalism – using automated reasoners that already exist for those formalisms OWL is (partially) mapped on a description logic, and makes use of reasoners such as FaCT and RACER Description logics are subsets of predicate logic for which efficient reasoning support is possible 7

Limitations of the Expressive Power of RDF Schema Local scope of properties – rdfs:range defines the range of a property (e.g. eats) for all classes – In RDF Schema we cannot declare range restrictions that apply to some classes only – E.g. we cannot say that cows eat only plants, while other animals may eat meat, too Similarly for rdfs:domain 8

Limitations of the Expressive Power of RDF Schema (2) Disjointness of classes – Sometimes we wish to say that classes are disjoint (e.g. Male and Female) Boolean combinations of classes – Sometimes we wish to build new classes by combining other classes using union, intersection, and complement – E.g. Person is the disjoint union of the classes Male and Female 9

Limitations of the Expressive Power of RDF Schema (3) Cardinality restrictions – E.g. a person has exactly two parents, a course is taught by at least one lecturer Special characteristics of properties – Transitive property (like “greater than”) – Unique property (like “has-mothor”) – A property is the inverse of another property (like “eats” and “is eaten by”) 10

Combining OWL with RDF Schema Ideally, OWL would extend RDF Schema – Consistent with the layered architecture of the Semantic Web But simply extending RDF Schema would work against obtaining expressive power and efficient reasoning – Combining RDF Schema with logic leads to uncontrollable computational properties 11

Three Species of OWL W3C’s Web Ontology Working Group defined OWL as three different sublanguages: – OWL Full – OWL DL – OWL Lite Each sublanguage geared toward fulfilling different aspects of requirements 12

OWL Full It uses all the OWL language primitives It allows the combination of these primitives in arbitrary ways with RDF and RDF Schema OWL Full is fully upward-compatible with RDF, both syntactically and semantically OWL Full is so powerful that it is undecidable – No complete (or efficient) reasoning support 13

OWL DL OWL DL (Description Logic) is a sublanguage of OWL Full that restricts application of the constructors from OWL and RDF – Application of OWL’s constructors to each other is disallowed – Therefore it corresponds to a well studied description logic OWL DL permits efficient reasoning support But we lose full compatibility with RDF: – Not every RDF document is a legal OWL DL document. – Every legal OWL DL document is a legal RDF document. 14

OWL Lite An even further restriction limits OWL DL to a subset of the language constructors – OWL Lite excludes enumerated classes, disjointness statements, and arbitrary cardinality. The advantage of this is a language that is easier to – grasp, for users – implement, for tool builders The disadvantage is restricted expressivity 15

Upward Compatibility between OWL Species Every legal OWL Lite ontology is a legal OWL DL ontology Every legal OWL DL ontology is a legal OWL Full ontology Every valid OWL Lite conclusion is a valid OWL DL conclusion Every valid OWL DL conclusion is a valid OWL Full conclusion 16

OWL Compatibility with RDF Schema All varieties of OWL use RDF for their syntax Instances are declared as in RDF, using RDF descriptions OWL constructors are specializations of their RDF counterparts 17

OWL Compatibility with RDF Schema (2) Semantic Web design aims at downward compatibility with corresponding reuse of software across the various layers The advantage of full downward compatibility for OWL is only achieved for OWL Full, at the cost of computational intractability

Lecture Outline 1.Basic Ideas of OWL 2.The OWL Language 3.Examples 4.The OWL Namespace 5.Future Extensions 19

OWL Syntactic Varieties OWL builds on RDF and uses RDF’s XML-based syntax Other syntactic forms for OWL have also been defined: – An alternative: more readable XML-based syntax – An abstract syntax (aka. Functional-style syntax): much more compact and readable than the XML languages – A graphic syntax based on the conventions of UML 20

OWL XML/RDF Syntax: Header <rdf:RDF xmlns:owl =" xmlns:rdf =" ns#" xmlns:rdfs=" xmlns:xsd =" … An OWL ontology may start with a collection of assertions for housekeeping purposes using owl:Ontology element 21

owl:Ontology An example OWL ontology <owl:priorVersion rdf:resource=" <owl:imports rdf:resource=" University Ontology owl:imports is a transitive property Other elements don’t have semantic impacts to the ontology 22

Classes Classes are defined using owl:Class – owl:Class is a specialization of rdfs:Class Disjointness is defined using owl:disjointWith 23

Classes (2) owl:equivalentClass defines equivalence of classes owl:Thing is the most general class, which contains everything owl:Nothing is the empty class 24

Properties In OWL there are two kinds of properties – Object properties, which relate objects to other objects E.g. isTaughtBy, supervises – Data type properties, which relate objects to datatype values E.g. phone, title, age, etc. 25

Datatype Properties OWL makes use of XML Schema data types, exploiting the layered architecture of the SW 26

Object Properties In place of data types, classes are used as the range for object properties 27

Inverse Properties OWL allows to specify that one (object) property is an inverse of another 28

Equivalent Properties Stating that two properties are synonymous 29

Constraining OWL Classes In OWL we can declare that the class C satisfies certain conditions – All instances of C satisfy the conditions This is equivalent to saying that C is subclass of a class C', where C' collects all objects that satisfy the conditions – C' can remain anonymous 30

Property Restrictions A (restriction) class is achieved through an owl:Restriction element This element contains an owl:onProperty element and one or more restriction declarations One type defines cardinality restrictions (at least one, at most 3,…) 31

Property Restrictions (2) The other type defines restrictions on the kinds of values the property may take – owl:allValuesFrom specifies universal quantification – owl:hasValue specifies a specific value – owl:someValuesFrom specifies existential quantification 32

owl:allValuesFrom 33

owl:hasValue 34

owl:someValuesFrom 35

Cardinality Restrictions We can specify minimum and maximum number using owl:minCardinality and owl:maxCardinality It is possible to specify a precise number by using the same minimum and maximum number For convenience, OWL offers also owl:cardinality 36

Cardinality Restrictions (2) <owl:minCardinality rdf:datatype="&xsd;nonNegativeInteger"> 1 37

Special Properties owl:TransitiveProperty (transitivity) – E.g. “has part”, “is ancestor of” owl:SymmetricProperty (symmetry) – E.g. “has same grade as”, “is sibling of” owl:FunctionalProperty defines a property that has at most one value for each object – E.g. “age”, “height”, “directSupervisor” owl:InverseFunctionalProperty defines a property for which two different objects cannot have the same value 38

Special Properties (2) 39

Boolean Combinations We can combine classes using Boolean operations (union, intersection, complement) 40

Boolean Combinations (2) The new class is not a subclass of the union, but rather equal to the union – We here state an equivalence of classes 41

Boolean Combinations (3) 42

Nesting of Boolean Operators 43

Enumerations with owl:oneOf 44

Declaring Instances Instances of classes are declared as in RDF: 39 45

No Unique-Names Assumption OWL does not adopt the unique-names assumption of database systems – Only because two instances have a different name or ID does not imply that they are different individuals Suppose we state that each course is taught by at most one staff member, and that a given course is taught by two staff members – An OWL reasoner does not flag an error – Instead it infers that the two resources are equal 46

Distinct Objects To ensure that different individuals are indeed recognized as such, we must explicitly assert their inequality: 47

Distinct Objects (2) OWL provides a shorthand notation to assert the pairwise inequality of all individuals in a given list 48

Data Types in OWL XML Schema provides a mechanism to construct user-defined data types – E.g., the data type of adultAge includes all integers greater than 18 Such derived data types cannot be used in OWL – The OWL reference document lists all the XML Schema data types that can be used – These include the most frequently used types such as string, integer, Boolean, time, and date. 49

Versioning Information owl:priorVersion indicates earlier versions of the current ontology – No formal meaning – Can be exploited for ontology management and housekeeping owl:versionInfo generally contains a string giving information about the current version, e.g. keywords 50

Versioning Information (2) owl:backwardCompatibleWith contains a reference to another ontology – All identifiers from the previous version have the same intended interpretations in the new version – Thus documents can be safely changed to commit to the new version owl:incompatibleWith indicates that the containing ontology is a later version of the referenced ontology but is not backward compatible with it 51

Combination of Features In different OWL languages there are different sets of restrictions regarding the application of features In OWL Full, all the language constructors may be used in any combination as long as the result is a legal RDF document 52

Restriction of Features in OWL DL Vocabulary partitioning – Any resource is allowed to be only a class, a data type, a data type property, an object property, an individual, a data value, or part of the built-in vocabulary, and not more than one of these Explicit typing – The partitioning of all resources must be stated explicitly (e.g. a class must be declared if used in conjunction with rdfs:subClassOf) 53

Restriction of Features in OWL DL (2) Property Separation – The set of object properties and data type properties are disjoint – Therefore the following can never be specified for data type properties: owl:inverseOf owl:TransitiveProperty owl:SymmetricProperty 54

Restriction of Features in OWL DL (3) No transitive cardinality restrictions – No cardinality restrictions may be placed on transitive properties and their superproperties Restricted anonymous classes: Anonymous classes are only allowed to occur as: – the domain and range of either owl:equivalentClass or owl:disjointWith – the range (but not the domain) of rdfs:subClassOf 55

Restriction of Features in OWL Lite Restrictions of OWL DL and more owl:oneOf, owl:disjointWith, owl:unionOf, owl:complementOf and owl:hasValue are not allowed Cardinality statements (minimal, maximal, and exact cardinality) can only be made on the values 0 or 1 owl:equivalentClass statements can no longer be made between anonymous classes but only between class identifiers

OWL Characteristics OWL is based on Description Logic Description Logic is a decidable fragment of first-order logic with a variable-free syntax OWL inherits from Description Logic – The open-world assumption – The non-unique-name assumption 57

Open-world assumption We cannot conclude some statement x to be false simply because we cannot show x to be true Our axioms may be simply noncommittal on the status of x We may not deduce falsity from the absence of truth 58

Open-world assumption example Question: "Did it rain in Tokyo yesterday?" Answer: "I don’t know that it rained, but that’s not enough a reason to conclude that it didn’t rain" 59

Closed-world assumption (CWA) Closed-world assumption allow deriving falsity from the inability to derive truth Example: – Question: " Was there a big earthquake disaster in Tokyo yesterday? " – Answer: " I don’t know that there was, but if there had been such a disaster, I’d have heard about it. Therefore I conclude that there wasn’t such a disaster" 60

Unique-name assumption (UNA) When two individuals are known by different names, they are in fact different individuals This is an assumption that sometimes works (e.g. Product codes) and sometimes doesn’t (e.g. Social environment) OWL does not make the unique-name assumption 61

DB versus KR Systems such as databases and logic- programming systems have tended to support closed worlds and unique names Knowledge representation systems and theorem provers support open worlds and non-unique names 62

OWL DLP as a Compromise Ontologies are sometimes in need of one sometimes in need of the other use Discussions can be found in the literature and on the WWW about whether OWL should be more like a knowledge representation system or more like a database system This debate was nicely resolved by Volz and Horrocks, who identified a fragment of OWL called DLP This fragment is the largest fragment on which the choice for CWA and UNA does not matter, see following figure 63

Relation of OWL DLP to other languages 64

OWL DLP OWL DLP is weak enough so that the differences between the choices don’t show up The advantage of this is that people or applications that wish to make different choices on these assumptions can still exchange ontologies in OWL DLP without harm As soon as they go outside OWL DLP, they will notice that they draw different conclusions from the same statements 65

OWL DLP DLP is still large enough to enable useful representation and reasoning tasks It allows the use of such OWL constructors as: – Class and property equivalence – Equality and inequality between individuals – Inverse, transitive, symmetric and functional properties – Intersection of classes It excludes constructors such as : – Union of classes, restrictions on properties, and arbitrary cardinality constraints 66

Lecture Outline 1.Basic Ideas of OWL 2.The OWL Language 3.Examples 4.The OWL Namespace 5.Future Extensions 67

An African Wildlife Ontology – Class Hierarchy 68

An African Wildlife Ontology – Plants and Trees Plants form a class disjoint from animals. Trees are a type of plant. 69

An African Wildlife Ontology – Properties

An African Wildlife Ontology – Carnivores Carnivores are exactly those animals that eat animals. 71

An African Wildlife Ontology – Branches Branches are parts of trees. 72

An African Wildlife Ontology – Leaves Leaves are parts of branches. 73

An African Wildlife Ontology – Herbivores Herbivores are exactly those animals that eat only plants or parts of plants. …Try it out! 74

An African Wildlife Ontology – Herbivores 75

An African Wildlife Ontology – Giraffes Giraffes are herbivores, and they eat only leaves. 76

An African Wildlife Ontology – Lions Lions are animals that eat only herbivores. 77

An African Wildlife Ontology – Tasty Plants Tasty plants are plants that are eaten by both herbivores and carnivores …Try it out! 78

An African Wildlife Ontology – Tasty Plants … 79

An African Wildlife Ontology – Tasty Plants … 80

A Printer Ontology – Class Hierarchy 81

Lecture Outline 1.Basic Ideas of OWL 2.The OWL Language 3.Examples 4.The OWL Namespace 82

OWL in OWL/RDFS We present a part of the definition of OWL in terms of itself The following captures some of OWL’s meaning in OWL It does not capture the entire semantics A separate semantic specification is necessary The URI of the OWL definition is defined as the default namespace 83

Chapter 4A Semantic Web Primer 84 Classes of Classes (Metaclasses) The class of all OWL classes is itself a subclass of the class of all RDF Schema classes: Class

Chapter 4A Semantic Web Primer 85 Thing and Nothing Thing is most general object class in OWL Nothing is most specific class: the empty object class Nothing

Class and Property Equivalences EquivalentClass EquivalentProperty

Chapter 4A Semantic Web Primer 87 Class Disjointness disjointWith

Chapter 4A Semantic Web Primer 88 Union and Intersection of Classes Build a class from a list, assumed to be a list of other class expressions

Chapter 4A Semantic Web Primer 89 Restriction Classes Restrictions in OWL define the class of those objects that satisfy some attached conditions Restriction

Chapter 4A Semantic Web Primer 90 Restriction Properties All the following properties (onProperty, allValuesFrom, minCardinality, etc.) are only allowed to occur within a restriction definition – Their domain is owl:Restriction, but they differ with respect to their range

Chapter 4A Semantic Web Primer 91 Restriction Properties (2) onProperty allValuesFrom

Chapter 4A Semantic Web Primer 92 Restriction Properties (3) hasValue minCardinality

Chapter 4A Semantic Web Primer 93 Properties owl:ObjectProperty and owl:DatatypeProperty are special cases of rdf:Property ObjectProperty

Chapter 4A Semantic Web Primer 94 Properties (2) Symmetric and transitive properties can only be applied to object properties TransitiveProperty

Chapter 4A Semantic Web Primer 95 Properties (3) owl:inverseOf relates two object properties: inverseOf

Complete Semantics of OWL The semantics of OWL is achieved through a mapping to Description Logic’s constructors The DL’s semantics is called set theoretic semantics and defined through interpretations – An interpretation consists of an interpretation domain and interpretation function The function maps OWL individuals, classes, and properties to objects, sets of objects, and sets of pairs of objects in the domain