Www.sti-innsbruck.at © Copyright 2008 STI INNSBRUCK www.sti-innsbruck.at Rule Interchange Format Semantic Web Lecture Lecture VIII – xx 2009 Dieter Fensel.

Slides:



Advertisements
Similar presentations
SCL: A Logic Standard for Semantic Integration Christopher Menzel Philosophy Department Texas A&M University
Advertisements

W3C Rules Interchange Format Basic Logic Dialect
Dr. Leo Obrst MITRE Information Semantics Information Discovery & Understanding Command & Control Center February 6, 2014February 6, 2014February 6, 2014.
Requirements. UC&R: Phase Compliance model –RIF must define a compliance model that will identify required/optional features Default.
CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
Answer Set Programming Overview Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma de Guadalajara
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.
© Copyright 2008 STI INNSBRUCK Rule Interchange Format Semantic Web Lecture Lecture VIII – xx 2009 Dieter Fensel.
1 Slides are based on Lecture Notes by Dieter Fensel and Federico Facca, and Ivan Herman COMPSCI 732: Semantic Web Technologies Rule Interchange Format.
Identity Management Based on P3P Authors: Oliver Berthold and Marit Kohntopp P3P = Platform for Privacy Preferences Project.
Knowledge Representation Methods
COMP 6703 eScience Project Semantic Web for Museums Student : Lei Junran Client/Technical Supervisor : Tom Worthington Academic Supervisor : Peter Strazdins.
From SHIQ and RDF to OWL: The Making of a Web Ontology Language
1 © Copyright 2010 Dieter Fensel and Federico Facca Semantic Web Rule Interchange Format.
An OWL based schema for personal data protection policies Giles Hogben Joint Research Centre, European Commission.
RDF: Concepts and Abstract Syntax W3C Recommendation 10 February Michael Felderer Digital Enterprise.
1 Rule Interchange Format: The Framework Michael Kifer State University of New York at Stony Brook.
1. Motivation Knowledge in the Semantic Web must be shared and modularly organised. The semantics of the modular ERDF framework has been defined model.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Ontology Development Kenneth Baclawski Northeastern University Harvard Medical School.
Knowledge Interchange Format Michael Gruninger National Institute of Standards and Technology
CIM and UML Overview Terry Saxton Xtensible Solutions
1 CENTRIA, Dept. Informática da Faculdade de Ciências e Tecnologia, Universidade Nova de Lisboa, Caparica, Portugal. 2 Institute of Computer Science,
What Agencies Should Know About PDF/A September 20, 2005 Susan J. Sullivan, CRM
A Z Approach in Validating ORA-SS Data Models Scott Uk-Jin Lee Jing Sun Gillian Dobbie Yuan Fang Li.
© Copyright 2008 STI INNSBRUCK RDF and RDF Schema Semantic Web Lecture Lecture III – xx 2009 Dieter Fensel Slides.
What Agencies Should Know About PDF/A-1 April 6, 2006 Mark Giguere
Metadata. Generally speaking, metadata are data and information that describe and model data and information For example, a database schema is the metadata.
Pattern-directed inference systems
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
Efficient RDF Storage and Retrieval in Jena2 Written by: Kevin Wilkinson, Craig Sayers, Harumi Kuno, Dave Reynolds Presented by: Umer Fareed 파리드.
Rules, RIF and RuleML.
These courseware materials are to be used in conjunction with Software Engineering: A Practitioner’s Approach, 6/e and are provided with permission by.
LDK R Logics for Data and Knowledge Representation PL of Classes.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Of 33 lecture 1: introduction. of 33 the semantic web vision today’s web (1) web content – for human consumption (no structural information) people search.
CoOL: A Context Ontology Language to Enable Contextual Interoperability Thomas Strang, Claudia Linnhoff-Popien, and Korbinian Frank German Aerospace Centor.
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.
Reasoning about the Behavior of Semantic Web Services with Concurrent Transaction Logic Presented By Dumitru Roman, Michael Kifer University of Innsbruk,
Of 38 lecture 6: rdf – axiomatic semantics and query.
Goals, CSF, Requirements. Formal semantics Where rules are interchanged between different tools and across language boundaries, assumptions about the.
USB for Audio There are also several USB Audio chips. You install a custom driver on the host computer, and the USB sound device appears as a Windows (or.
ece 627 intelligent web: ontology and beyond
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.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Towards the Adaptive Semantic Web Peter Dolog Nicola Henze Wolfgang Nejdl Michael Sintek.
EEL 5937 Content languages EEL 5937 Multi Agent Systems Lecture 10, Feb. 6, 2003 Lotzi Bölöni.
OWL Web Ontology Language Summary IHan HSIAO (Sharon)
Enable Semantic Interoperability for Decision Support and Risk Management Presented by Dr. David Li Key Contributors: Dr. Ruixin Yang and Dr. John Qu.
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.
Artificial Intelligence Knowledge Representation.
Semantic Web in Depth Rules Dr Nicholas Gibbins
1 © Copyright 2010 Dieter Fensel and Federico Facca Semantic Web Rule Interchange Format.
Artificial Intelligence Logical Agents Chapter 7.
Review of UCR Adrian Giurca. General commenst Not too many differences between this draft and the previous one I believe that the UCR document needs to.
OWL (Ontology Web Language and Applications) Maw-Sheng Horng Department of Mathematics and Information Education National Taipei University of Education.
Rule-based Reasoning in Semantic Text Analysis
Components.
The Semantic Web By: Maulik Parikh.
Rule Interchange Format: The Framework
CmpE 583- Web Semantics: Theory and Practice RULES & RULE MARKUP
Rules, RIF and RuleML.
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
ece 720 intelligent web: ontology and beyond
Rule Interchange Format (RIF) Anna Fensel
Logics for Data and Knowledge Representation
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Predicates and Quantifiers
Presentation transcript:

© Copyright 2008 STI INNSBRUCK Rule Interchange Format Semantic Web Lecture Lecture VIII – xx 2009 Dieter Fensel Slides by: Federico M. Facca

Where are we? #DateTitle 1Introduction 2Semantic Web Architecture 3RDF and RDF Schema 4Web of hypertext (RDFa, Microformats) and Web of data 5Semantic Annotation 6Repositories and SPARQL 7The Web Ontology Language 8Rule Interchange Format 9Web-scale reasoning 10Social Semantic Web 11Ontologies and the Semantic Web 12Semantic Web Services 13Tools 14Applications 15Exam 2

Overview Introduction and Motivation Technical Solution –The Rule Interchange Format (RIF) –RIF Framework –Basic Logic Dialect (BLD) Illustration by a large example Extensions 3

Adapted from Semantic Web Stack 4

INTRODUCTION AND MOTIVATION 5

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,... 6 [Michael Kifer, Rule Interchange Format: The Framework]

Why different Dialects? (and not just one dialect) Again: many paradigms for rule languages –First-order rules –Logic programming/deductive databases –Reactive rules –Production rules Many different semantics –Classical first-order –Stable-model semantics for negation –Well-founded semantics for negation – A carefully chosen set of interrelated dialects can serve the purpose of sharing and exchanging rules over the Web 7 [Michael Kifer, Rule Interchange Format: The Framework]

TECHNICAL SOLUTION 8

THE RULE INTERCHANGE FORMAT An exchange format for rules 9

What is the Rule Interchange Format (RIF)? A set of dialects to enable rule exchange among different rule systems 10 Rule system 1 Rule system 2 RIF dialect X semantics preserving mapping semantics preserving mapping

Rule Interchange Format Goals Exchange of Rules –The primary goal of RIF is to facilitate the exchange of rules. Consistency with W3C specifications –A W3C specification that builds on and develops the existing range of specifications that have been developed by the W3C –Existing W3C technologies should fit well with RIF Widescale Adoption –Rules interchange becomes more effective the wider adoption there is of the specification ("network effect“) 11

RIF Requirements 1 Compliance model –Clear conformance criteria, defining what is or is not a conformant to RIF Different semantics –RIF must cover rule languages having different semantics Limited number of dialects –RIF must have a standard core and a limited number of standard dialects based upon that core OWL data –RIF must cover OWL knowledge bases as data where compatible with RIF semantics 12

RIF Requirements 2 RDF data –RIF must cover RDF triples as data where compatible with RIF semantics. Dialect Identification –The semantics of a RIF document must be uniquely determined by the content of the document, without out-of-band data XML syntax –RIF must have an XML syntax as its primary normative syntax Merge Rule Sets –RIF must support the ability to merge rule sets Identify Rule Sets –RIF must support the identification of rule sets 13

RIF Family Dialects 14 Basic interchange format for logic rules Data types and Built-in functions and predicates Enable the interchange of production rules Syntax and semantics of logic-based RIF dialects Common subset of BLD and PRD

RIF Example All movies listed at but not listed at are independent movies. ?Movie#ex:IndependentMovie :- listed(?Movie#ex:Movie, ) not(listed(?Movie#ex:Movie, )). All movies with budgets below 5 million USD are low-budget movies ?Movie#ex:LowBudgetMovie :- ?Movie#ex:Movie [date -> ?Date, budget -> ?Budget] ?Budget < ^^xs:long. 15

FRAMEWORK OF LOGIC DIALECT Syntax and semantics of logic-based RIF dialects 16

What Is The RIF Framework of Logic Dialect? A set of rigorous guidelines for constructing RIF dialects in a consistent manner –Initially: just the logic-based dialects Includes several aspects: –Syntactic framework –Semantic framework –XML framework 17

Syntactic Framework Defines the mechanisms for specifying the formal presentation syntax of RIF logic dialects Presentation syntax is used in RIF to define the semantics of the dialects and to illustrate the main ideas with examples Syntax is not intended to be a concrete syntax for the dialects –the delimiters of the various syntactic components, parenthesizing, precedence of operators, … are left out Uses XML as its concrete syntax 18

Examples of Syntactic Forms 1 Function/predicate application –Point(?X abc) –?X(Amount(20) ?Y(cde fgh)) Functions/predicates with named arguments –?F(name->Bob age->15) 19

Examples of Syntactic Forms 2 Frame (object-oriented F-logic notation) –Obj[Prop1->Val1... Propn->Valn] Member/Subclass (: and :: in F-logic) –Member#Class –SubCl##SupCl Higher-order functions –?F(a)(b c) –f(?X(a b)(c)(d ?E) ?X ?Y(ab)(?Z)) –?O[?P->a](f(?X b) c) 20

Examples of Syntactic Forms 3 Equality –Including in rule conclusions Negation –Symmetric (classical, explicit): Neg –Default (various kinds – stable, well-founded): Naf Connectives, quantifiers –Or (And(?X And p(?X ?Y)) ?Z(p)) –Forall ?X ?Y (Exists ?Z – (f(?X(a b)(c)(d ?E) ?X ?Y(ab)(?Z)))) –New connectives/quantifiers can be added 21

Symbols Used to identify constants, variables, functions, predicates "literal"^^ –Notable symbol spaces: xsd:string, rif:local, rif:iri –“Chris”^^ –“ –“Person1”^^rif:local 22

Structure Rules occur in Groups Group((Forall ?x _Q(?x) :- _P(?x)) (Forall ?x _Q(?x) :- _R(?x)) ) Groups occur in Documents Document( Group((Forall ?x _Q(?x) :- _P(?x)) (Forall ?x _Q(?x) :- _R(?x))) Group((Forall ?y _R(?y) :- ex:op(?y)))) 23

FDL Example: Database mapping Document( Prefix(dbp Prefix(my Prefix(rdfs Group ( Forall ?mname ?aname ?movie ?actor my:actorIn(?aname ?mname) :- And( dbp:starring(?movie ?actor) rdfs:label(?movie ?mname) rdfs:label(?actor ?aname)))) 24

Semantic Framework Defines semantic structures (a.k.a. interpretations) –Structures that determine if a formula is true –Must be very general to allow: Interpretation of all the supported syntactic forms Higher-order features Reification –Multivalued logics, not necessarily Boolean For uncertainty, inconsistency 25

Semantic Framework Logical entailment –Central to any logic –Determines which formulas entail which other formulas Unlikely to find one notion of entailment for all logic dialects because … 26

Semantic Framework p <- not p –In first-order logic: ≡ p 2-valued –In logic programming: Well-founded semantics – p is undefined – 3-valued Stable model semantics – inconsistent – 2-valued –And there is more... 27

Semantic Framework Solution: under-specify –Define entailment parametrically, leave parameters to dialects –Parameters: intended models, truth values, etc. –Entailment (between sets of formulas) P |= Q iff for every intended model I of P, I is also a model of Q 28

What Are These Intended Models? Up to the dialect designers! First-order logic: –All models are intended Logic programming/Well-founded semantics –3-valued well-founded models are intended Logic programming/Stable model semantics –Only stable models are intended 29

XML Serialization Framework Defines –a normative mapping from the RIF-FLD presentation syntax to XML –and a normative XML Schema for the XML syntax Any conformant XML document for a logic RIF dialect must also be a conformant XML document for RIF-FLD –i.e. each mapping for a logic RIF dialect must be a restriction of the corresponding mapping for RIF-FLD. –e.g. the mapping from the presentation syntax of RIF-BLD to XML in RIF-BLD is a restriction of the presentation-syntax-to- XML mapping for RIF-FLD. 30

XML Syntax And (Exists ?Buyer (cpt:purchase(?Buyer ?Seller cpt:book(?Author bks:LeRif) curr:USD(49))) ?Seller=?Author ) Buyer &cpt;purchase Buyer Seller &cpt;book Author &bks;LeRif &curr;USD 49 Seller Author 31

BASIC LOGIC DIALECT Basic interchange format for logic rules 32

Basic Logic Dialect Basically Horn rules (no negation) plus –Frames –Predicates/functions with named arguments –Equality both in rule premises and conclusions –But no polymorphic or polyadic symbols This dialect is called “basic” because –Here classical semantics = logic programming semantics –Bifurcation starts from here on 33

Basic Logic Dialect Can import RDF and OWL –RIF RDF+OWL Compatibility document: BLD with imported OWL – Is essentially SWRL (but has frames and other goodies) 34

Basic Logic Dialect Specified in two normative ways: –As a long, direct specification –As a specialization from RIF-FLD These two specifications are supposed to be equivalent –This double specification has already helped debugging both BLD and FLD 35

BLD Example 1 A rule can be written in English to derive the buy relationships (rather than store them) from the sell relationships that are stored as facts: –A buyer buys an item from a seller if the seller sells the item to the buyer –John sells LeRif to Mary Using the modus pones argument we can derive: –Mary buys LeRif from John 36

BLD Example 2 Document( Prefix(cpt Prefix(ppl Prefix(bks Group ( Forall ?Buyer ?Item ?Seller ( cpt:buy(?Buyer ?Item ?Seller) :- cpt:sell(?Seller ?Item ?Buyer) ) cpt:sell(ppl:John bks:LeRif ppl:Mary) ) 37

PRODUCTION RULE DIALECT Interchange of production rules 38

Production Rule Dialect Production rules are rule statements defined in terms of both individual facts or objects, and groups of facts or classes of objects They have –if part (or condition) –then part (or action) The condition is like the condition part of logic rules The then part contains actions –Not the same as the conclusion part of logic rules –Actions can add, delete, or modify facts in the knowledge base, and have other side-effects. 39

Production Rule Examples 1.A customer becomes a "Gold" customer as soon as his cumulative purchases during the current year top $ Customers that become "Gold" customers must be notified immediately, and a golden customer card will be printed and sent to them within one week 3.For shopping carts worth more than $1000, "Gold" customers receive an additional discount of 10% of the total amount 40

Production Rules Dialect Syntax Production rules –FOR WITH, IF THEN –FORALL Var* (actions :- And(patterns, condition)) Patterns and condition –Conjunction, disjunction, negation, existentials –Relations, frames (and objects), membership, subclass –XML Schema data types and builtins (RIF-DTB) –internationalized resource identifiers (IRIs) as identifiers –RIF-BLD condition language minus logic functions plus negation Assert, Retract, New –Assign, Modify, Execute Rules occur in Groups Groups occur in Documents –or in other groups Metadata can be attached to any class element 41

Example in RIF-PRD Prefix(ex1 (* ex1:rule_1 *) Forall ?customer ?purchasesYTD ( If And( ?customer#ex1:Customer ?customer[ex1:purchasesYTD>?purchasesYTD] External(pred:numeric-greater-than(?purchasesYTD 5000))) Then ex1:Gold(?customer) ) 42

ILLUSTRATION BY A LARGER EXAMPLE An example of usage of RIF 43

Collaborative Policy Development for Dynamic Spectrum Access Recent technological and regulatory trends are converging toward a more flexible architecture in which reconfigurable devices may operate legally in various regulatory and service environments Suppose the policy states: –A wireless device can transmit on a 5 GHz band if no priority user is currently using that band Suppose devices with different rules: 1.If no energy is detected on a desired band then assume no other device is using the band 2.If no control signal indicating use of a desired band by a priority user is detected then assume the band is available 44

RIF-BLD Example Device Rule 1 Document( Prefix(pred predicate#) Prefix(func function#) Prefix(ex Group( Forall ?device ?band ?level ( ex:used(?device ?band) :- ex:detect(ex:energy(?level ?band)) External(pred:numeric-greater-than(?level 0)) ) ) predicate# function# ) 45

RIF-BLD Example Device Rule 2 Document( Prefix(pred predicate#) Prefix(func function#) Prefix(ex Group( Forall ?device ?band ?user ( ex:used(?device ?band) :- ex:detect(ex:signal(?user ?band)) ex:priority(?user,"high"). ) ) predicate# function# ) 46

Why RIF is perfect in this example? Each type of device will need to employ different "interpretations" or "operational definitions" of the policy in question. Suppose –10 manufacturers of these 2 different types of wireless devices –Each of these manufacturers uses a distinct rule-based platform –Each manufacturer needs to write 2 interpretations of the policy (for each of the two types of device). That means that 20 different versions of the policy must be written, tested and maintained. This can be automated adopting RIF as interchange format and automating the translation process 47

EXTENSIONS 48

Current ongoing works RIF is still under development Other dialects are foreseen –A logic programming dialect that support well-founded and stable-model negation –A dialect that supports higher-order extensions –A dialect that extends RIF-BLD with full F-logic support 49

WRAP-UP That’s almost all for day… 50

Summary RIF is an interchange rule format –Enable to exchange rules across different formalisms RIF is based on different dialects –FLD –BLD –PRD –Core RIF is OWL and RDF compatible 51

Bibliography Mandatory reading –RIF Web site: Further reading –FLD –BLD –Production rules: 52

Next Lecture 53 #DateTitle 1Introduction 2Semantic Web Architecture 3RDF and RDF Schema 4Web of hypertext (RDFa, Microformats) and Web of data 5Semantic Annotation 6Repositories and SPARQL 7The Web Ontology Language 8Rule Interchange Format 9Web-scale reasoning 10Social Semantic Web 11Ontologies and the Semantic Web 12Semantic Web Services 13Tools 14Applications 15Exam

Questions? 54