Rule Interchange Format

Rule Interchange Format

Where are we? Semantic Web # Title 1 Introduction 2 Semantic Web Architecture 3 Resource Description Framework (RDF) 4 Web of data 5 Generating Semantic Annotations Rule Interchange Format 6 Storage and Querying 7 Web Ontology Language (OWL) 8 Rule Interchange Format (RIF) 9 Reasoning on the Web 10 Ontologies 11 Social Semantic Web 12 Semantic Web Services 13 Tools 14 Applications © Copyright 2010 Dieter Fensel and Federico Facca 1 2 Agenda Semantic Web Stack Adapted from http://en.wikipedia.org/wiki/Semantic_Web_Stack Adapted from http://en.wikipedia.org/wiki/Semantic_Web_Stack 1. Introduction and Motivation 2. Technical Solution 1. Principles 2. Dialects 3. Syntax 4. Semantic 5. Tools 3. Illustration by an example 4. Extensions 5. Summary 6. References 3 4 1 Why Rule Exchange? (and not The One True Rule Language) • Many different paradigms for rule languages – Pure first-order – Logic programming/deductive databases – Production rules – Reactive rules • Many different features, syntaxes • Different commercial interests • Many egos, different preferences, ... MOTIVATION [Michael Kifer, Rule Interchange Format: The Framework] 5 6 Why Different Dialects? The importance of logic (and Not Just One Dialect) • Again: many paradigms for rule languages • Rules needs a proper formalization – First-order rules – Disambiguation: a rules should be always be interpreted consistently according its underlying formal semantics – Logic programming/deductive databases – Reactive rules • Rules need to be expressed in a high level language – Production rules • Rules are generally structured in the form IF X THEN Y • Many different semantics – Importance of consequence – Classical first-order – Stable-model semantics for negation Logic provides – Well-founded semantics for negation • High-level language – ... ... ... • Well-understood formal semantics • A carefully chosen set of interrelated dialects can serve the purpose of • Precise notion of logical consequence sharing and exchanging rules over the Web • Proof systems – Automatic derivation of statements from a set of premises – Sound and complete (Predicate logic) – More expressive logics (higher-order logics) are not [Michael Kifer, Rule Interchange Format: The Framework] 7 8 2 First Order Logic in Short First Order Logic in Short • “Classical” logic • Propositional logic deals only with truth-functional validity: any – Based on propositional logic (Aristotle, ¿300 BC) assignment of truth-values to the variables of the argument should – Developed in 19th century (Frege, 1879) make either the conclusion true or at least one of the premises false. • Semi-decidable logic – All men are mortal – Enumerate all true sentences – Socrates is a man – If a sentence is false, the algorithm might not terminate – Therefore, Socrates is mortal • FOL is the basis for – Logic Programming: Horn Logic • which upon translation into propositional logic yields: – Description Logics: 2-variable fragment – A • A logic for describing object, functions and relations – B – Objects are “things” in the world: persons, cars, etc. – Therefore C – Functions take a number of objects as argument and “return” an object, depending on the arguments: addition, father-of, etc. – Relations hold between objects: distance, marriage, etc. – Often, a function can also be modeled as a relation 9 10 First Order Logic in Short Why cannot we use FOL in the SW? • According to propositional logic, this translation is invalid. • FOL is undecidable • Propositional logic validates arguments according to their structure, and • Reasoning is hard nothing in the structure of this translated argument (C follows from A and B, for arbitrary A, B, C) suggests that it is valid. • You do not need to use an atomic bomb to kill a mosquito! • First Order Logic satisfies such needs! • … we need a simpler logic family! • Is this enough to apply such logic on the Web? Unfortunately no… FOL is not decidable and not efficient. • Can we maintain some of the advantages of FOL and achieve decidability, without stepping back to propositional logic limitations? • Neither families derived from it are ready to scale a the Web size (HL and DL). • There are many logic families originated from FOL trying to deal with such problems 11 12 3 Horn Logic 1/3 Horn Logic 2/3 • Simpler knowledge representation • A Horn formula is a disjunction of literals with one positive literal, with all – “if ... then ...” rules variables universally quantified: – (∀) ¬ B1 ∨ ... ∨ ¬ Bn ∨ H • Efficient reasoning algorithms, e.g. – Forward chaining • Can be written as an implication: – Backward chaining – (∀) ¬ B1 ∨ ... ∨ ¬ Bn → H – SLDNF resolution • Decidable reasoning • Basis for Logic Programming and Deductive Databases – without function symbols – limited use of function symbols • e.g., no recursion over function symbols 13 14 Horn Logic 3/3: Algorithms Description Logics 1/2 • Forward chaining: An inference engine using forward chaining searches • A family of logic based Knowledge Representation formalisms the inference rules until it finds one where the antecedent (If clause) is – Descendants of semantic networks and KL-ONE known to be true. When found it can conclude, or infer, the consequent – Describe domain in terms of concepts (classes), roles (properties, relationships) and (Then clause), resulting in the addition of new information to its data. individuals • Backward chaining: An inference engine using backward chaining would • Distinguished by: search the inference rules until it finds one which has a consequent – Formal semantics (typically model theoretic) • Decidable fragments of FOL (often contained in C2) (Then clause) that matches a desired goal. If the antecedent (If clause) • Closely related to Propositional Modal & Dynamic Logics of that rule is not known to be true, then it is added to the list of goals (in • Closely related to Guarded Fragment order for your goal to be confirmed you must also provide data that – Provision of inference services confirms this new rule). • Decision procedures for key problems (satisfiability, subsumption, etc) • Implemented systems (highly optimized) • Selective Linear Definite clause resolution is the basic inference rule used in logic programming. SLDNF is an extension to deal with negation as failure. 15 16 4 Description Logics 2/2 • Formalization for frame-based knowledge representation • Frame = all information about a class – Superclasses – Property restrictions • Description Logic Knowledge Base – Terminological Box (TBox) • Class definitions – Assertional Box (ABox) • Concrete (instance) data TECHNICAL SOLUTION 17 18 What is the Rule Interchange Format (RIF)? • A set of dialects to enable rule exchange among different rule systems Rule system 1 semantics preserving mapping A rule interchange format to suite all the needs! RIF dialect X PRINCIPLES semantics preserving mapping Rule system 2 19 20 5 Rule Interchange Format Goals RIF Requirements 1 • Exchange of Rules • Compliance model – The primary goal of RIF is to facilitate the exchange of rules – Clear conformance criteria, defining what is or is not a conformant to RIF • Consistency with W3C specifications • Different semantics – A W3C specification that builds on and develops the existing range of specifications – RIF must cover rule languages having different semantics that have been developed by the W3C – Existing W3C technologies should fit well with RIF • Limited number of dialects – RIF must have a standard core and a limited number of standard dialects based upon • Wide scale Adoption that core – Rules interchange becomes more effective the wider is their adoption ("network effect“) • OWL data – RIF must cover OWL knowledge bases as data where compatible with RIF semantics [http://www.w3.org/TR/rif-ucr/] 21 22 RIF Requirements 2 Basic Principle: a Modular Architecture • RDF data • RIF wants to cover: rules in logic dialects and rules used – RIF must cover RDF triples as data where compatible with RIF semantics by production rule systems (e.g. active databases) • Dialect identification – The semantics of a RIF document must be uniquely determined by the content of the document, without out-of-band data • Logic rules only add knowledge • XML syntax • Production rules change the facts! – RIF must have an XML syntax as its primary normative syntax • Merge rule sets • Logic rules + Production Rules? – RIF must support the ability to merge rule sets – Define a logic-based core and a separate production-rule core • Identify rule sets – If there is an intersection, define the common core – RIF must support the identification of rule sets [http://www.w3.org/TR/rif-ucr/] 23 24 6 RIF Architecture Extended syntax “Modules” can be and semanMcs for added to coVer neW logic rules needs! RIF-FLD extends Basic syntax and Syntax and semanMcs for semanMcs for RIF-PRD logic rules producon rules RIF-BLD Introduction to RIF Dialects extends extends DIALECTS Data types RIF-RDF/ RIF-DTB RIF-Core uses uses OWL CompaMbility and Import of data Minimum common RIF-XML uses IntersecMon (syntax) data 25 26 RIF Dialects RIF Core • RIF Core • The Core dialect of the Rule Interchange Format – A language of definite Horn rules without function symbols (~ Datalog) – A language of production rules where conclusions are interpreted as assert actions • A subset of RIF-BLD and of RIF-PRD • RIF BLD – a well-formed RIF-Core formula (including document and condition formulas) is also a well-formed RIF-BLD formula – A language that lies within the intersection of first-order and logic-programming systems

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    20 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us