Chapter 5 Non monoticic rules Based on slides from Grigoris Antoniou and Frank van Harmelen.

Slides:



Advertisements
Similar presentations
Three-Step Database Design
Advertisements

Relational Database and Data Modeling
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.
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
Logic Programming Automated Reasoning in practice.
Most material was taken from the following source: – Grigoris Antoniou, Frank van Harmelen, A Semantic Web Primer, 2nd Edition, MIT Press, 2008, ISBN
An Introduction to RDF(S) and a Quick Tour of OWL
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
Copyright © Cengage Learning. All rights reserved.
Of 27 lecture 7: owl - introduction. of 27 ece 627, winter ‘132 OWL a glimpse OWL – Web Ontology Language describes classes, properties and relations.
Analyzing Minerva1 AUTORI: Antonello Ercoli Alessandro Pezzullo CORSO: Seminari di Ingegneria del SW DOCENTE: Prof. Giuseppe De Giacomo.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 The Basic (Flat) Relational Model.
Proof System HY-566. Proof layer Next layer of SW is logic and proof layers. – allow the user to state any logical principles, – computer can to infer.
DR-Prolog: A System for Defeasible Reasoning with Rules and Ontologies on the Semantic Web CS566 – Διαχειριση Γνώσης στο Διαδίκτυο Άνοιξη 2010.
Let remember from the previous lesson what is Knowledge representation
Describing Syntax and Semantics
Boyce/DiPrima 9th ed, Ch 11.2: Sturm-Liouville Boundary Value Problems Elementary Differential Equations and Boundary Value Problems, 9th edition, by.
Chapter 5 Logic and Inference: Rules
Transfer Pricing Management Control Systems Chapter 6 July 2014Iwan Pudjanegara SE., MM.1.
Group: Architecture, frameworks and tools to regulated open MAS Presented by Carolina Felicissimo.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
Knowledge Mediation in the WWW based on Labelled DAGs with Attached Constraints Jutta Eusterbrock WebTechnology GmbH.
Understanding Business Strategy
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Chapter 3 The Relational Model Transparencies Last Updated: Pebruari 2011 By M. Arief
Chapter 5A Semantic Web Primer 1 Chapter 5 Logic and Inference: Rules Grigoris Antoniou Paul Groth Frank van Harmelen Rinke Hoekstra.
Chapter 3 Discrete Time and State Models. Discount Functions.
Learning by Answer Sets Chiaki Sakama Wakayama University, Japan Presented at AAAI Spring Symposium on Answer Set Programming, March 2001.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
Chapter 5 Logic and Inference: Rules Based on slides from Grigoris Antoniou and Frank van Harmelen.
The Bernays-Schönfinkel Fragment of First-Order Autoepistemic Logic Peter Baumgartner MPI Informatik, Saarbrücken.
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
Logical Agents Logic Propositional Logic Summary
Of 41 lecture 4: rdf – basics and language. of 41 RDF basic ideas the fundamental concepts of RDF  resources  properties  statements ece 720, winter.
Chapter 5A Semantic Web Primer 1 Chapter 5 Logic and Inference: Rules Grigoris Antoniou Frank van Harmelen.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Introduction to Semantic Web Dr. Bhavani Thuraisingham The University of Texas at Dallas October 2014.
Rules, RIF and RuleML.
Introduction to Semantic Web Dr. Bhavani Thuraisingham The University of Texas at Dallas October 2012.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 17 Wednesday, 01 October.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
CSE314 Database Systems Lecture 3 The Relational Data Model and Relational Database Constraints Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson.
KR A Principled Framework for Modular Web Rule Bases and its Semantics Anastasia Analyti Institute of Computer Science, FORTH-ICS, Greece Grigoris.
Introduction to DTD A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list.
1 Reasoning with Infinite stable models Piero A. Bonatti presented by Axel Polleres (IJCAI 2001,
Dr. Bhavani Thuraisingham September 18, 2006 Building Trustworthy Semantic Webs Lecture #9: Logic and Inference Rules.
Chapter 5A Semantic Web Primer 1 Chapter 5 Logic and Inference: Rules Grigoris Antoniou Frank van Harmelen.
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.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
RuleML for the Semantic Web Harold Boley OntoWeb Kick-off WorkshopOntoWeb Kick-off Workshop, Heraklion, Greece, June 2001 Revised: 17 July 2001 (joint.
OWL, DL and Rules Based on slides from Grigoris Antoniou, Frank van Harmele and Vassilis Papataxiarhis.
CSCI 6315 Applied Database Systems Review for Midterm Exam I Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
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.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
1 The Relational Data Model David J. Stucki. Relational Model Concepts 2 Fundamental concept: the relation  The Relational Model represents an entire.
Chapter 8A Semantic Web Primer 1 Chapter 8 Conclusion and Outlook Grigoris Antoniou Frank van Harmelen.
OWL, DL and rules Based on slides from Grigoris Antoniou, Frank van Harmele and Vassilis Papataxiarhis.
Chapter 5 Logic and Inference: Rules
ece 720 intelligent web: ontology and beyond
Rules, RIF and RuleML.
ece 720 intelligent web: ontology and beyond
Chapter 5 Logic and Inference: Rules
Horn Clauses and Unification
Horn Clauses and Unification
Chapter 5 Logic and Inference: Rules
Horn Clauses and Unification
Model-Driven Semantic Web Rule Engineering
Presentation transcript:

Chapter 5 Non monoticic rules Based on slides from Grigoris Antoniou and Frank van Harmelen

Motivation – Negation in Rule Head In nonmonotonic rule systems, a rule may not be applied even if all premises are known because we have to consider contrary reasoning chains Now we consider defeasible rules that can be defeated by other rules Negated atoms may occur in the head and the body of rules, to allow for conflicts – p(X)  q(X) – r(X)  ¬q(X)

Defeasible Rules p(X)  q(X) r(X)  ¬q(X) Given also the facts p(a) and r(a) we conclude neither q(a) nor ¬q(a) – This is a typical example of 2 rules blocking each other Conflict may be resolved using priorities among rules Suppose we knew somehow that the 1st rule is stronger than the 2nd – Then we could derive q(a)

Origin of Rule Priorities Higher authority – E.g. in law, federal law preempts state law – E.g., in business administration, higher management has more authority than middle management Recency Specificity – A typical example is a general rule with some exceptions We abstract from the specific prioritization principle – We assume the existence of an external priority relation on the set of rules

Rule Priorities r1: p(X)  q(X) r2: r(X)  ¬q(X) r1 > r2 Rules have a unique label The priority relation to be acyclic

Competing Rules In simple cases two rules are competing only if one head is the negation of the other But in many cases once a predicate p is derived, some other predicates are excluded from holding – E.g., an investment consultant may base his recommendations on three levels of risk investors are willing to take: low, moderate, high – Only one risk level per investor is allowed to hold

Competing Rules (2) These situations are modelled by maintaining a conflict set C(L) for each literal L C(L) always contains the negation of L but may contain more literals

Defeasible Rules: Syntax r : L1,..., Ln  L r is the label {L1,..., Ln} the body (or premises) L the head of the rule L, L1,..., Ln are positive or negative literals A literal is an atomic formula p(t1,...,tm) or its negation ¬p(t1,...,tm) No function symbols may occur in the rule

Defeasible Logic Programs A defeasible logic program is a triple (F,R,>) consisting of – a set F of facts – a finite set R of defeasible rules – an acyclic binary relation > on R A set of pairs r > r' where r and r' are labels of rules in R

Lecture Outline 1. Introduction 2. Monotonic Rules: Example 3. Monotonic Rules: Syntax & Semantics 4. DLP: Description Logic Programs 5. SWRL: Semantic Web Rules Language 6. Nonmonotonic Rules: Syntax 7. Nonmonotonic Rules: Example 8. RuleML: XML-Based Syntax

Brokered Trade Brokered trades take place via an independent third party, the broker The broker matches the buyer’s requirements and the sellers’ capabilities, and proposes a transaction when both parties can be satisfied by the trade The application is apartment renting an activity that is common and often tedious and time-consuming

The Potential Buyer’s Requirements – At least 45 sq m with at least 2 bedrooms – Elevator if on 3rd floor or higher – Pet animals must be allowed Carlos is willing to pay: – $ 300 for a centrally located 45 sq m apartment – $ 250 for a similar flat in the suburbs – An extra $ 5 per square meter for a larger apartment – An extra $ 2 per square meter for a garden – He is unable to pay more than $ 400 in total If given the choice, he would go for the cheapest option His second priority is the presence of a garden His lowest priority is additional space

Carlos’s Requirements – Predicates Used size(x,y), y is the size of apartment x (in sq m) bedrooms(x,y), x has y bedrooms price(x,y), y is the price for x floor(x,y), x is on the y-th floor gardenSize(x,y), x has a garden of size y lift(x), there is an elevator in the house of x pets(x), pets are allowed in x central(x), x is centrally located acceptable(x), flat x satisfies Carlos’s requirements offer(x,y), Carlos is willing to pay $ y for flat x

Carlos’s Requirements – Rules r1:  acceptable(X) r2: bedrooms(X,Y), Y < 2  ¬acceptable(X) r3: size(X,Y), Y < 45  ¬acceptable(X) r4: ¬pets(X)  ¬acceptable(X) r5: floor(X,Y), Y > 2,¬lift(X)  ¬acceptable(X) r6: price(X,Y), Y > 400  ¬acceptable(X) r2 > r1, r3 > r1, r4 > r1, r5 > r1, r6 > r1

Carlos’s Requirements – Rules (2) r7: size(X,Y), Y ≥ 45, garden(X,Z), central(X)  offer(X, *Z + 5*(Y − 45)) r8: size(X,Y), Y ≥ 45, garden(X,Z), ¬central(X)  offer(X, *Z + 5(Y − 45)) r9: offer(X,Y), price(X,Z), Y < Z  ¬acceptable(X) r9 > r1

Representation of Available Apartments bedrooms(a1,1) size(a1,50) central(a1) floor(a1,1) ¬lift(a1) pets(a1) garden(a1,0) price(a1,300)

Available Apartments (2) FlatBedroomsSizeCentralFloorLiftPetsGardenPrice a1150yes1noyes0300 a2245yes0noyes0335 a3265no2 yes0350 a4255no1yesno15330 a5355yes0noyes15350 a6260yes3no 0370 a7365yes1noyes12375

Determining Acceptable Apartments If we match Carlos’s requirements and the available apartments, we see that flat a1 is not acceptable because it has one bedroom only (rule r2) flats a4 and a6 are unacceptable because pets are not allowed (rule r4) for a2, Carlos is willing to pay $ 300, but the price is higher (rules r7 and r9) flats a3, a5, and a7 are acceptable (rule r1)

Selecting an Apartment r10: cheapest(X)  rent(X) r11: cheapest(X), largestGarden(X)  rent(X) r12: cheapest(X), largestGarden(X), largest(X)  rent(X) r12 > r10, r12 > r11, r11 > r10 We must specify that at most one apartment can be rented, using conflict sets: – C(rent(x)) = {¬rent(x)}  {rent(y) | y ≠ x}

Lecture Outline 1. Introduction 2. Monotonic Rules: Example 3. Monotonic Rules: Syntax & Semantics 4. DLP: Description Logic Programs 5. SWRL: Semantic Web Rules Language 6. Nonmonotonic Rules: Syntax 7. Nonmonotonic Rules: Example 8. RuleML: XML-Based Syntax

RuleML In accordance with the Semantic Web vision: – Make rules machine-accessible. RuleML is an important standardization effort for rule markup on the Web. Actually a family of rule markup languages, corresponding to different kinds of rule languages: – derivation rules, integrity constraints, reaction rules Kernel: Datalog (function-free Horn logic)

RuleML (2) XML based – in the form of XML schemas – DTDs for earlier versions Straightforward correspondence between RuleML elements and rule components

Rule Components vs. RuleML programrulebase ruleImplies head body & of atomsAnd predicateRel constantInd varVar

An Example The discount for a customer buying a product is 7.5 percent if the customer is premium and the product is luxury.

RuleML Representation discount customer product 7.5

RuleML Representation (2) premium customer luxury product

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 used to resolve some conflicts between rules Representation XML-like languages is straightforward