Rules, RIF and RuleML.

Slides:



Advertisements
Similar presentations
Dr. Leo Obrst MITRE Information Semantics Information Discovery & Understanding Command & Control Center February 6, 2014February 6, 2014February 6, 2014.
Advertisements

Requirements. UC&R: Phase Compliance model –RIF must define a compliance model that will identify required/optional features Default.
OMG standards and related glossary entries. Proposed glossary entries Meta-model Production rule PRR SOA JSR 94 Business rules, SBVR and related entries.
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.
An Introduction to Description Logics
WIMS 2014, June 2-4Thessaloniki, Greece1 Optimized Backward Chaining Reasoning System for a Semantic Web Hui Shi, Kurt Maly, and Steven Zeil Contact:
Sujit R Nair November 30,2009. Introduction Need / Requirement. Characteristics of current rule markup Languages. A sample Scenario of Rule Interchange.
Of 27 lecture 7: owl - introduction. of 27 ece 627, winter ‘132 OWL a glimpse OWL – Web Ontology Language describes classes, properties and relations.
1 Ontology Language Comparisons doug foxvog 16 September 2004.
For Friday Finish chapter 10 No homework (get started on program 2)
Forward Chaining Systems also known as Production Systems commonly used for Expert Systems knowledge based must consist of facts and rules (Horn clauses,
Intelligent systems Lecture 6 Rules, Semantic nets.
The Web of data with meaning... By Michael Griffiths.
Ontologies and the Semantic Web by Ian Horrocks presented by Thomas Packer 1.
Chapter 8: Web Ontology Language (OWL) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley, 2005.
Dynamic Ontologies on the Web Jeff Heflin, James Hendler.
COMP 6703 eScience Project Semantic Web for Museums Student : Lei Junran Client/Technical Supervisor : Tom Worthington Academic Supervisor : Peter Strazdins.
Semantics For the Semantic Web: The Implicit, the Formal and The Powerful Amit Sheth, Cartic Ramakrishnan, Christopher Thomas CS751 Spring 2005 Presenter:
DL systems DL and the Web Ilie Savga
November 11, 2004 July 20, 2004 Common Logic (CL) Development Current project Harry Delugach Univ. of Alabama in Huntsville
OWL, DL and Rules Based on slides from Grigoris Antoniou, Frank van Harmele and Vassilis Papataxiarhis.
Chapter 5 Non monoticic rules Based on slides from Grigoris Antoniou and Frank van Harmelen.
Distributed Semantic Web Knowledge Representation and Inferencing Harold Boley Harold Boley UNB, Faculty of Computer Science Keynote at ICDIM 2010ICDIM.
Harold Boley, Adrian Paschke, and Tara Athan (RuleML Initiative)RuleML Initiative The 6th International Symposium on Rules: Research Based and Industry.
Semantic Web outlook and trends May The Past 24 Odd Years 1984 Lenat’s Cyc vision 1989 TBL’s Web vision 1991 DARPA Knowledge Sharing Effort 1996.
Ontology Development Kenneth Baclawski Northeastern University Harvard Medical School.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Ontologies Reasoning Components Agents Simulations Belief Update, Planning and the Fluent Calculus Jacques Robin.
An Introduction to Description Logics. What Are Description Logics? A family of logic based Knowledge Representation formalisms –Descendants of semantic.
Knowledge representation
The 7th International Web Rule Symposium: Research Based and Industry Focused (RuleML 2013) July 11-13, 2013, Seattle, USA.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
Enabling Access to Sound Archives through Integration, Enrichment and Retrieval WP2 – Media Semantics and Ontologies.
An Introduction to Description Logics (chapter 2 of DLHB)
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Description Logics: Logic foundation of Semantic Web Semantic.
Using RDF in Agent-Mediated Knowledge Architectures K. Hui, S. Chalmers, P.M.D. Gray & A.D. Preece University of Aberdeen U.K
SEMANTIC AGENT SYSTEMS Towards a Reference Architecture for Semantic Agent Systems Applied to Symposium Planning Usman Ali.
COM362 Knowledge Engineering Inferencing 1 Inferencing: Forward and Backward Chaining John MacIntyre
Artificial Intelligence 2004 Ontology
Advanced Topics in the Semantic Web: Semantic Services for Business Process Management - Overview - Harold Boley Semantic Web Laboratory NRC-IIT and UNB-CS.
Dictionary based interchanges for iSURF -An Interoperability Service Utility for Collaborative Supply Chain Planning across Multiple Domains David Webber.
Chapter 4: Inference Techniques
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.
Goals, CSF, Requirements. Formal semantics Where rules are interchanged between different tools and across language boundaries, assumptions about the.
Dr. Bhavani Thuraisingham September 18, 2006 Building Trustworthy Semantic Webs Lecture #9: Logic and Inference Rules.
1 RIF Design Roadmap Draft PM Harold Boley (NRC), Michael Kifer (Stony Brook U), Axel Polleres (DERI), Jos de Bruijn (DERI), Michael Sintek.
Of 35 lecture 17: semantic web rules. of 35 ece 627, winter ‘132 logic importance - high-level language for expressing knowledge - high expressive power.
The International RuleML Symposium on Rule Interchange and Applications Visualization of Proofs in Defeasible Logic Ioannis Avguleas 1, Katerina Gkirtzou.
Using DSDL plus annotations for Netconf (+) data modeling Rohan Mahy draft-mahy-canmod-dsdl-01.
OWL, DL and Rules Based on slides from Grigoris Antoniou, Frank van Harmele and Vassilis Papataxiarhis.
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.
Implementation of Ontology Based Context-awareness Framework Ki-Chul Lee, Jung-Hoon Kim International Conference on Multimedia and Ubiquitous Engineering.
Semantic Web in Depth Rules Dr Nicholas Gibbins
OWL, DL and rules Based on slides from Grigoris Antoniou, Frank van Harmele and Vassilis Papataxiarhis.
Components.
OWL, DL and Rules Based on slides from Grigoris Antoniou, Frank van Harmele and Vassilis Papataxiarhis.
Limitations of First-Order Logic
Building Trustworthy Semantic Webs
EA C461 – Artificial Intelligence Logical Agent
Lecture #11: Ontology Engineering Dr. Bhavani Thuraisingham
Using Rules with Ontologies in the Semantic Web
ece 720 intelligent web: ontology and beyond
CmpE 583- Web Semantics: Theory and Practice RULES & RULE MARKUP
Rules, RIF and RuleML.
ece 720 intelligent web: ontology and beyond
Knowledge Representation and Inference
Model-Driven Semantic Web Rule Engineering
Scalable and Efficient Reasoning for Enforcing Role-Based Access Control
Distributed Semantic Web Knowledge Representation and Inferencing
Presentation transcript:

Rules, RIF and RuleML

Rule Knowledge Rules generalize facts by making them conditional on other facts (often via chaining through further rules) Rules generalize taxonomies via multiple premises, n-ary predicates, structured arguments, etc. Two uses of rules  top-down (backward-chaining) and bottom-up (forward-chaining)  represented only once To avoid n2–n pairwise translators: Int'l standards with 2n–2 in-and-out translators: RuleML: Rule Markup Language (work with ISO, OMG, W3C, OASIS) Deliberation RuleML 1.0 released as a de facto standard ISO: Common Logic (incl. CGs & KIF: Knowledge Interchange Format) Collaboration on Relax NG schemas for XCL 2 / CL RuleML OMG: Production Rules Representation (PRR), SBVR, and API4KB W3C: Rule Interchange Format (RIF) Gave rise to open-source and commercial RIF implementations OASIS: LegalRuleML

The interchange approach W3C’s RDF stack is an integrated solution for encoding & interchanging knowledge Supporting OWL (DL) constrains it quite a bit E.g., preventing adoption of an OWL rule standard There are other approaches to standardiz-ing rule languages for knowledge exchange RuleML: Rule Markup Language, an XML approach for representing rules RIF: Rule Interchange Format, a W3C standard for exchanging rules Neither tries to be compatible with OWL

Many different rule languages There are rule languages families: logic, logic programming, production, procedural, etc. Instances in a family may differ in their syntax, semantics or other aspects Jess production rule language (defrule r42 (parent ?a ?b) (male ?a) => (assert (father ?a ?b))) Prolog logic programming language father(A,B) :- parent(A,B), Male (A). Common Logic logic format (=> (and (paent ?a ?b) (male ?a)) (father ?a ?b))

X Interchange Format Rather than have N2 translators for N languages, we could Develop a common rule interchange format Let each language do import/export mappings for it Two modern interchange formats for rules RuleML: Rule Markup Language, an XML approach for representing rules RIF: Rule Interchange Format, a W3C standard for exchanging rules

RuleML RuleML's goal: express both forward (bottom-up) and backward (top-down) rules in XML See http://ruleml.org/ Effort began in 2001 and has informed and been informed by W3C efforts An “open network of individuals and groups from both industry and academia”

Taxonomy of RuleML rules from Boley et. al., RuleML 1.0: The Overarching Specification of Web Rules, 2010. http://bit.ly/RuleML

RIF W3C Rule Interchange Format Three dialects: Core, BLD, and PRD Core: common subset of most rule engines, a "safe" positive datalog with builtins BLD (Basic Logic Dialect): adds logic functions, equality and named arguments, ~positive horn logic PRD (Production Rules Dialect): adds action with side effects in rule conclusion Has a mapping to RDF

An example of a RIF rule From http://w3.org/2005/rules/wiki/Primer Document( Prefix(rdfs <http://www.w3.org/2000/01/rdf-schema#>) Prefix(imdbrel <http://example.com/imdbrelations#>) Prefix(dbpedia <http://dbpedia.org/ontology/>) Group( Forall ?Actor ?Film ?Role ( If And(imdbrel:playsRole(?Actor ?Role) imdbrel:roleInFilm(?Role ?Film)) Then dbpedia:starring(?Film ?Actor) ) ) )

Another RIF example, with guards From http://w3.org/2005/rules/wiki/Primer Document( Prefix(rdf <http://www.w3.org/1999/02/22-rdf-syntax-ns#>) Prefix(rdfs <http://www.w3.org/2000/01/rdf-schema#>) Prefix(imdbrel <http://example.com/imdbrelations#>) Prefix(dbpedia http://dbpedia.org/ontology/) Group( Forall ?Actor ?Film ?Role ( If And(?Actor # imdbrel:Actor ?Film # imdbrel:Film ?Role # imdbrel:Character imdbrel:playsRole(?Actor ?Role) imdbrel:roleInFilm(?Role ?Film)) Then dbpedia:starring(?Film ?Actor) )))

Rif document can contain facts The following will conclude bio:mortal(phil:Socrates) Document( Prefix(bio <http://example.com/biology#>) Prefix(phil <http://example.com/philosophers#>) Group( If bio:human(?x) Then bio:mortal(?x) ) bio:human(phil:Socrates) ))

Another RIF example (PRD) From http://w3.org/2005/rules/wiki/Primer Document( Prefix(rdfs <http://www.w3.org/2000/01/rdf-schema#>) Prefix(imdbrelf <http://example.com/fauximdbrelations#>) Prefix(dbpediaf <http://example.com/fauxibdbrelations>) Prefix(ibdbrelf <http://example.com/fauxibdbrelations#>) Group( Forall ?Actor ( If Or(Exists ?Film (imdbrelf:winAward(?Actor ?Film)) Exists ?Play (ibdbrelf:winAward(?Actor ?Play)) ) Then assert(dbpediaf:awardWinner(?Actor)) ) imdbrelf:winAward(RobertoBenigni LifeIsBeautiful) )) This document has a rule and a fact

Why do we need YAKL YAKL: Yet another knowledge language Rules are good for representing knowledge Rule idioms have powerful features that are not and can not be supported by OWL Non-monotonic rules Default reasoning Arbitrary functions, including some with with side effects etc. YA from YACC from Steve Johnson's "Yacc: Yet Another Compiler-Compiler" circa 1970

Non-monotonic rules Non-monotonic rules use an “unprovable” operator This can be used to implement default reasoning, e.g., assume P(X) is true for some X unless you can prove hat it is not Assume that a bird can fly unless you know it can not

monotonic canFly(X) :- bird (X) bird(X) :- eagle(X) bird(X) :- penguin(X) eagle(sam) penguin(tux)

Non-monotonic canFly(X) :- bird (X), \+ not(canFly(X)) bird(X) :- eagle(X) bird(X) :- penguin(X) not(canFly(X)) :- penguin(X) eagle(sam) penguin(tux)

Default rules in Prolog In prolog it’s easy to have Default( ?head :- ?body ). Expand to ?head :- ?body, +\ not(?head) . So default(canFly(X) :- bird(X)) Expands to canFly(X) :- bird(X), \+(not(canFly(X))).

Rule priorities This approach can be extended to implement systems where rules have priorities This seems to be intuitive to people – used in many human systems E.g., University policy overrules Department policy The “Ten Commandments” can not be contravened

Two Semantic Webs?

Limitations The rule inference support not integrated with OWL classifier New assertions by rules may violate exist-ing restrictions in ontology New inferred knowledge from classification may produce knowledge useful for rules Ontology Classification Rule Inference Inferred Knowledge 1 2 4 3

Limitations Existing solution: solve possible conflicts manually Ideal solution: a single module for both ontology classification and rule inference What if we want to combine non-monotonic features with classical logic? Partial Solutions: Answer set programming Externally via appropriate rule engines

Summary Horn logic is a subset of predicate logic that allows efficient reasoning, orthogonal to description logics Horn logic is the basis of monotonic rules DLP and SWRL are two important ways of combining OWL with Horn rules. DLP is essentially the intersection of OWL and Horn logic SWRL is a much richer language

Summary (2) Nonmonotonic rules are useful in situations where the available information is incomplete They are rules that may be overridden by contrary evidence Priorities are sometimes used to resolve some conflicts between rules Representation XML-like languages is straightforward