daml: ontology, services and rules - university of … for intelligent systems and their...

19
1 Artificial Intelligence Applications Institute Centre for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services DAML: Ontology, Services and Rules and Rules

Upload: duongmien

Post on 11-Mar-2018

224 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

1

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

Stuart AitkenArtificial IntelligenceApplications Institute

DAML: Ontology, ServicesDAML: Ontology, Servicesand Rulesand Rules

Page 2: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

2

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

W3C + DAMLW3C + DAML

• W3C standards• XML

• RDF - Resource Description Framework• RDFS - RDF Schema

• Ontology languages• DAML-O - ontology• DAML-S - services

• DAML-R - rules

Page 3: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

3

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

W3C initiativesW3C initiatives

• XML• RDF

• Extends XML• Represents semantics as triples

• RDF Schema• Encodes the type hierarchy

Page 4: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

4

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

RDFRDF

• Identify ‘things’ through URIs, and• describe them in terms of simple

properties and property values• Triples: subject predicate object

• http://www.example.org/index.html• http://purl.org/dc/elements/1.1/creator• http://www.example.org/staffid/85740

• Subjects and objects are viewed as nodes,predicates as links in a graph

• Predicates are defined - ontology• rdf:type - objects can have types

• a defined predicate

Page 5: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

5

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

RDFSRDFS

• RDF Properties: representrelationships between resources

• No way to describe these properties,or relationships between theseproperties and other resources

• RDFS: specify Classes and thedomain and range of properties:• author - domain:Document - range: Person

Page 6: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

6

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

RDFSRDFS

• rdfs:Resource the class of everything• rdfs:Class the class of classes• rdfs:Literal the class of literal values

e.g. string and integer• rdf:Property instance of rdfs:Class• rdfs:domain instance of rdf:Property• rdfs:range instance of rdf:Property• rdfs:subClassOf• rdfs:subPropertyOf

Page 7: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

7

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-ODAML-O

• A DAML+OIL knowledge-base is acollection of RDF triples

• DAML+OIL prescribes the meaningof triples that use DAML+OILvocabulary

• Adds 12 classes and 26 propertiesto RDFS (axiomatised)

Page 8: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

8

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-ODAML-O

• daml:Class a class element - refers to aclass name (URI) may contain:• rdfs:subClassOf• daml:disjointWith• boolean combination of class expressions

• enumeration elements

• Class expression• class name (URI)

• enumeration of classes

• property restriction

• boolean combination of the above

Page 9: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

9

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-ODAML-O

Property restrictions: qualify a defined class,A, by stating (quant.)property.C

e.g. RedWine:= Wine/\hasColour.RED• daml:toClass for all x, if property(x,y)

holds of an element y, y is in C

• daml:hasClass for some x, property(x,y)holds of an element y of C

Page 10: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

10

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-ODAML-O

• Cardinality constraints• N values of property

• Max values

• Min values

• E.g. Wine has exactly one colour

• Description Logic reasoners exist forDAML-O

• DL is good for defining concepts,computing the subsumption relation, but

• Expressivity is intentionally limited.

Page 11: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

11

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-ODAML-O

Description Logic: Syntax and Semantics

R [ S

All R.C

Some R.C

-C

C \/ D

C /\ D

R

A

R subset Srole hierarchy

{x|all y <x,y> in R => y in C}value restriction

{x|exists y <x,y> in R, y in C}exists restriction

complement of C (U\C)negation

set union of C and Ddisjunction

intersection of C and Dconjunction

R subset U * Uatomic role

A is a subset of the Universal setatomic construct

Page 12: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

12

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-ODAML-O

Description Logic: SubsumptionC:= Person /\ All eats.MeatO:= Person /\ Some eats.MeatV:= Person /\ All eats.-Meat

Q1. Is O a subclass of C ?Q2. Are C and V disjoint ?Q3. Are O and V disjoint ?

Page 13: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

13

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-ODAML-O

Description Logic: Subsumption

Person

Carnivore Omnivore Vegetarian

disjoint

subclass

Page 14: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

14

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-SDAML-S

• Semantic mark-up for web services• Agents should be able to

• discover,• invoke,• compose, and• monitor web resources.

• Ontology - expressed in DAML-O• A Service

• presents a Service Profile (what is on offer)• described by a Service Model (how it is

achieved)• supports a Service Grounding (implementation

details)

Page 15: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

15

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-SDAML-S

• Service ProfileserviceName; textDescription; contactInformation

• Actorname; title; phone, fax….

• ‘Functional’ characteristics ofService Profiles and Service Models• input/output (Parameter Description)• precondition/effect (Parameter

Description)

Page 16: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

16

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-SDAML-S

• Service Model: Process Ontology• Atomic, Simple, Composite Process

• Control Construct• Sequence, Split, Choice, If-Then-Else

• Data flow/Parameter Bindings• There are no variables in the language to allow

instances to be equated

• E.g. item1 is input; item1 is output, but we can onlyspecify the type as input/output

• Annotation is used:sameValues(Process, [ (valueOf Class,Parameter),….])

Page 17: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

17

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-SDAML-S

• Formalisation of the Process Ontology is weak• Classes

• No/few axioms

• Alternative formalisations of the executionsemantics exist• Narayanan & McIlraith: situation calculus + petri nets

• Ankolekar, Huch & Sycara: pi calculus/ functionalprogramming

• Declarative Semantics for a CycL ProcessOntology may be relevant

• Uses: Verification, Simulation, Composition

Page 18: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

18

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-SDAML-S

At the ‘implementation level’ DAML-Sspecs will map to WSDL, SOAP…

DAML-S

Process Model DL Types

Atomic Processes input/output

operation message

SOAP, HTTP WSDL

Page 19: DAML: Ontology, Services and Rules - University of … for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications Institute DAML: Ontology, Services

19

Artificial Intelligence Applications InstituteCentre for Intelligent Systems and their Applications

DAML-RDAML-R

Introduce Rules to solve the instanceidentification (variable) problem -this is a general problem with DL

• RuleML

• Grosof & Horrocks ‘LogicProgramming + DL’

• Others…