Introduction to OWL Introduction to OWL ΠΑΝΕΠΙΣΤΗΜΙΟ ΑΙΓΑΙΟΥ ΤΜΗΜΑ ΜΗΧΑΝΙΚΩΝ.

Slides:



Advertisements
Similar presentations
Ontologies and Databases Ian Horrocks Information Systems Group Oxford University Computing Laboratory.
Advertisements

Three Theses of Representation in the Semantic Web
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
An Introduction to Description Logics
An Introduction to RDF(S) and a Quick Tour of OWL
SIG2: Ontology Language Standards WebOnt Briefing Ian Horrocks University of Manchester, UK.
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.
1 Semantic Web Technologies: The foundation for future enterprise systems Okech Odhiambo Knowledge Systems Research Group Strathmore University.
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
Ontology and Ontology-Based Applications C. Farkas Some of the slides were obtained from presentations of Ian Horrocks.
COMP 6703 eScience Project Semantic Web for Museums Student : Lei Junran Client/Technical Supervisor : Tom Worthington Academic Supervisor : Peter Strazdins.
The Semantic Web Week 12 Term 1 Recap Lee McCluskey, room 2/07 Department of Computing And Mathematical Sciences Module Website:
From SHIQ and RDF to OWL: The Making of a Web Ontology Language
DL systems DL and the Web Ilie Savga
W3C Tracking – OWL David De Roure GGF Semantic Grid Research Group
Semantic Web Ontologies (continued) Expressing, Querying, Building CS 431 – April 6, 2005 Carl Lagoze – Cornell University.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Chapter 6 Understanding Each Other CSE 431 – Intelligent Agents.
OWL: Web Ontology Language
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
1 Representing Data with XML September 27, 2005 Shawn Henry with slides from Neal Arthorne.
OWL 2 Web Ontology Language. Topics Introduction to OWL Usage of OWL Problems with OWL 1 Solutions from OWL 2.
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.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
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.
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.
Michael Eckert1CS590SW: Web Ontology Language (OWL) Web Ontology Language (OWL) CS590SW: Semantic Web (Winter Quarter 2003) Presentation: Michael Eckert.
Metadata. Generally speaking, metadata are data and information that describe and model data and information For example, a database schema is the metadata.
An Introduction to Description Logics (chapter 2 of DLHB)
Ontology & OWL Semantic Web - Fall 2005 Computer Engineering Department Sharif University of Technology.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Description Logics: Logic foundation of Semantic Web Semantic.
Advanced topics in software engineering (Semantic web)
Chapter 3 RDF and RDFS Semantics. Introduction RDF has a very simple data model But it is quite liberal in what you can say Semantics can be given using.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Knowledge Representation Semantic Web - Fall 2005 Computer.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
More on Description Logic(s) Frederick Maier. Note Added 10/27/03 So, there are a few errors that will be obvious to some: So, there are a few errors.
1 Artificial Intelligence Applications Institute Centre for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications.
Artificial Intelligence 2004 Ontology
DAML+OIL: an Ontology Language for the Semantic Web.
OIL and DAML+OIL: Ontology Languages for the Semantic Web Sungshin Lim TOWARDS THE SEMANTIC WEB: Ontology-driven Knowledge.
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.
Knowledge Representation. Keywordsquick way for agents to locate potentially useful information Thesaurimore structured approach than keywords, arranging.
Representing Data with XML February 26, 2004 Neal Arthorne.
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.
CS621 : Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 12 RDF, OWL, Minimax.
Description Logics Dr. Alexandra I. Cristea. Description Logics Description Logics allow formal concept definitions that can be reasoned about to be expressed.
ece 627 intelligent web: ontology and beyond
Motivation Dynamically identify and understand information sources Provide interoperability between agents in a semantic manner Enable distributed extensible.
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,
ΑΝΑΠΑΡΑΣΤΑΣΗ ΓΝΩΣΗΣ ΣΤΟΝ ΠΑΓΚΟΣΜΙΟ ΙΣΤΟ OWL. RDF-RDFS Limitations Binary ground predicates Only subclass & subproperty hierarchy Domain and range definitions.
Presented by Kyumars Sheykh Esmaili Description Logics for Data Bases (DLHB,Chapter 16) Semantic Web Seminar.
Of 29 lecture 15: description logic - introduction.
LDK R Logics for Data and Knowledge Representation Description Logics: family of languages.
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.
Building Trustworthy Semantic Webs
ece 720 intelligent web: ontology and beyond
ece 720 intelligent web: ontology and beyond
Description Logics.
CIS Monthly Seminar – Software Engineering and Knowledge Management IS Enterprise Modeling Ontologies Presenter : Dr. S. Vasanthapriyan Senior Lecturer.
Presentation transcript:

