WSMO D3.2: Use Case and Testing Part 2: Syntax and Running Example 2nd F2F meeting SDK cluster working group on Semantic Web Services Lausanne, Switzerland,

Slides:



Advertisements
Similar presentations
© Copyright 2007 STI - INNSBRUCK Applying Reasoning to Instance Transformation Adrian Mocan, Mick Kerrigan, Emilia Cimpian
Advertisements

Web Service Modelling Ontology (WSMO)
Adding Semantics to RosettaNet Specifications Paavo Kotinurmi RosettaNet RosettaNet is a widely used XML-based standard.
WSMO Christoph Bussler and Dieter Fensel Digital Enterprise Research Institute
Semantics Static semantics Dynamic semantics attribute grammars
Reference Implementation WSMX Matthew Moran, (Emilia Cimpian, AdrianMocan, Eyal Oren, Michal Zaremba) Digital Enterprise Research Institute
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
ISBN Chapter 3 Describing Syntax and Semantics.
Fall Semantics Juan Carlos Guzmán CS 3123 Programming Languages Concepts Southern Polytechnic State University.
CS 355 – Programming Languages
Object Oriented Design An object combines data and operations on that data (object is an instance of class) data: class variables operations: methods Three.
Reasoning Tasks and Mediation on Choreography and Orchestration in WSMO Michael Stollberg WIW 2005, June 6-7, Innsbruck, Austria.
Chapter 8: Web Ontology Language (OWL) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005.
1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.
CS 330 Programming Languages 09 / 18 / 2007 Instructor: Michael Eckmann.
Semantic Web Fred Framework and Demonstration or ‘my PhD-Thesis in 30 min’ Michael Stollberg, 14-Dec-2004.
The WSMO / L / X Approach Michael Stollberg DERI – Digital Enterprise Research Institute Alternative Frameworks for Semantics in Web Services: Possibilities.
Kmi.open.ac.uk Semantic Execution Environments Service Engineering and Execution Barry Norton and Mick Kerrigan.
1 The Third Summer School on Ontological Engineering and the Semantic Web (SSSW'05) Semantic Web Services Hands-On Session with IRS-III John Domingue and.
Describing Syntax and Semantics
Mapping Fundamental Business Process Modelling Language to the Web Services Ontology Gayathri Nadarajan and Yun-Heh Chen-Burger Centre for Intelligent.
© 2005 ontoprise GmbH Home | Menu | Partner | End Copyright ©2005 ontoprise GmbH, Karlsruhe F-Logic Forum: Results and Open Issues.
WSMO Training for DIP DIP WP 14 Workshop 18-Jan-2005, Innsbruck chairs: John Domingue, Liliana Cabral, Michael Stollberg.
 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. Towards Translating between XML and WSML based on mappings between.
An Introduction to Description Logics. What Are Description Logics? A family of logic based Knowledge Representation formalisms –Descendants of semantic.
1 WSMX Web Service Modeling Execution WSMO Deliverable 13 Emilia Cimpian, Adrian Mocan, Matthew Moran, Eyal Oren, Michal Zaremba 3 March 2004.
The Semantic Web Service Shuying Wang Outline Semantic Web vision Core technologies XML, RDF, Ontology, Agent… Web services DAML-S.
INF 384 C, Spring 2009 Ontologies Knowledge representation to support computer reasoning.
Copyright © 2004 DERI® 1 Web Service Modeling Ontology (WSMO) Christoph Bussler and Dieter Fensel DERI International 16th of February 2004.
Sixth International EGOV Conference 2007 September 3-7, 2007 Regensburg, Germany Framework for Integration of e-Government Services on a Semantic Basis.
Semantic Web Fred: Goal and Service Description Language Michael Stollberg - 05 June
 Copyright 2004 Digital Enterprise Research Institute. All rights reserved. WSMO4J – Logical Expression Extension
June 14, 2004DIP Meeting, Lausanne Service Discovery Using Transaction Logic Reasoning Michael Kifer.
MTA SZTAKI Department of Distributed Systems Two-phase Semantic Web Service Discovery Method for Finding Intersection Matches using Logic Programming László.
The Dynamic Discovery of Web Services Using WSMX Presented by Robert Zaremba.
 Copyright 2004 Digital Enterprise Research Institute. All rights reserved. SRI, 08/12/20051 Web Rule Language (WRL)
ISBN Chapter 3 Describing Semantics -Attribute Grammars -Dynamic Semantics.
CS 363 Comparative Programming Languages Semantics.
WSMO Discovery Realization in Semantic Web Fred Michael Stollberg - 03 November
Christoph Bussler, Laurentiu Vasiliu Digital Enterprise Research Institute (DERI) National University of Ireland, Galway, Ireland SDK meeting.
Sheet 1XML Technology in E-Commerce 2001Lecture 2 XML Technology in E-Commerce Lecture 2 Logical and Physical Structure, Validity, DTD, XML Schema.
Universität Innsbruck Leopold Franzens  Copyright 2007 DERI Innsbruck Technical Task Fair December 2007 SWS Composition The SUPER Approach.
1 Artificial Intelligence Applications Institute Centre for Intelligent Systems and their Applications Stuart Aitken Artificial Intelligence Applications.
ISBN Chapter 3 Describing Semantics.
Chapter 3 Part II Describing Syntax and Semantics.
A Logical Framework for Web Service Discovery The Third International Semantic Web Conference Hiroshima, Japan, Michael Kifer 1, Rubén Lara.
Working with XML Schemas ©NIITeXtensible Markup Language/Lesson 3/Slide 1 of 36 Objectives In this lesson, you will learn to: * Declare attributes in an.
1 / 48 Formal a Language Theory and Describing Semantics Principles of Programming Languages 4.
Architecture for an Ontology and Web Service Modelling Studio Michael Felderer & Holger Lausen DERI Innsbruck Frankfurt,
A Mediated Approach towards Web Service Choreography Michael Stollberg, Dumitru Roman, Juan Miguel Gomez DERI – Digital Enterprise Research Institute
 Copyright 2005 Digital Enterprise Research Institute. All rights reserved. Dynamic RosettaNet Integration on Semantic Web Services Tomas.
WSMO - new structure, main intermediate deliverables - 2nd F2F meeting SDK cluster working group on Semantic Web Services Lausanne, Switzerland,
WSMO Implementation Workshop 2004 Woogle meets Semantic Web Fred U. Keller, M. Stollberg, D. Fensel.
“Custom” Checks/Constraints/Actions A proposal for the OASIS SDD TC Rich Aquino, Macrovision Julia McCarthy, IBM March 1, 2007.
1 G52IWS: The Semantic Web Chris Greenhalgh
The Akoma Ntoso Naming Convention Fabio Vitali University of Bologna.
WSMO 1st F2F meeting SDK cluster working group on Semantic Web Services Wiesbaden, Germany, Christoph Bussler and Dieter Fensel Digital Enterprise.
OWL Web Ontology Language Summary IHan HSIAO (Sharon)
C HAPTER 3 Describing Syntax and Semantics. D YNAMIC S EMANTICS Describing syntax is relatively simple There is no single widely acceptable notation or.
Semantic Web Fred Automated Goal Resolution on the Semantic Web Michael Stollberg 38th Hawaiian International Conference on System Science Hawaii Big Island,
Of 24 lecture 11: ontology – mediation, merging & aligning.
Conceptual Comparison WSMO/OWL-S 1st F2F meeting SDK cluster working group on Semantic Web Services Wiesbaden, Germany, Rubén Lara, (Dumitru.
WWW: WSMO, WSML, and WSMX in a Nutshell Dumitru Roman 1, Jos de Bruijn 1, Adrian Mocan 1, Holger Lausen 1,2, John Domingue 3, Christoph Bussler 2, and.
n-ary relations OWL modeling problem when n≥3
Web Service Modeling Ontology (WSMO)
Knowledge Representation
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
ONTOMERGE Ontology translations by merging ontologies Paper: Ontology Translation on the Semantic Web by Dejing Dou, Drew McDermott and Peishen Qi 2003.
Presentation transcript:

WSMO D3.2: Use Case and Testing Part 2: Syntax and Running Example 2nd F2F meeting SDK cluster working group on Semantic Web Services Lausanne, Switzerland, Holger Lausen Digital Enterprise Research Institute

2 Session Structure WSML –Ontologies –Mediators –Goal as ground fact –Capability: pre and post conditions as restrictions Run time environment –Mapping to flora2 –„Demo“

3 Ontologies Use case shows how to apply the meta constructs outlined in D2 Simple meta model with basic concepts: –Concepts, Relations, Instances, Axioms –More complex patterns like transetivity are for the moment encoded as axioms (e.g. inverse, or transetive) Use case also illustrates –modelling consensus is not easy Ontologies try to be as specific as possible (e.g. avoiding unambiguty by assigning a string as range)

4 Ontologies – Meta Information ontology namespace default= dc= wsml= cnt= ad= xsd= non-functional-properties dc:title "Locations Ontology" dc:date " " dc:type dc:language "en-US" dc:relation dc:rights version "$Revision: 1.4 $" usedMediators

5 Ontologies - Signatures Only well typed ontologies have a model, i.e. everything has to be declared explicitly: –Concepts (including attributes & methods) –Relations –Function Symbols –Variables

6 Ontologies – Concepts / Instances concept time hourOfDay oftype hourOfDay minuteOfHour oftype minuteOfHour secondOfMinute oftype secondOfMinute comment: “A link to large set of instances is missing in WSMO. Therefore, in this version of the ontology we only include some example instances. The inclusion of links to large set of instances will be considered in future versions of WSMO“ instance noon hourOfDay hasValue 12 minuteOfHour hasValue 00 secondOfMinute hasValue 00

7 Ontologies – Function & Relation Declarations function julianDayNumber non-functional-properties dc:description "The Julian Day Count is a uniform count of days from a remote epoch in the past (about 4712 BC). At this instant, the Julian Day Number is 0. Once you have the Julian Day Number of a particular date in history, it is easy to calculate time elapsed between it and any other Julian Day Number" dc:source parameter instant oftype instant range oftype xsd:integer relation contains non-functional-properties dc:description "(interval, intervalOrInstant) is a tuple of the binary relation if and only if interval contains intervalOrInstant and below typing constraints are not violated" parameter interval oftype interval parameter intervalOrInstant oftype (instant or interval) Note: The actual range respectively truth value is defined via axioms.

8 Ontologies – Axioms / Variables Some variable declarations from the data and time ontology: variable X, Y, Z, D1, D2 oftype topConcept variable A, B, C, D, E, F, JDN, JDN_D1, JDN_D2, SFM_T1, SFM_T2 oftype xsd:integer variable T, T1, T2 oftype time variable JulianDayNumber, Difference, SecondsFromMidnight oftype xsd:integer variable Instant, Instant1, Instant2 oftype instant Axioms: axiom intervalContainment logical-expression contains(X, Y) <- X memberOf interval and Y memberOf interval and X.start = Y.end. axiom instantContainment logical-expression contains(X, Y) <- X memberOf interval and Y memberOf instant and X.start = Y.

9 Axioms as integrity constraints Are written in WSML as rules with empty heads axiom depatureBeforeArrival non-functional-properties dc:description "Integrity Constraint: that the departure of a trip has to be before the arrival date" logical-expression <- T memberOf trip[ departure hasvalue D, arrival hasvalue A] and A > D.

10 Ontologies – Use Case Results Revisited The use case as test bed for WSMO –Introduced namespaces Everything is a Literal or a Resource –Introduced XSD data types Literal / value-space mapping and facets (e.g. ordering) –Introduced function symbols –Introduced variable declerations –Introduced anonymous IDs

11 Session Structure WSML –Ontologies –Mediators –Goal as ground fact –Capability: pre and post conditions as restrictions Run time environment –Mapping to flora2 –„Demo“

12 OO-Mediators Mediators that import ontologies and resolve possible representation mismatches between ontologies. In the Use Case: –Converting between different syntaxes (e.g. importing OWL ontology into WSML) –Aligning specifications (e.g. refining or dropping a concept) Declerative description of the latter out of the scope of the use case

13 OO Mediator ooMediator namespace dc= wsml= sourceComponent ontology targetComponent ontology mediationService comment: not yet implemented. mediationService comment: This source ontology might overlap with the owl person ontology. comment: Not yet checked. In case, we should have one mediator importing both comment: and resolving possible overlaps/conflicts.

14 Session Structure WSML –Ontologies –Mediators –Goal as ground fact –Capability: pre and post conditions as restrictions Run time environment –Mapping to flora2 –„Demo“

15 Goal & Capability We achieved discovery by: –Formulating a query out of the restriction given in the pre- and post condition of the service capability –Formulating the goal as a (possible incomplete) ground fact (an instance) Set of facts constrained by the restrictions given in the pre- and post condition of the capability The goal describes one fact, if it is within the restrictions defined by pre- and post condition the service might fulfill the users desire

16 Goal postcondition axiom buyATicketForItinerary logical-expression someItinerary memberOf tc:itinerary[ tc:passenger hasvalue _# memberOf prs:person[ prs:firstName hasvalue "Tim", prs:lastName hasvalue "Berners-Lee", prs: hasvalue ], tc:trip hasvalue _# memberOf tc:trainTrip[ tc:start hasvalue tc:innsbruckHbf, tc:end hasvalue tc:frankfurtHbf, tc:departure hasvalue _# memberOf dt:dateAndTime[ dt:date hasvalue _# memberOf dt:date[ dt:dayOfMonth hasvalue 17, dt:monthOfYear hasvalue 7, dt:year hasvalue 2004 ], dt:time hasvalue _# memberOf dt:time[ dt:hourOfDay hasvalue 18 ] ].

17 Capability – Pre Condition precondition axiom capPrecondition logical-expression InputBuyer memberOf po:buyer[ po:shipTo hasvalue BuyerAddress memberOf loc:address, po:billTo hasvalue BuyerAddress memberOf loc:address, po:purchaseIntention hasvalue X1 and X1 memberOf tc:itinerary[ tc:trip hasvalue X2 and X2 memberOf tc:trainTrip[ tc:start hasvalue X3 and X3 memberOf tc:station[ tc:locatedIn hasvalue StartCountry ], tc:end hasvalue X4 and X4 memberOf tc:station[ tc:locatedIn hasvalue EndCountry ], tc:departure hasvalue X5 and X5 memberOf dt:dateAndTime[dt:date hasvalue DepartureDate ] ] ], po:hasPayment Payment memberOf po:creditCard ] and (StartCountry=tc:austria or StartCountry=tc:germany) and (EndCountry=tc:austria or EndCountry=tc:germany) and DepartureDate > currentDate and ( (currentDate.date.year < Payment.expYear) or ( (currentDate.date.year = Payment.expYear) and ((currentDate.date.monthOfyear <= Payment.expMonth)))

18 Capability Post Condition postcondition axiom capPostcondition non-functional-properties dc:description "the output of the service is an itinerary with a trainTrip for which the start and end locations, and the departure date, are the ones in the precondition. The constraints on the start and end locations, and on the departure date, are, therefore, the ones in the precondition" logical-expression OutputItinerary memberOf tc:itinerary[ tc:trip hasvalue InputBuyer.purchaseIntention.trip ].

19 Session Structure WSML –Ontologies –Mediators –Goal as ground fact –Capability: pre and post conditions as restrictions Run time environment –Mapping to flora2 –„Demo“

20 FLORA-goal mygoal[postcondition-> myTicket:ticket[ itinerary -> _#:itinerary[ startLocation -> innsbruckHbf, endLocation -> frankfurtHbf, departure -> _#:dateAndTime[ date -> _#:date[ dayOfMonth->17, monthOfYear->5, year->2004 ], time.hourOfDay -> 18:hourOfDay ] ], traveller->_#:traveller[name -> 'Dieter Fensel'] ] ].

21 FLORA-capability oebbCap[postcondition] :- X:ticket[ itinerary->Y:itinerary[ startLocation -> StartLoc, endLocation -> EndLoc, departure -> Departure ], (StartLoc..locatedIn=austria ; StartLoc..locatedIn=germany), (EndLoc..locatedIn=austria ; EndLoc..locatedIn=germany), after(Departure, currentDate). Discovery: ?- X:capability[postcondition], X:capability[effect].

22 Further Resources Flora2 implementation: – Latest flora2 encodings: – bin/viewcvs.cgi/wsmo/d3/d32/resources/ bin/viewcvs.cgi/wsmo/d3/d32/resources/

Next: Michael Kiefer „Discovery using transaction logic reasoning“