RuleML 1.0 The Overarching Specification of Web Rules Harold Boley, Adrian Paschke, and Omair Shafiq NRC, FUB, and UoC.

Slides:



Advertisements
Similar presentations
Jeremy S. Bradbury, James R. Cordy, Juergen Dingel, Michel Wermelinger
Advertisements

SCL: A Logic Standard for Semantic Integration Christopher Menzel Philosophy Department Texas A&M University
A Web Rules WG Charter Focus Strawman Proposal Version 1.1, April 30, 2005 This Version Prepared by: Benjamin Grosof, Harold Boley, Michael Kifer, and.
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
The RuleML Family of Web Rule Languages PPSWR’06, Budva, Montenegro, 10 June 2006 Revised, RuleML’06, Athens, GA, 11 Nov Shortened, Vienna, SWT Course,
Architecture Representation
Sujit R Nair November 30,2009. Introduction Need / Requirement. Characteristics of current rule markup Languages. A sample Scenario of Rule Interchange.
Towards a DecSerFlow mapping to SCIFF Federico Chesani, Paola Mello, Marco Montali, Sergio Storari.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
1 A Description Logic with Concrete Domains CS848 presentation Presenter: Yongjuan Zou.
ISBN Chapter 3 Describing Syntax and Semantics.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Deploying a Distributed Symposium Planner Through Rule Responder Harold Boley Benjamin Craig Institute for Information Technology National Research Council,
TC3 Meeting in Montreal (Montreal/Secretariat)6 page 1 of 10 Structure and purpose of IEC ISO - IEC Specifications for Document Management.
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
Dynamic Ontologies on the Web Jeff Heflin, James Hendler.
CS 330 Programming Languages 09 / 18 / 2007 Instructor: Michael Eckmann.
Describing Syntax and Semantics
10/3/2000SIMS 257: Database Management -- Ray Larson Relational Algebra and Calculus University of California, Berkeley School of Information Management.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
1. Motivation Knowledge in the Semantic Web must be shared and modularly organised. The semantics of the modular ERDF framework has been defined model.
Why Analysis Process Refer to earlier chapters Models what the system will do makes it easier for understanding no environment considered (hence, system.
Harold Boley, Adrian Paschke, and Tara Athan (RuleML Initiative)RuleML Initiative The 6th International Symposium on Rules: Research Based and Industry.
The RuleML Initiative Prepared by (in alphabetical order): Harold Boley, Mike Dean, Benjamin Grosof, Michael Kifer, Said Tabet, Gerd Wagner W3C Workshop.
The RuleML Initiative, July/August 2001 International Semantic Web Working Symposium SWWS July - 1 August 2001, Stanford, California, USA Harold.
Principles of the SymposiumPlanner Instantiations of Rule Responder Zhili Zhao, Adrian Paschke, Chaudhry Usman Ali, and Harold Boley Corporate Semantic.
Ontologies Reasoning Components Agents Simulations Belief Update, Planning and the Fluent Calculus Jacques Robin.
An Introduction to Software Architecture
The 7th International Web Rule Symposium: Research Based and Industry Focused (RuleML 2013) July 11-13, 2013, Seattle, USA.
A Z Approach in Validating ORA-SS Data Models Scott Uk-Jin Lee Jing Sun Gillian Dobbie Yuan Fang Li.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
Pattern-directed inference systems
Requirements as Usecases Capturing the REQUIREMENT ANALYSIS DESIGN IMPLEMENTATION TEST.
An Ontological Framework for Web Service Processes By Claus Pahl and Ronan Barrett.
Rule Responder Agents in Virtual Organizations Harold Boley Benjamin Craig Institute for Information Technology National Research Council, Canada Fredericton,
Chapter 8 Object Design Reuse and Patterns. Object Design Object design is the process of adding details to the requirements analysis and making implementation.
1 The OO jDREW Reference Implementation of RuleML RuleML-2005, November 2005 Marcel Ball 1, Harold Boley 2, David Hirtle 1,2, Jing Mei 1,2, Bruce.
SEMANTIC AGENT SYSTEMS Towards a Reference Architecture for Semantic Agent Systems Applied to Symposium Planning Usman Ali.
Rules, RIF and RuleML.
Programming Languages and Design Lecture 3 Semantic Specifications of Programming Languages Instructor: Li Ma Department of Computer Science Texas Southern.
Issues in Ontology-based Information integration By Zhan Cui, Dean Jones and Paul O’Brien.
RuleML Rules Lite Harold Boley, NRC IIT e-Business Said Tabet, Macgregor Corp With Key Contributions from the Joint Committee DAML PI Meeting, Captiva.
From RuleML 0.88 to 0.89 Sublanguages Beyond Horn Logic ― Validation and Translation David Hirtle NRC-IIT, UNB April 21, 2005 Update: June 8, 2005.
Rule Responder: A Multi-Agent Web Platform for Collaborative Virtual Organizations Based on RuleML and OO jDREW Benjamin Craig University Of New Brunswick.
Reasoning about the Behavior of Semantic Web Services with Concurrent Transaction Logic Presented By Dumitru Roman, Michael Kifer University of Innsbruk,
Goals, CSF, Requirements. Formal semantics Where rules are interchanged between different tools and across language boundaries, assumptions about the.
Harold Boley NRC IIT e-Business MOST Workshop - Maritimes Open Source Technologies Université de Moncton Nov 10, 2004 Revised: Apr 14, 2005 The Open RuleML.
Deploying a Distributed Symposium Planner Through Rule Responder Benjamin Craig Harold Boley Institute for Information Technology National Research Council,
RuleML Query Answering with Personal OO jDREW Agents in Rule Responder Benjamin Craig Harold Boley Fredericton, NB National Research Council - IIT May.
1 RIF Design Roadmap Draft PM Harold Boley (NRC), Michael Kifer (Stony Brook U), Axel Polleres (DERI), Jos de Bruijn (DERI), Michael Sintek.
The Object-Oriented Database System Manifesto Malcolm Atkinson, François Bancilhon, David deWitt, Klaus Dittrich, David Maier, Stanley Zdonik DOOD'89,
The International RuleML Symposium on Rule Interchange and Applications Visualization of Proofs in Defeasible Logic Ioannis Avguleas 1, Katerina Gkirtzou.
1 An infrastructure for context-awareness based on first order logic 송지수 ISI LAB.
EEL 5937 Content languages EEL 5937 Multi Agent Systems Lecture 10, Feb. 6, 2003 Lotzi Bölöni.
Presented by Kyumars Sheykh Esmaili Description Logics for Data Bases (DLHB,Chapter 16) Semantic Web Seminar.
A Test Case Suite for Hornlog+ RuleML 1.01 A Test Case Suite for Hornlog+ RuleML 1.01 CS6795 Semantic Web Techniques Team 3: Zhenzhi Cui Radhika Yadav.
Mathematical Service Matching Using Description Logic and OWL Kamelia Asadzadeh Manjili
Definition and Technologies Knowledge Representation.
Logical Database Design and the Rational Model
SysML v2 Formalism: Requirements & Benefits
CmpE 583- Web Semantics: Theory and Practice RULES & RULE MARKUP
Rules, RIF and RuleML.
ECA-LP / ECA-RuleML: A Homogeneous ECA Logic Programming Language
Orlando Florida RuleML 2007 Thursday, October 25, 2007
Analysis models and design models
An Introduction to Software Architecture
ONTOMERGE Ontology translations by merging ontologies Paper: Ontology Translation on the Semantic Web by Dejing Dou, Drew McDermott and Peishen Qi 2003.
Software Development Process Using UML Recap
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

RuleML 1.0 The Overarching Specification of Web Rules Harold Boley, Adrian Paschke, and Omair Shafiq NRC, FUB, and UoC

Introduction Web Rules use various formats and packaging But semantics are often compatible Rulebases can then be reused with an interchange technology consisting of – a family of canonical rule languages – bi-directional translators between canonical languages and the languages to be interchanged 1

The RuleML Family Revisited (I) Taxonomy of subfamilies, languages, and sublanguages classified through – syntactic power of rules, as reflected by XML Schema Definitions (XSDs) – semantic power, as reflected by model-theoretic, proof-theoretic, and operational semantics Often, more syntactic power leads to more semantic power (e.g., introduction of Expr ession syntax pushes Datalog to Horn Logic (Hornlog) models) Syntactically neutral aspects of semantic power expressed by semantic attributes (e.g., negation attribute for semantics of N egation- a s- f ailure) 2

3

The RuleML Family Revisited (II) Diagram shows semantic subfamilies of Deliberation rules for inference and Reaction rules for (re)action Deliberation rules, via Higher Order Logic (HOL) and First Order Logic (FOL), subsume Derivation rules Derivation rules subsume Hornlog and Datalog languages and (syntactically) specialize to the condition-less Fact and conclusion-less Query languages (subsuming Integrity Constraint (IC) languages) 4

The RuleML Family Revisited (III) Reaction rules subsume Complex Event Processing (CEP) and Knowledge Representation (KR) rules, as well as Event-Condition-Action-Postcondition (ECAP) rules ECAP rules specialize to Event-Condition-Action (ECA) rules, which themselves specialize to – Condition-less Trigger (EA) rules – Event-less Production (CA) rules 5

The RuleML Family Revisited (IV) The RuleML family also has ‘mix-ins’ for Equality and (oriented) Rewriting, as well as for Naf The Reaction subfamily has mix-ins for Event Algebra, Action Algebra, etc. 6

The RuleML Family Revisited (V) Reaction RuleML syntactically extends condition (query) part of Derivation RuleML, whose condition- conclusion rules can be seen as ‘pure’ production rules with conclusions as actions that just assert derived facts Reaction RuleML is based on ‘pluggable’ ontologies (e.g., algebras) of (complex) actions, events, and – in the KR subfamily – situations 7

The RuleML Family Revisited (VI) Production RuleML defines condition-action rules Complex Event Processing (CEP) RuleML defines (complex) events and their efficient processing Reaction RuleML extends production rules with event-triggering part, syntactically defining ECA rules, and with further semantic extensions, e.g. for CEP rules 8

The RuleML Family Revisited (VII) RuleML rules combine all parts of both derivation and reaction rules This allows uniform XML serialization across the rules from the taxonomy A general element specifies the kind of rule with a style attribute, where shortcuts allow specialized elements such as and 9

RuleML and W3C RIF (I) RuleML provided input to RIF on several levels – Use of ‘striped’ XML – Structuring of rule classes into family of sublanguages Partial mappings between, e.g., – Datalog RuleML and RIF-Core – Derivation RuleML and RIF Basic Logic Dialect (RIF-BLD) – Production RuleML and RIF Production Rule Dialect (RIF-PRD) 10

RuleML and W3C RIF (II) RIF WG has terminated end of September 2010 until uncertain revival for a possible RIF 2 RIF's standard logic Web rule dialects Core and BLD come with rigorous model-theoretic semantics for cascaded design choices However, W3C Core and BLD Recommendations cover only fraction of Web rule space and their very rigor gives existing Web rule languages little room for RIF conformance The RuleML Initiative has thus been co-hosting development of – further (non-standard extensions or) RIF dialects such as Core Answer Set Programming Dialect (RIF-CASPD), using flexibility-enhancing Framework for Logic Dialects (RIF-FLD)non-standard extensionsRIF-CASPD – RIF RuleML sublanguages such as Datalog with equality plus externals (Dlex) and envisioned Reaction Rule Dialect (RRD) 11

RuleML Design Rationale: Syntax Minimality: language provides only set of needed language features, i.e., except for macro-like extensibility shortcuts and order-insensitive abstract role syntax, same construct is not expressed by different syntax Referential transparency: same language construct always expresses same semantics regardless of context in which it is used Orthogonality: language constructs are pairwise independent, thus permitting meaningful systematic combination 12

RuleML Design Rationale: Semantics RuleML, as general interchange format, can be customized for various semantics of underlying (platform-specific) rule languages that should be represented and interchanged Although a specific default semantics is always predefined for each RuleML language, the intended semantics of a rulebase can override it by using explicit values for corresponding semantic attributes E.g., a derivation rulebase represented in Datalog RuleML with Naf can be explicitly declared to have Well-Founded ( WF ) or Answer Set ( AS ) semantics, with AS as the default This flexible semantics approach of RuleML allows refining the semantics of a syntactically represented rulebase 13

Deliberation Rules: Datalog RuleML Running example: Ternary Rel ation discount conditional on unary premium and regular discount cust prod 5.0 percent premium cust regular prod "The discount for a customer buying a product is 5.0 % if the customer is premium and the product is regular." 14

Example: Turned Around & Stripe-Skipped premium cust regular prod discount cust prod 5.0 percent 15

Example: Slotted Variant discount buyer cust item prod rebate 5.0 percent... Uses pairs key → term in conclusion's 3-ary relation, represented as metaroles key term 16

Example: Typed Variant discount cust prod 5.0 percent... Uses Var iables with attribute type, whose values are IRIs pointing to ontological class definitions on the Web specified in RDFS and OWL 17

Hornlog RuleML (I) Extension of Datalog RuleML, mainly its Atom s: Allows Fun ctional Expr essions as terms in Atom s and in other Expr s. Can be uninterpreted, using attribute per with filler "copy" or interpreted, using it with filler "value" Refine initial example introducing uninterpreted Expr representing the term percent[5.0] 18

Hornlog RuleML (II) discount cust prod percent

First Order Logic (FOL) RuleML Extension of Hornlog RuleML mainly adding classical negation and (explicit) quantifiers discount cust prod 5.0 percent bonus cust dollar... "A customer receives either a discount of 5.0 percent for buying a product or a bonus of dollar if the customer is premium and the product is regular." Xor(A,B) ↔ And(Or(A,B),Not(And(A,B))) 20

RuleML with Equality Equal ity formulas act as extension to sublanguages such as Datalog RuleML, Hornlog RuleML, and FOL RuleML. Equal has oriented attribute with value " no " default discount cust prod 5.0 percent... 21

Naf RuleML FOL: Strong Neg ation. Here: N egation- a s- f ailure (as in LP) Distinguishes A nswer S et (incl. stable model) semantics and W ell- F ounded semantics, using semantic attribute, negation, on the enclosing Rulebase, with default AS discount cust … late-paying cust

Reaction Rules: Four Subfamilies 23 Production RuleML: Production Rules (Condition-Action rules) ECA RuleML: Event-Condition-Action (ECA) rules CEP RuleML: Rule-based Complex Event Processing (complex event processing reaction rules, (distributed) event messaging reaction rules, query reaction rules, etc.) KR Reaction RuleML: Knowledge Representation Event/Action/Situation Transition/Process Logics and Calculi

Reaction Rules: Specializable Syntax 24 <!–- e.g. qualifying rule declarations, e.g. priorities, validity, strategy --> <!-- quantifying rule declarations, e.g. variable bingings --> <!–- postcondition part after action, e.g. to check effects of execution --> <!-- alternative/else action, e.g. for default handling -->

Reaction RuleML – Example Rule Types Production Rule: Trigger Rule: ECA Rule:

Example: Messages... RuleML-2008 esb User getContact Sponsoring Contact... Event Message is local to the conversation state (oid) and pragmatic context (directive) FIPA ACL directive 26

Complex Event / Action Algebra Operators Action Algebra: Succession (Ordered Succession of Actions), Choice (Non- Determenistic Choice), Flow (Parallel Flow), Loop (Loops) Event Algebra: Sequence (Ordered), Disjunction (Or), Xor (Mutal Exclusive), Conjunction (And), Concurrent, Not, Any, Aperiodic, Periodic, AtLeast, ATMost Time and Event Interval Algebra During, Overlaps, Starts, Precedes, Meets, Equals, Finishes 27

Execution Semantics 1.Definition – Definition of event/action pattern e.g. by event algebra – Based on declarative formalization or procedural implementation – Defined over an atomic instant or an interval of time, events/actions, situation, transition etc. 2.Selection – Defines selection function to select one event from several occurred events (stored in an event instance sequence e.g. in memory, database/KB) of a particular type, e.g. “first”, “last” – Crucial for the outcome of a reaction rule, since the events may contain different (context) information, e.g. different message payloads or sensing information 3.Consumption – Defines which events are consumed after the detection of a complex event – An event may contribute to the detection of several complex events, if it is not consumed – Distinction in event messaging between “multiple receive” and “single receive” – Events which can no longer contribute, e.g. are outdated, should be removed 4.Execution – Actions might have an internal effect i.e. change the knowledge state leading to state transition from (pre)-condition state to post-condition state. – The effect might be hypothetical (e.g. a hypothetical state via a computation) or persistent (update of the knowledge base), – Actions might have an external side effect 28

Event & Action Semantics Complex Events Semantics based on KR event logics – Interval-based KR Event Calculus semantics (model-theory + proof theory) based on time intervals modeled as fluents – Example: B;(A;C) (Sequence) Update Actions – Updates: Add / Remove / Change extensional and intensional knowledge – Transition to new knowledge state: or – Transition Paths: – Transactional Logic Semantics T1 T2T3T4 BAC 29

Selected Reaction RuleML Features Action Algebra: Succession (Ordered Sequence), Choice (Non- Deterministic Selection), Flow (Parallel Concurrent Flow), Loop (Iteration) Event Algebra: Sequence (Ordered), Disjunction (Or), Xor (Mutal Exclusion), Conjunction (And), Concurrent, Not, Any, Aperiodic, Periodic Event / action messaging External data models and ontologies Different detection, selection and consumption policies Intervals (Time, Event) Situations (States, Fluents) External event query languages... 30

Conclusion RuleML 1.0 is unifying family of languages across all industrially relevant Web rules Translators between sublanguages of RuleML, RIF, PRR, SBVR, Jess, Prova (ISO Prolog) have been written and further ones are under development Modal RuleML could be further developed in collaboration with corresponding Common Logic extensions, as also needed for SBVR 31