Introduction to OWL Introduction to OWL ΠΑΝΕΠΙΣΤΗΜΙΟ ΑΙΓΑΙΟΥ ΤΜΗΜΑ ΜΗΧΑΝΙΚΩΝ ΠΛΗΡΟΦΟΡΙΑΚΩΝ ΚΑΙ ΕΠΙΚΟΙΝΩΝΙΑΚΩΝ ΣΥΣΤΗΜΑΤΩΝ Πρόγραμμα Μεταπτυχιακών Σπουδών Κώτης Κων/νοςΚώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Κώτης Κων/νος

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Θέματα What is OWL Adds to RDF-S OWL versions (Lite, DL, Full) OWL Syntax Querying Part of Material was taken from Ian Horrocks lectures series 

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Ontology Languages Wide variety of languages for “Explicit Specification”  Graphical notations Semantic networks Topic Maps (see UML RDF  Logic based Description Logics (e.g., OIL, DAML+OIL, OWL) Rules (e.g., RuleML, LP/Prolog) First Order Logic (e.g., KIF) Conceptual graphs Non-classical logics (e.g., F-logic)

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Ontology Languages Wide variety of languages for “Explicit Specification”  Graphical notations Semantic networks

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Ontology Languages Wide variety of languages for “Explicit Specification”  Graphical notations Topic Maps

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Ontology Languages Wide variety of languages for “Explicit Specification”  Graphical notations UML

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Ontology Languages Wide variety of languages for “Explicit Specification”  Graphical notations RDF

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Ontology Languages Wide variety of languages for “Explicit Specification”  Logic based Description Logics (e.g., OIL, DAML+OIL, OWL) Rules (e.g., RuleML, LP/Prolog) First Order Logic (e.g., KIF)

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Ontology Languages Wide variety of languages for “Explicit Specification”  Logic based Conceptual graphs

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Objects/Instances/Individuals  Elements of the domain of discourse  Equivalent to constants in FOL Types/Classes/Concepts  Sets of objects sharing certain characteristics  Equivalent to unary predicates in FOL Relations/Properties/Roles  Sets of pairs (tuples) of objects  Equivalent to binary predicates in FOL Such languages are/can be:  Well understood  Formally specified  (Relatively) easy to use  machine processing Many languages use “object oriented” model based on:

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Web “Schema” Languages Existing Web languages extended to facilitate content description  XML  XML Schema (XMLS)  RDF  RDF Schema (RDFS) XMLS not an ontology language  Changes format of DTDs (document schemas) to be XML  Adds an extensible type hierarchy Integers, Strings, etc. Can define sub-types, e.g., positive integers RDFS is recognisable as an ontology language  Classes and properties  Sub/super-classes (and properties)  Range and domain (of properties)

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Problems with RDFS RDFS too weak to describe resources in sufficient detail  No localised range and domain constraints Can’t say that the range of hasChild is Person when applied to persons and Elephant when applied to elephants  No disjoint classes Can’t say that that male and female are disjoint  No union, intersection, complement of classes (boolean combinations of classes) Can’t say that class person is the disjoint union of classes male and female  No existence/cardinality constraints Can’t say that all instances of person have a mother that is also a person, or that persons have exactly 2 parents  No transitive, inverse or unique properties Can’t say that “grater than” is a transitive property, that hasPart is the inverse of isPartOf or that “is mother of” is unique property.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Example Schemas: a “university” description disjointWith equivalentClass Faculty OWL semantics Not allowed due to disjoint Classes

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Web Ontology Language Requirements Desirable features identified for Web Ontology Language: Extends existing Web standards  Such as XML, RDF, RDFS Easy to understand and use  Should be based on familiar KR idioms Formally specified Of “adequate” expressive power Possible to provide automated reasoning support

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Web Ontology Language Requirements Well defined syntax  machine processing of information …but not user-friendly RDF syntax is hard However, there are ontology developing tools that solve this problem…e.g. Protégé

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Web Ontology Language Requirements Formal semantics = describes the meaning of knowledge precisely, i.e. No subjective intuitions, it is not open to different interpretations (by people or machines) Importance of formal semantics is large…it allows people to reason about knowledge!!!

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Web Ontology Language Requirements For ontological knowledge: Class membership (if x is instance of class C, and C is subclass of D, then we can infer that x is an instance of D) Equivalence of classes (if class A is equivalent to class B, and class B is equivalent to class C, then A is equivalent to C, too) Consistency check (cannot A and B classes own both the instance x if these classes are disjoint) Automatic Classification of instances/concepts (conclude that x must be an instance of class A, if x satisfies certain property-value pairs conditions)

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Web Ontology Language Requirements must” Semantics is a “must” for Reasoning Support. It allows one to: Check the consistency of the ontology and knowledge Check (not intended) relations between classes Automatically classify instances in classes

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Web Ontology Language Requirements Formal semantics and reasoning are usually provided by mapping ontology language to a known logical formalism… OWL  Description Logic Use already existing reasoners, …FaCT, RACER. D.L support efficient reasoning

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean From RDF to OWL Two languages developed to satisfy above requirements  OIL: developed by group of (largely) European researchers (several from EU OntoKnowledge project)  DAML-ONT: developed by group of (largely) US researchers (in DARPA DAML programme) Efforts merged to produce DAML+OIL  Development was carried out by “Joint EU/US Committee on Agent Markup Languages”  Extends (“DL subset” of) RDF DAML+OIL submitted to W3C as basis for standardisation  Web-Ontology (WebOnt) Working Group formed  WebOnt group developed OWL language based on DAML+OIL  OWL language now a W3C Candidate Recommendation  Has become Proposed Recommendation

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean OWL Language Three species of OWL  OWL full is union of OWL syntax and RDF  OWL DL restricted to FOL fragment  OWL Lite is “easier to implement” subset of OWL DL OWL DL based on SHIQ Description Logic OWL DL benefits from many years of DL research  Well defined semantics  Formal properties well understood (complexity, decidability)  Known reasoning algorithms  Implemented systems (highly optimised)

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean OWL types OWL Lite supports those users primarily needing a classification hierarchy and simple constraint features completeness decidability OWL DL supports those users who want the maximum expressiveness without losing computational completeness (all entailments are guaranteed to be computed) and decidability (all computations will finish in finite time) of reasoning systems maximum expressivenesssyntactic freedom of RDF OWL Full is meant for users who want maximum expressiveness and the syntactic freedom of RDF with no computational guarantees

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean OWL types Each of these sublanguages is an extension of its simpler predecessor, both in what can be legally expressed and in what can be validly concluded. The following set of relations hold. Their inverses do not.  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

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean OWL types Ontology developers adopting OWL should consider which species best suits their needs.  The choice between OWL Lite and OWL DL depends on the extent to which users require the more expressive restriction constructs provided by OWL DL.  Reasoners for OWL Lite will have desirable computational properties. Reasoners for OWL DL, while dealing with a decidable sublanguage, will be subject to higher worst-case complexity.  The choice between OWL DL and OWL Full mainly depends on the extent to which users require the meta- modelling facilities of RDF Schema (i.e. defining classes of classes).  When using OWL Full as compared to OWL DL, reasoning support is less predictable

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean What Are Description Logics? A family of logic based Knowledge Representation formalisms  Descendants of semantic networks and KL-ONE  Describe domain in terms of concepts (classes), roles (relationships) and individuals Distinguished by:  Formal semantics (typically model theoretic) Decidable fragments of FOL Closely related to Propositional Modal & Dynamic Logics  Provision of inference services Sound and complete decision procedures for key problems Implemented systems (highly optimised)

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean DL Architecture Knowledge Base Tbox (schema) Abox (data) Man ≡ Human ⊓ Male Happy-Father ≡ Man ⊓ ∃ has-child Female ⊓ … John : Happy-Father ( John, Mary ) : has-child Inference System Interface

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Description Logic Family DLs are a family of logic based KR formalisms Particular languages mainly characterised by:  Set of constructors for building complex concepts and roles from simpler ones  Set of axioms for asserting facts about concepts, roles and individuals ALC is the smallest DL that is propositionally closed  Constructors include booleans (and, or, not), and  Restrictions on role successors

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean DL Concept and Role Constructors Range of other constructors found in DLs, including:  Number restrictions (cardinality constraints) on roles, e.g.,  3 hasChild,  1 hasMother  Qualified number restrictions, e.g.,  2 hasChild.Female,  1 hasParent.Male  Inverse roles, e.g., hasChild - (hasParent)  Transitive roles, e.g., hasChild* (descendant)  Role composition, e.g., hasParent o hasBrother (uncle)

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean DL Knowledge Base DL Knowledge Base (KB) normally separated into 2 parts:  TBox is a set of axioms describing structure of domain (i.e., a conceptual schema), e.g.: HappyFather ≡ Man ⊓  hasChild.Female ⊓ … Elephant ≡ Animal ⊓ Large ⊓ Grey transitive(ancestor)  ABox is a set of axioms describing a concrete situation (data), e.g.: John:HappyFather :hasChild Separation has no logical significance  But may be conceptually and implementationally convenient

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean OWL as DL: Class Constructors

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean OWL example in RDFS Syntax E.g., Person ⊓ ∀ hasChild.Doctor ⊔ ∃ hasChild.Doctor:

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean OWL as DL: Axioms

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean OWL DL Semantics Mapping OWL to equivalent DL:  Facilitates provision of reasoning services (using DL systems)  Provides well defined semantics DL semantics defined by interpretations: I =(  I,. I ), where   I is the domain (a non-empty set) . I is an interpretation function that maps: Concept (class) name A →subset A I of  I Role (property) name R → binary relation R I over  I Individual name i → i I element of  I

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean DL Knowledge Bases (Ontologies) An OWL ontology maps to a DL Knowledge Base  T (Tbox) is a set of axioms of the form: C ⊑ D (concept inclusion) C ≡ D (concept equivalence) R ⊑ S (role inclusion) R ≡ S (role equivalence) R + ⊑ R (role transitivity)  A (Abox) is a set of axioms of the form X ∊ D (concept instantiation) (x,y) ∊ R (role instantiation)

Reasoning with OWL

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Why do we want/need to reason with OWL? Semantic Web aims at “machine understanding” Understanding closely related to reasoning  Recognising semantic similarity in spite of syntactic differences  Drawing conclusions that are not explicitly stated 1. Philosophical Reasons

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Practical Reasons Given key role of ontologies in e-Science and Semantic Web, it is essential to provide tools and services to help users:  Design and maintain high quality ontologies, e.g.: Meaningful — all named classes can have instances Correct — captured intuitions of domain experts Minimally redundant — no unintended synonyms Richly axiomatised — (sufficiently) detailed descriptions  Store (large numbers) of instances of ontology classes, e.g.: Annotations from web pages (or gene product data)  Answer queries over ontology classes and instances, e.g.: Find more general/specific classes Retrieve annotations/pages matching a given description  Integrate and align multiple ontologies

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Basic Inference Tasks

OWL Guide/Reference

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean OWL Syntax OWL still uses RDF and RDF Schema to a large extent:  All 3 types of OWL use RDF for syntax  Instances are declared as in RDF, using RDF descriptions  OWL constructors like owl:Class, owl:ObjectProperty, owl:DatatypeProperty are specializations of RDF

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean OWL Syntax Subclass relationship between OWL and RDF/RDFS rdfs:Resource rdfs:Class owl:Class rdf:Property owl:ObjectPropertyowl:DatatypeProperty

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean OWL Syntax 4 different forms  RDF/XML syntax  XML-based syntax (more easy for humans)  Abstract syntax (more readable)  Graphic syntax based on UML (human oriented) We use the first since it is the primary syntax for OWL

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Header - namespaces <rdf:RDF xmlns:owl =" xmlns:rdf =" xmlns:rdfs=" xmlns:xsd =" OWL ontologies RDF documents

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean “housekeeping”info Imports content from other ontologies to be Part of the current ontology Reminder: Namespaces are used for disambiguation of resources Imported ontologies provide definitions that can be used

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Define Classes Classes are defined with owl :Class element Subsumption relation ( subClassOf )  E.g. Borrows element from RDFSchema

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Define Classes Classes are defined with owl :Class element Disjoint relation ( disjointWith )  E.g. OWL element

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Define Classes Classes are defined with owl :Class element Equivalence relation ( equivalentClass )  E.g. OWL element

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Predefined Classes - Enumeration Predefined Classes are owl:Thing and owl:Nothingowl:Thingowl:Nothing  class extension of owl:Thing is the set of all individuals  The class extension of owl:Nothing is the empty set  Every OWL class is a subclass of owl:Thing and owl:Nothing is a subclass of every class A class description of the "enumeration" kind is defined with the owl:oneOf property. The value of this built-in OWL property must be a list of individuals that are the instances of the class.owl:oneOfinstances

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Predefined Classes - Enumeration A class can be described by exhaustively enumerating its instances.  The class extension of a class described with owl:oneOf contains exactly the enumerated individuals, no more, no less.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Define Classes – boolean combinations Intersection constructor ( intersectionOf)  An owl:intersectionOf statement describes a class for which the class extension contains precisely those individuals that are members of the class extension of all class descriptions in the list. = “Tosca”

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Define Classes – Boolean combinations union constructor (union Of)  An owl:unionOf statement describes an anonymous class for which the class extension contains those individuals that occur in at least one of the class extensions of the class descriptions in the list. = Tosca, Salome, Turandot

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Define Classes – Boolean combinations More examples

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Define Properties Properties are defined with owl :ObjectProperty and owl :DatatypeProperty elements  ObjectProperty relates objects to objects E.g. Course isTaughtBy academicStaff  DatatypeProperty relates objects to datatype values E.g. Age nonNegativeInteger

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Define Properties DatatypeProperty relates objects to datatype values E.g. Age nonNegativeInteger Reminder: Domain/Range= restrictions on the values of properties e.g.Knowledge Repr. is taught by Semantic Web (no sense) we need to restrict the range of the property Room B5 is taught by K. Kotis (no sense) we need to restrict the domain of the property

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Define Properties ObjectProperty relates objects to objects E.g. Course isTaughtBy academicStaff CourseacademicStaff isTaughtBy domain range involves Staff

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Define Properties owl: inverseOf defines the inverse property of a property E.g. teaches / isTaughtBy CourseacademicStaff teaches domain range isTaughtBy range domain

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Define Properties owl: equivalentProperty defines the equivalent of a property E.g. teaches / lecturesIn

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Property restrictions taught by E.g. : “First year Courses must be taught by Professors only” Note: the subClassOf is used to declare that if a class C satisfies certain conditions, THEN all instances of C satisfy the conditions. This is equivalent to “C subClassOf D”, where D collects all objects that satisfy the conditions

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Property restrictions teach E.g. : “All academic Staff must teach at least one undergraduate Course”

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Property restrictions taught by E.g. : “Every Course must be taught by at least someone” 1

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Property restrictions E.g. : “A Department must have at least 10 and as most 30 members” 10 30

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Property restrictions E.g. : “A Phd Student must have exactly 3 supervisors” 3 3 Use also owl :cardinality

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Special logical Properties TransitiveProperty Regions E.g. :“the subRegionOf property between Regions is transitive” If A,B,C are Regions, and “A subRegionOf B” and “B subRegionOf C”, THEN the reasoner will be able to derive that “A also subRegionOf C”. NOTE: OWL DL requires that for a transitive property no local or global cardinality constraints should be declared on the property itself or its superproperties, nor on the inverse of the property or its superproperties.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Special logical Properties SymmetricProperty Humans E.g. :“the friendOf property between Humans is symmetric” If A,B are Humans, and “A friendOf B” THEN the reasoner will be able to derive that “B also friendOf A”.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Instances (Individuals) In addition to classes, we want to be able to describe their members. We think of these as individuals in our universe of things. An individual is minimally introduced by declaring it to be a member of a class. Individuals are defined with individual axioms (also called "facts"). We discuss two types of facts:  Facts about class membership and property values of individuals  Facts about individual identity

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Instances -Class membership and property values Many facts typically are statements indicating class membership of individuals and property values of individuals  E.g. an instance of the class Opera includes a number of facts about the individual Tosca, an instance of the class Opera 1 1 ….

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Instances -Class membership and property values Subclass vs. instance  It is very easy to confuse the instance-of relationship with the subclass relationship.  It may seem arbitrary to choose to make Tosca an individual that is an instance of Opera, as opposed to a subclass of Opera. This is not an arbitrary decision. Tosca  The Opera class denotes the set of all opera varietals, and therefore any subclass of Opera should denote a subset of these varietals. Thus, Tosca should be considered an instance of Opera, and not a subclass. It does not describe a subset of Opera varietals, it is an opera varietal

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Instances -Class membership and property values E.g. wine ontology  Instance of WineGrape

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Instances - individual identity Many languages have a so-called "unique names" assumption: different names refer to different things in the world On the web, such an assumption is not possible  E.g. the same person could be referred to in many different ways (i.e. with different URI references)  OWL does not make this assumption Unless an explicit statement is being made that “two URI references refer to the same or to different individuals”, OWL tools should in principle assume either situation is possible.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Instances - individual identity OWL provides three constructs for stating facts about the identity of individuals:  owl:sameAs is used to state that two URI references refer to the same individual.  owl:differentFrom is used to state that two URI references refer to different individuals  owl:AllDifferent provides an idiom for stating that a list of individuals are all different.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Instances - individual identity owl:sameAs is used to state that two URI references refer to the same individual…: In OWL Full, where a class can be treated as instances of (meta)classes, we can use the owl:sameAs construct to define class equality, thus indicating that two concepts have the same intensional meaning. An example: states that the two classes have the same class extension, but are not (necessarily) the same concepts.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Instances - individual identity owl:differentFrom is used to state that two URI references refer to different individuals  An example: This states that there are three different operas.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Instances - individual identity owl:AllDifferent provides an idiom for stating that a list of individuals are all different.  An example: This states that these six URI references all point to different operas.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Examples - Ontologies

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Data Types we have seen the notion of a data range for specifying a range of data values. OWL allows three types of data range specifications:  An RDF datatype specification.RDF datatype  The RDFS class rdfs:Literal.rdfs:Literal  An enumerated datatype, using the owl:oneOf construct.enumerated datatype

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Data Types When using datatypes, please note that even if a property is defined to have a range of a certain datatype, RDF/XML still requires that the datatype be specified each time the property is used.  example: T09:00:08+01:00

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Data Types OWL provides one additional construct for defining a range of data values, namely an enumerated datatype. This datatype format makes use of the owl:oneOf construct, that is also used for describing an enumerated class.enumerated class

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Importing an ontology An owl:imports statement references another OWL ontology containing definitions, whose meaning is considered to be part of the meaning of the importing ontology.owl:imports  Each reference consists of a URI specifying from where the ontology is to be imported. The owl:imports statements are transitive  if ontology A imports B, and B imports C, then A imports both B and C. Although owl:imports and namespace declarations may appear redundant, they actually serve different purposes.  Namespace declarations simply set up a shorthand for referring to identifiers. They do not implicitly include the meaning of documents located at the URI.  owl:imports does not provide any shorthand notation for referring to the identifiers from the imported document.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Version information An owl:versionInfo statement generally has as its object a string giving information about this versionowl:versionInfo Although this property is typically used to make statements about ontologies, it may be applied to any OWL construct.  For example, one could attach a owl:versionInfo statement to an OWL class.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Layering of OWL OWL Full: all constructors can be used  As long as the result is legal RDF OWL DL  any resource allowed to be only: class, data type, data type property, object property, individual, data value, part of the built-in vocabulary, and not more than one of these  e.g. a class cannot be an individual at the same time!!!  Explicit typing, i.e. nothing is assumed, must be declared!!!  Set of object properties and data type properties are disjoint. E.g. cannot specify owl:inverseOf for data type property.  No cardinality restrictions may be placed on transitive properties OWL Lite  Do not allow the constructors: (owl:) one of, disjointWith, unionOf, complementOf, hasValue  Cardinality only allowed for values 0 and 1  owl:equivalentClass is only allowed between class identifiers, not anonymous classes

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Discussion The idea behind the OWL Lite expressivity limitations is that they provide a minimal useful subset of language features, that are relatively straightforward for tool developers to support. The language constructs of OWL Lite provide the basics for subclass hierarchy construction: subclasses and property restrictions. OWL Lite allows properties to be made optional or required. The limitations on OWL Lite place it in a lower complexity class than OWL DL. This can have a positive impact on the efficiency of complete reasoners for OWL Lite. Implementations that support only the OWL Lite vocabulary, but otherwise relax the restrictions of OWL DL, cannot make certain computational claims with respect to consistency and complexity. However, such implementations may be useful in providing interoperability of OWL systems with RDFS models, databases, markup tools, or other non-reasoning tools. The Web Ontology Working Group has not provided a name for this potentially useful subset.

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Examples - Ontologies Do not forget that everything about OWL can be found at

27/10/2015 Κώτης Κων/νος - Copyright Ai-Lab, ICSEng. Dept. University of the Aegean Querying OWL-QL (under recommendation)  E.g. click hereclick here Ontology Tools e.g. Protégé querying system  E.g.