W3C

RIF Use Cases and Requirements

W3C Editor's Draft 429 September 2009

This version:
http://www.w3.org/2005/rules/wg/draft/ED-rif-ucr-20090904/http://www.w3.org/2005/rules/wg/draft/ED-rif-ucr-20090929/
Latest editor's draft:
http://www.w3.org/2005/rules/wg/draft/rif-ucr/
Previous version:
http://www.w3.org/2005/rules/wg/draft/ED-rif-ucr-20081218/http://www.w3.org/2005/rules/wg/draft/ED-rif-ucr-20090904/ (color-coded diff)
Editors:
Adrian Paschke, Freie Universitaet Berlin
David Hirtle, National Research Council Canada
Allen Ginsberg, Mitre
Paula-Lavinia Patranjan, REWERSE
Frank McCabe, Fujitsu

This document is also available in these non-normative formats: PDF version.



Abstract

This document, developed by the Rule Interchange Format (RIF) Working Group, specifies use cases and requirements for the W3C Rule Interchange Format, a family of rule interchange dialects that allows rules to be translated between rule languages and thus transferred between rule systems.

Status of this Document

May Be Superseded

This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at http://www.w3.org/TR/.

This document is being published as one of a set of 1011 documents:

  1. A Guide to RIF
  2. RIF Core Dialect
  3. RIF Basic Logic Dialect
  4. RIF Framework for Logic Dialects
  5. RIF RDF and OWL Compatibility
  6. RIF Datatypes and Built-Ins 1.0
  7. RIF Production Rule Dialect
  8. RIF Use Cases and Requirements (this document)
  9. RIF Test Cases
  10. RIF Combination with XML data
  11. OWL 2 RL in RIF

Summary of Changes

@@@UPDATE

@@@ Include-in-this-round?

Please Comment By 2327 October 2009

The Rule Interchange Format (RIF) Working Group seeks public feedback on this Editor's Draft. Please send your comments to public-rif-comments@w3.org (public archive). If possible, please offer specific changes to the text that would address your concern. You may also wish to check the Wiki Version of this document and see if the relevant text has already been updated.

No Endorsement

Publication as a Editor's Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.

Patents

This document was produced by a group operating under the 5 February 2004 W3C Patent Policy. This document is informative only. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.



Table of Contents

1 Introduction

Rule-languages and rule-based systems have played seminal roles in the history of computer science and the evolution of information technology. From expert systems to deductive databases, the theory and practice of automating inference based on symbolic representations has had a rich history and continues to be a key technology driver.

Due to the innovations made possible by the Internet, the World Wide Web, and, most recently, the Semantic Web, there is now even greater opportunity for growth in this sector. While some of these opportunities may require advances in research, others can be addressed by enabling existing rule-based technologies to interoperate according to standards-based methodologies and processes. The basic goal of the Rule Interchange Format (RIF) Working Group is to devise such standards and make sure that they are not only useful in the current environment, but are easily extensible in order to deal with the evolution of rule technology and other enabling technologies. This mission of RIF is part of W3C's larger goal of enabling the sharing of information in forms suited to machine processing:

The purpose of this RIF-UCR document is to provide a reference to the design of RIF and a guide for users and implementers to the current technical specifications of RIF dialects. RIF-UCR also delivers a structured context for formulating future technical specifications of further RIF dialects. Each dialect targets at a cluster of similar rule languages and enables platform-independent interoperation between them (via interchange of RIF rules). The presented use cases illustrate some of the principal ways in which RIF can provide benefits. RIF can promote innovation and development by fostering collaborative work and providing new opportunities for third-party services. RIF can promote e-commerce by providing interoperability across vendor platforms. RIF can promote efficient process management through reuse, sharing, and the ability to provide unified views across disparate platforms. Last, but not least, RIF can promote the growth of knowledge by enabling reasoning with merged sets of rules originating from disparate knowledge sources.

The RIF-UCR document is structured as follows: Section 2 formulates the overall goals of RIF and several accordant critical success factors for RIF. Section 3 summarizes the released RIF dialects and the current structure of RIF. Section 4 presents a set of use cases that are representative of the types of application scenarios that RIF is intended to support. Besides illustrating the utilization of the current RIF dialects, the functionality specified in the use cases, together with the inferred requirements, acts as input for the technical specification of future RIF dialects and for the implementation of various variants of these scenarios by applications or systems that incorporate the existing or newly developed RIF technical specifications. In section 5 several important requirements for RIF are inferred from the goals and use cases. In the main all requirements should have a use case or derivation of a use case from which they are derived. In exceptional circumstances requirements may not be derived from a use case, e.g. when they are already defined as constraints in the working group charter. Their fulfillment is discussed with respect to the existing RIF dialects.

2 Goals

The primary goal of RIF is to be an effective means of exchanging rules that has the potential to be widely adopted in industry and that is consistent with existing W3C technologies and specifications.

2.1 Exchange of Rules

The primary goal of RIF is to facilitate the exchange of rules.

2.2 Consistency with W3C specifications

RIF is intended to be a W3C specification that builds on and develops the existing range of specifications that have been developed by the W3C. This implies that existing W3C technologies should fit well with RIF.

2.3 Widescale Adoption

It is an explicit goal of the W3C that the Rules Interchange Format will have the maximum potential for widescale adoption. Rules interchange becomes more effective the wider adoption there is of the specification -- the so-called "network effect".

Along with the use cases in the next section, these goals motivate the requirements in Section 5.

3 Structure of RIF

RIF is described by a set of documents, each fulfilling a different purpose, and catering to a different audience. Currently the following set of documents has been released:

  • The RIF-FLD (Framework of Logic Dialects) document describes a framework of mechanisms for specifying the syntax and semantics of logic-based RIF dialects through a number of generic concepts.
  • The RIF-RDF+OWL (RIF RDF and OWL Compatibility) document specifies the interoperation between RIF and the data and ontology languages RDF, RDFS, and OWL.
  • The RIF-DTB (Data Types and Builtins) document describes RIF data types and built-in functions and predicates
  • The RIF-Core (Core Dialect) document specifies a common subset of RIF-BLD and RIF-PRD including RIF-DTB
  • The RIF-BLD (Basic Logic Dialect) document specifies a basic interchange format that allows logic rules (definite Horn rules with equality) to be exchanged
  • The RIF-PRD (Production Rules Dialect) document specifies the RIF production rules dialect to enable the interchange of production rules
  • The RIF-UCR (Use Cases and Requirements) document describes use cases and requirements for RIF
  • The RIF-Test (Test Cases) document describes the test cases developed by the RIF working group

RIF is designed as a family of RIF dialects as shown in the following Venn diagram:

Venn Diagram of RIF Dialects

Each dialect is a collection of components that works together, forming an interlingua. New dialects are needed when no existing dialect provides the required rule-language features for interchange.

The RIF Framework for Logic-based Dialects (RIF-FLD) describes mechanisms for specifying the syntax and semantics of logic-based RIF dialects through a number of generic concepts. Every logic-based RIF dialect should specialize these general mechanisms or justify why it does not. This specialization may include leaving out some elements of RIF-FLD, to produce its concrete syntax and model-theoretic semantics. Currently, the first two existing RIF dialects are the RIF Basic Logic Dialect (RIF-BLD) and the RIF Production Rules Dialect (RIF-PRD) which is a partial specialization of FLD.

RIF-BLD (Basic Logic Dialect) is a specialization of RIF-FLD capable of representing definite Horn rules with equality enhanced with a number of syntactic extensions to support expressive features such as objects and frames, internationalized resource identifiers (IRIs) as identifiers for concepts, and XML Schema data types.

RIF-PRD (Production Rules Dialect) specifies a production rules dialect to enable the interchange of production rules. The condition language of RIF PRD is defined in Core as a common subset of RIF BLD and RIF PRD.

RIF-Core (Core Dialect) specifies a common subset of RIF-BLD and RIF-PRD which includes RIF-DTB.

The normative syntax for RIF dialects is a concrete XML syntax. A non-normative presentation syntax is additionally specified for each dialect, to allow a more easily readable and compact presentation of language fragments (such as examples).

4 Use Cases

A use case may be considered to befor RIF consists of a description of a problem andtogether with a solution that utilizedeither uses an existing RIF dialect or requires the specification of a new one. It is intended that the use cases presented here includeRIF dialect.

The widest possible numberset of requirements using as fewuse cases as possible. The included usage scenarios are meantis intended to be representative, meaning thatdo the general concepts are common to many possible use cases acrossfollowing:

  • motivate the need for a RIF in a broad arrayrange of rule-basedapplication domains and industrial sectors.sectors;
  • provide scenarios that motivate the design of RIF and explain the benefits of a RIF in such scenarios;
  • guide users to RIF's currently specified dialects; and
  • motivate the working group's set of requirements for a RIF.


The set of use cases were developed over several years. Nearly fifty use cases documenting the need for a RIF were originally submitted by the working group members. These were grouped into general categories and then synthesized as much as possible. The followinggoal was to come up with a relatively small set of use case descriptions, guided by this synthesis, provide scenarioscases that motivate the current design of RIF, explain the benefits ofwould cover a RIF, and guide users to its currently specified dialects.broad range of possible requirements. In addition, it was desired that the use cases are also intendedrefer to popular application domains and industrial sectors.

Subsequent to provide an ongoing reference point forthe working group in its goaldevelopment of providing a precisethe RIF dialects Core, BLD, PRD, and FLD, the set of requirements for a RIFuse cases were sorted according to the (weakest) dialect needed to express the problem statement and solution of the use case. In developing new RIFaddition, several use cases were added in order to highlight features of these dialects.

Whenever possible,Below, we willgive concrete illustrations of how the existing twothese RIF dialects (Core, BLD, and PRD)address various aspects of thesethe use cases.

The button below can be used to show or hide the RIF examples.

Editor's Note: the given examples and used presentation syntax in this version of the UCR working draft are still under development

In order to enhance readability and avoid the appearance of syntactic prejudice, we have deliberately avoided the use of formal notation in representing rules in these use cases. Instead, we will use the RIF presentation syntax (of the RIF dialects).

4.1 BLD Use Cases

4.1.1 Negotiating eBusiness Contracts Across Rule Platforms

This use case illustrates a fundamental use of RIF: to supply a vendor-neutral representation of rules, so that rule-system developers and stakeholders can do their work and make product investments without concern about vendor lock-in, and in particular without concern that a business partner does not have the same vendor technology. It also illustrates the fact that RIF can be used to foster collaborative work. Each developer and stakeholder can make a contribution to the joint effort without being forced to adopt the tools or platforms of the other contributors.

John is negotiating an electronic business contract regarding the supply of various types of items that Jane's company is manufacturing. Jane and John interchange the contract-related data and rules involved in the negotiation in electronic form so that they can run simulations. Both agree on a standard Business Object Model / data model (i.e., vocabulary / ontology) for the goods and services involved - in this case an XML schema and appropriate test XML documents are interchanged with their rules. Since John and Jane run applications based on different vendors' rule engines and rule languages, they interchange the rules using RIF; both vendors used can interpret the XML schema and data, and produce the results as an amended XML document. John's company defines its purchase orders in terms of an XML description of goods, packaging, delivery location and date with delivery and payment rules. A rule proposed by John might be the following:

If an item is perishable and it is delivered to John more than 10 days after the scheduled delivery date then the item will be rejected by him.

Jane replies with some suggested rule changes:

If an item is perishable and it is delivered to John more than 7 days after the scheduled delivery date but less than 14 days after the scheduled delivery date then a discount of 18.7% will be applied to the delivered item.

John considers this and agrees with Jane. Both organizations utilize these rules in their operational systems using disparate rule representations internally to compute prices for this order and determine contract compliance.

Future requests for the supply of items by John's company are defined on their purchasing web site, as the appropriate XML schema and a RIF ruleset (or rulesets). This allows Jane's company and its competitors to respond electronically with XML cost sheets. Suppliers respond with multiple cost sheets with different variations on the RIF rules proposed by John's company, allowing John's company to review the alternative rules with their associated costs to determine whether they, as a business, would benefit by relaxing or adding new rules as proposed by suppliers.


4.24.1.2 Negotiating eCommerce Transactions Through Disclosure of Buyer and Seller Policies and Preferences

This use case concerns the ability of parties involved in formal transactions or procedures, e.g., credit card authorization of a purchase, access of private medical records, etc., to express and protect their interests within a policy-governed framework. The goal is to formally encode the preferences, priorities, responses, etc., of the parties in such a way that the overall policy can work as intended while providing opportunity for automatic negotiation of terms when allowed by the policy. Utilization of RIF in this use case would extend the scope of this technology, affording a higher degree of interoperability, as well as enabling re-use and sharing of preferences, etc., through interchange. The detailed scenario below shows how this would work.

Alice wants to buy a device at an online site called "eShop." Alice employs software called "Emptor" that functions as automated negotiating agent for buyers. eShop employs software called "Venditor" as automated negotiating agent for sellers.

Alice's and eShop's policies describe who they trust and for what purposes. The negotiation is based on the policies, which are specified as rules, and credentials Emptor and Venditor have. These policies and credentials are disclosed (interchanged) so as to automatically establish trust with the goal of successfully completing the transaction.

Policies are themselves subject to access control. Thus, rule interchange is necessarily done during negotiation and (in general) depends on the current level of trust that the systems have on each other. Since Emptor and Venditor might use different rule languages and/or engines for evaluating (own and imported) rules, a (standard) rule interchange format (RIF) needs to be employed for enabling the rule interchange between the two systems.

When Alice clicks on a "buy it" button at the eShop's Web site, Emptor takes over and sends a request to eShop's site. Venditor receives the request and sends parts of its policy (i.e. a set of rules) back to Emptor. Among other things, the policy states that:

In order to grant access a buyer must provide valid credit card information together with delivery information (address, postal code, city, and country).

Rules express compactly possible ways in which a resource can be accessed; by exchanging them negotiations are shorter and privacy protection is improved. In the example, Venditor reveals part of its policy in form of rules to enable Emptor to choose how to answer, i.e. to decide which credentials and required information to disclose.

For determining whether Venditor's request for information is consistent with Alice's policy, Emptor takes its rules into account, which state for example:

Disclose Alice's credit card information only to online shops belonging to the Better Business Bureau.

By disclosing (interchanging) the above given rule, Emptor asks Venditor to provide credentials saying that it belongs to the Better Business Bureau, Alice's most trusted source of information on online shops. eShop has such a credential and its policy contains a rule stating to release it to any potential purchaser. Hence, Venditor passes the credential to Emptor. Emptor is now ready to disclose Alice's credit card information to Venditor but it still must check whether disclosing all the information does not break Alice's denial constraints. Alice has stated two constraints stating:

For anonymity reasons, never provide both her birth date and postal code.

For this purchase, Alice birthdate is no issue. Thus, Alice's constraints are respected. Emptor therefore provides Alice's credit card information to Venditor.

Companies that provide software such as Venditor and Emptor would make use of RIF in a number of ways. The rules expressing Alice's and/or eShop's policies could be expressed in different rule languages but still work with the software, using RIF-based interchanges. Secondly, assuming Venditor and Emptor are products of different companies using different internal rule languages, it would still be possible for them to work together in real-time. When these two systems need to exchange policy or preference information of their respective clients they would use RIF to enable the interchange in real-time. When Venditor sends its initial policy information to Emptor it uses RIF. Emptor takes that policy and translates it from RIF to its internal representation in order to determine what it needs to do.



4.3 Collaborative Policy Development for Dynamic Spectrum Access This use case demonstrates how RIF leads4.1.3 Interchanging Rule Extensions to increased flexibilityOWL

Editor's Note: Example needs to be translated into BLD. Also style needs to be made consistent with other use cases


Rules are often used in matching the goals of end-users of a service/device,conjunction with the goals of providers and regulators ofother declarative knowledge representation formalisms, such services/devices. RIF can do that because it enables deployment of third party systems that can generate various suitable interpretations and/or translations ofas ontology languages (e.g. RDF and OWL), in order to provide greater expressive power than is provided by either formalism alone. Ontology languages, for example, typically provide a richer language for describing classes (unary predicates). Rules, on the sanctioned rules governingother hand, typically provide a service/device. This use case concerns Dynamic Spectrum Accessricher language for wireless communication devices . Recent technologicaldescribing dependencies between properties (binary predicates), and regulatory trends are converging toward a more flexible architecture in which reconfigurable devicesmay operate legallyalso support higher-arity predicates.

Rich domain models combining both rules and ontologies are often needed in various regulatorydomains such as medicine, biology, e-Science and service environments. The ability of a device to absorbWeb services. In such domains, several actors and/or agents are involved that have to interchange the data, ontologies, and rules definingthat they work with. An example is the policiesuse of such a region, or the operational protocols required to dynamically access available spectrum, is contingent upon those rules beingdomain model in a forman application that aims at assisting the device can use, as well as their being tailored to work with deviceslabeling of brain cortex structures in the same class having different capabilities.MRI images. In this use-case we suppose a region adopts a policy that allows certain wireless devices to opportunistically use frequency bands that are normally reserved for certain high-priority users. ( The decision by the European Unioncase, an OWL ontology is used to allow "Dynamic Frequency Selection" (DFS) use ofcapture knowledge about the 5 GHz frequency band by wireless systems,most important brain cortex anatomical structures, and a band intermittentlyrule base is used by militaryto capture knowledge about mereological and weather radar, isspatial dependencies between properties.

For example, a recent example.) Supposerule is used to express the policy states: A wireless device can transmit ondependency between the ontology properties isMAEConnectedTo and isMAEBoundedBy, in particular (a simplified form of) the knowledge that two Material Anatomical Entities having a 5 GHz bandshared boundary are connected:

If  no priority userMAE X is  currently using that band. Note, since default negation (not) such as negation as failurebounded by Z and MAE Y is  not supportedalso bounded by  RIF BLD thereZ then X is  no adequate wayconnected to  represent that "no priority user is currently usingY.

Benefits of interchange via RIF include the band". How does a device know that no priority user is currently using a band it wantsability to use?collaboratively develop and share valuable knowledge, the answer will depend onability to integrate anatomical images, possibly from distributed image sources, and the specific capabilitiesability to use large-scale federated systems for statistical analysis of the device. One typebrain images of device may answermajor brain pathologies.



4.1.4 Vocabulary Mapping for Data Integration

Editor's Note: Example needs to be translated into BLD.


This question by sensinguse case concerns the amountintegration of energy it is receiving on that band. That is, it might employinformation from multiple data sources. The rule: If no energy is detected onSemantic Web provides a desired band then assume no other device is using the band.common data representation in RIF BLD Presentation Syntax using relations: Document( Prefix(pred http://www.w3.org/2007/rif-builtin-predicate# ) Prefix(func http://www.w3.org/2007/rif-builtin-function# ) Prefix(ex http://example.org/example#) Group ( Forall ?device ?band ?level ( ex:used(?device ?band) :- ex:detect(ex:energy(?level ?band)) External(pred:numeric-greater-than(?level 0)) ) ) ) Note,and query language, which greatly simplifies access to diverse sources but does not directly address the engergy detection function would requireproblem that independent data sources may have rather divergent information models.

Rules are an external call for sensing the level of energy.effective way to express mappings between such procedural attachmentsinformation models. However, rules locked within local proprietary systems cannot be specified in BLD. Reaction rules provide event detection capabilities.reused. With a second typecommon rule representation, such mappings can be published across the Semantic Web, enabling an enterprise or community to progressively build up a rich network of device, may getmappings unifying the information from a control channel that letsmodels.

Information mapping and integration problems like this arise in many diverse domains including health care, travel planning, IT know whethermanagement and customer information management. The desired band is being used by a priority user. That is, it might employfollowing scenario comes from the rule: If no control signal indicating useworld of a desired band by a priority user is detected then assumeIT systems management.

Vlad has been given the band is available. Representation in RIF BLD Presentation Syntax using relations: Document( Prefix(pred http://www.w3.org/2007/rif-builtin-predicate# ) Prefix(func http://www.w3.org/2007/rif-builtin-function# ) Prefix(ex http://example.org/example#) Group ( Forall ?device ?band ?user ( ex:used(?device ?band) :- ex:detect(ex:signal(?user ?band)) ex:priority(?user,"high"). ) ) ) So each typejob of device will needanalyzing how exposed his division's business processes are to employ different "interpretations" or "operational definitions" of the policychanges in question. Now assume that there are 10 manufacturers of these 2 different types of wireless devices. Suppose that eachtheir IT maintenance contracts. He has three sources of these manufacturers uses a distinct rule-based platform in designing its devices. Each manufacturer needsinformation 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, testedcombine:

  • a report on application services and maintained. Enter RIF.associated servers, databases and networks (from the 10 manufacturers formIT department)
  • a consortium. This ismaintenance contracts database (from the finance department)
  • a third-party group that is responsible for translating regional policies into RIF. When it does so, however,registry indicating which business processes use which IT provides different versions corresponding toservices (from the possible interpretations (operational definitions) of the policy. So in this case, 2 RIF versions of the DFS policy are provided for the 2 types of device mentioned above. Each of these RIF specifications can be automatically translated into the appropriate rule-platform provided a RIF-Compiler for the target device architecture exists. Clearly it will be in the interest of each device manufacturer to develop such compilers. That is because the manufacturer only needs to develop such a compiler once for every architecture it owns. Contrast that investment with having to produce, test, and maintain different versions of various policies over the lifetime of a product. This arrangement also allows the overall process to be organized in a fashion that maintains the natural division of labor in the corresponding division of artifacts produced by that labor: the policy and its various interpretations are written and maintained in platform-independent artifacts (RIF); knowledge about how to translate from RIF to a particular device architecture is maintained in the compilers. A change in policy is inserted at the top level in the policy artifact hierarchy where it should be; possible operational interpretations of that change are inserted at the next level down; the implementation implications for the various device architectures is generated automatically at the lowest level. 4.4 Access to Business Rules of Supply Chain Partners A business process (BP) designer designs processes that can span multiple departments in the same business as well as other business partners. A classic example of this is the integration of supply chainbusiness processes which typically involve multiple partners. Supply chain integration involves exposing a certain amount of business logic between partners as well as integrating processes across partners. In such activities it is therefore often necessary to access or invoke rules that originate in other ownership domains. A key part of a business process is the logic used to make decisions within the process. Such logic is often coded in rules because rule languages are easier for BP designers to understand and manipulate than procedural code (as in Java) -- although both forms of business logic are prevalent. Where business logic is represented in different rule languages this presents a significant burden to the BP designer in designing an integrated process. Two primary integration modalities are possible: importing the different rulesets into a single engine and processing them in a uniform manner, or accessing the rulesets by querying remote engines and processing the results.planning group)

Each modality has its uses and contra-indications. Where there are strong ownership boundaries involved it may not be permitted to merge rule sets of partners. For example, in an insurance adjustment process, the inspection of a damaged vehicle is often performed by independent inspectors. The critical decision in how an insurance claim will proceed is whether the damage results in a total loss or whether a repair is feasible: If inspector believes vehicle is repairable then process as repair otherwise process as total loss. Note that BLD and PRD do not support modal operators or predicates on quoted sentences; therefore standard representations of knowledge, belief, and/or uncertainty cannot be specified in BLD and PRD. Even without such constructs, it can be possible to represent knowledge or belief using the semantics of possible worlds. That is, one can get the effect of saying that an agent A believes proposition P by saying that P holds in all words that are belief-accessible to P. For example, to get the effect of saying Believe(john,overCreditLimit(bill,t)) one says instead holds(overCreditLimit(bill),t1) :- beliefAccessible(john,t,t1) However, it is not possible to express this in RIF, for two reasons: First, because the direct expression of knowledge or belief within possible worlds, as illustrated above, requires the construct of reification, which RIF BLD and PRD do not support. Second, because expressing the standard axioms on belief or knowledge would require the use of negation, also not supported by BLD or PRD. The question of whether a vehicle is repairable is one that is dependent on the processes executed by the inspector and cannot be directly integrated into the insurance companies own adjustment process. The insurance company effectively queries the inspector's logic. Within the adjustment process, the overall flow will be quite different for repairable claims and total loss claims. Even in the case of a single company, which is nominally under a common ownership domain, information and business logic is often controlled by multiple stakeholders. For example, a large company will often be organized into semi-independent profit centers (business units). Each unit will be motivated differently, will have different ontologies and business logic and may use different rule languages to represent their logic (this is particularly the case where one company acquires another company). RIF should be used to permit the BP designer a unified view of the different partners' business rules in designing the process, while at the same time permitting the partners to continue to leverage their own business rules without changing their own technologies. How such a unified view of the business rules can be realized in a deployed BP will depend on both technical and non-technical factors. Even where all the parties are required to use a common rule language, there may be compelling ownership issues that mitigate against a simple merge of the rule sets. In the situation where merging of rulesets is not possible, then a query-style access to partners' business rules may be used. In this way, RIF permits a unified dynamic view of the business rule logic no matter what the original form of the rules. For this to be viable from a business perspective it is critical that the semantics of the rules and query exchange be completely predictable and preferably loss-less. 4.5 Managing Inter-Organizational Business Policies and Practices This use case concerns organizations that acquire rule sets from external sources and that have to integrate these new rule sets into their existing rule bases. Such rule sets may be acquired in the following ways: An organization may buy rule sets from expert sources An organization may use rule sets from shared interest groups such as trade associations A component of a distributed organization may acquire rules when a rule set is distributed across a distributed organization. In such case, there may be different localization requirements in different regions and locations, entailing a variety of integration challenges in these various locations and component organizations. The following scenario examines these different methods of acquisition and the various types of integration and management issues that may arise. This scenario uses the (fictitious) car rental company, EU-Rent, used as the case study in the Semantics of Business Vocabulary and Business Rules Specification . The EU legislation discussed is also fictitious, as are the consulting companies CarWise and AutoLaw. EU-Rent's corporate HQ deals with CarWise, a consulting company with expertise in managing fleets of vehicles. One service CarWise offers to its clients is negotiating with EU regulators to clarify regulations. An EU regulator issues a directive dealing with insurance for vehicles owned by corporations. CarWise agrees with the regulator on an acceptable interpretation, and provides EU-Rent (and its other car rental clients) with two sets of rules: A business policy, stating that every car rental must be insured for damages to third parties. A supporting rule set, addressing levels of required coverage, tax calculation in different EU countries, liabilities in rentals that span multiple countries, and reporting of compliance with this business policy. EU-Rent decides that it will maintain its compliance documentation electronically. CarWise then provides EU-Rent with an additional rule set for electronic compliance documentation, including such rules as: Each tax schedule must have electronic signatures from two EU-Rent employees who are at least at the level of manager. Before it can use the two general rule sets, EU-Rent needs to connect them to the relevant data sets in its IT systems, e.g. relate the EU country-specific taxation rules to the relevant record types in its databases. EU-Rent corporate HQ subsequently decides that the cost of third-party insurance will be built into the basic cost of each rental, and not shown as a separate item on the rental contract, to ensure that it can never be omitted from rentals or disputed by renters. It then sends three rule sets to its operating companies in the EU: The rule set for car rental insurance (from CarWise), including the basic policy and the supporting rule set. The rule set for electronic compliance documentation (also from CarWise). Its own rule set for building insurance into the basic rental cost. The operating companies then have to localize the rule sets for their countries of operation. For example, in the UK, another consulting company, AutoLaw, advises EU-Rent of rules for placing aggregate insurance for large fleets with more than one insurer in order to spread the risk, for example: For fleets of more than 200 vehicles, fleet insurance policies must be placed with at least 3 insurers, each of whom covers at least 25% of the risk. A timing issue makes it difficult for EU-Rent UK to strictly comply with this directive. EU-Rent UK has some existing insurance policies in place, which provide third-party insurance as an explicit item, and it cannot get refunds on early termination. It therefore asks corporate HQ for a temporary dispensation: that it can continue its existing insurance until it expires, and then switch to the new rules. EU-Rent HQ permits this, not just for the UK, but for any of its operating companies that have similar insurance arrangements. To ensure that this dispensation is temporary, it adds a new rule: Insurance policies that provide separate third-party coverage must not be renewed. EU-Rent HQ is also concerned about meeting deadlines for electronic filing. It introduces a new rule that it distributes to operating companies: Each electronic compliance document must have its required electronic signatures 48 hours before its filing deadline. This rule is meant to be implemented as follows: If '48 hours before filing deadline' passes, and the electronic signatures are not present, then the operating company's rules system must report the out-of-compliance situation, and subsequently wait for the responsible managers to provide the signatures. 4.6 Ruleset Integration for Medical Decision Support Decision support systems aid in the process of human decision making, especially decision making that relies on expertise. Reasoning with rules is an important part of this expert decision making. For complex decision support systems, it is expected that rules will be furnished by a variety of different sources, including ontologies, knowledge bases, and other expert systems. This use case illustrates how RIF makes it possible to merge rulesets from diverse sources in diverse formats into one rule-based system, thereby enabling inferences that might otherwise have remained implicit. Medical decision support systems, such as the ones discussed below, might use rules from pharmaceutical knowledge bases, laboratory knowledge bases, patient databases, and medical ontologies. For example, a large amount of information on therapeutic medications (drug taxonomies, indications, contraindications, and clearance times) and diseases (disease taxonomies, etiologies, and symptoms) is contained in existing ontologies such as SNOMED Clinical Terms®. Rules can be used to express therapeutic recommendations, to formulate queries about relevant prescriptions for a patient, and to assess the effectiveness of a treatment. The following scenario illustrates how rule-interchange would be used in various medical decision support systems to support the following functionalities: Improving situation assessment, e.g., determining when a patient needs to be put on medication, or have his medication switched. Prescribing a course of action, e.g., determining which drug is best for a patient in a particular circumstance. Improving event planning, e.g., determining whether a patient can be scheduled for a procedure given the medication that he is currently taking. Bob, 62 years old and reasonably healthy, has been going to his internist, Dr. Rosen, for several years for control of his Type II diabetes. Dr. Rosen has been using the AutoDoc system to help him decide when to switch to medications and which drugs to prescribe. The AutoDoc system uses two sources when making its recommendations: a laboratory knowledge base giving particular results for patients and specifying when these results are out of normal range, and a pharmaceutical knowledge base giving guidelines for the use of medications. Automated reasoning with rules from these combined sources is possible if the rules are first mapped to RIF. Here are two specific examples of such synergistic effects. This scenario discusses the fictitious expert systems AutoDoc and MEDIC. In the interest of readability and brevity, the information and rules presented in the following scenario may not precisely capture the current state of medical knowledge and best practices in this field, but may be somewhat simplified. Originally Bob's diabetes was controlled through diet and moderate exercise. In time, however, Bob's blood glucose level began to rise, even under this regimen. Due to Bob's elevated HbA1c level (which indicates one's average blood sugar level over the last several months), Dr. Rosen prescribed oral medication for Bob. He was forced to change Bob's medication a number of times over the course of a year. He first prescribed Precose, an oral alpha-glucosidase inhibitor, but had to discontinue this medication due to undesired side effects. He then prescribed several sulfonylurea drugs, Micronase and Glucotrol, to no avail. Bob's lab results still indicated an elevated HbA1c level. The following rule from the laboratory knowledge base suggests that Bob's treatment at that time was not effective: If a Type II diabetes patient's current level of HbA1c is high, then the patient's current treatment is considered to be ineffective. Representation in RIF BLD Presentation Syntax using relations and an event calculus axiomatization: Document( Prefix(pred http://www.w3.org/2007/rif-builtin-predicate# ) Prefix(func http://www.w3.org/2007/rif-builtin-function# ) Prefix(ex http://example.org/example#) Group ( Forall ?Patient ?Treatment ?Level ?T ( ex:holdsAt(ex:ineffective(?Patient ?Treatment) ?T) :- ex:holdsAt(ex:hasDisease(?Patient "diabetesTypeII") ?T) ex:holdsAt(ex:elevated(levelOf(?Patient "hbA1c" ?Level)) ?T) ex:holdsAt(ex:treatmentPlan(?Treatment ?Patient) ?T) ) ) ) Note, the example requires the formalization of changeable states which can be represented by an event calculus axiomatization. KS86 ] The EC axioms can then be represented using RIF BLD. To deal with this problem, Dr. Rosen was about to prescribe Glucophage (metformin, one of the biguanides) 850 mg, 3 times a day, when as usual, he double checked his prescription with the AutoDoc system. The system, based on the following guidelines from the pharmaceutical knowledge base , informed Dr. Rosen that he should have prescribed an oral bitherapy (two medications, each of which controls blood sugar levels) instead of a monotherapy. If an oral monotherapy at recommended doses of a sulfonylurea or biguanide, combined with lifestyle changes, is ineffective, then the monotherapy should be replaced by an oral bitherapy. Based on the recommendation from AutoDoc , Dr. Rosen switched Bob's prescription to Glucophage and Avandia (rosiglitazone, one of the thiazolidinediones). Bob recently suffered a concussion and has become increasingly forgetful. He went to see a neurologist, Dr. Cervello, who prescribed a contrast MRI (Magnetic Resonance Imaging). When asked about current medication, Bob told Dr. Cervello that he was taking Glucotrol to control his diabetes, forgetting that he had been switched to Glucophage. This was potentially problematic, since Glucophage should not be taken close to the administration of a contrast injection. Fortunately, when Bob went to the lab to schedule his MRI, the medical receptionist pulled up MEDIC (Medical Event and Drug Interaction Consultant), the hospital's new automated system, which checks for incompatible medical events and/or drugs (e.g., liposuction scheduled during pregnancy, blood thinners prescribed before surgery, etc.). MEDIC uses a variety of sources in its reasoning, including: the pharmaceutical knowledge base, described above the patient databases, which gives the patient record, including the medications a patient is currently taking the hospital medical event protocol knowledge base, which details the protocol used for different medical procedures In this case, MEDIC uses all three sources, and pulls up the following information: Metformin is contraindicated with contrast dye. Metformin is the generic form of Glucophage. Bob is taking Glucophage. The contrast MRI requires as one of its steps injecting the patient with contrast dye. MEDIC therefore determines that Bob should not be taking the contrast MRI at this time. For MEDIC to work, the rules from these different sources must be mapped to a unified interchange format. 4.7 Interchanging Rule Extensions to OWL Rules are often used in conjunction with other declarative knowledge representation formalisms, such as ontology languages (e.g. RDF and OWL), in order to provide greater expressive power than is provided by either formalism alone. Ontology languages, for example, typically provide a richer language for describing classes (unary predicates). Rules, on the other hand, typically provide a richer language for describing dependencies between properties (binary predicates), and may also support higher-arity predicates. Rich domain models combining both rules and ontologies are often needed in domains such as medicine, biology, e-Science and Web services. In such domains, several actors and/or agents are involved that have to interchange the data, ontologies, and rules that they work with. An example is the use of such a domain model in an application that aims at assisting the labeling of brain cortex structures in MRI images. In this case, an OWL ontology is used to capture knowledge about the most important brain cortex anatomical structures, and a rule base is used to capture knowledge about mereological and spatial dependencies between properties. For example, a rule is used to express the dependency between the ontology properties isMAEConnectedTo and isMAEBoundedBy, in particular (a simplified form of) the knowledge that two Material Anatomical Entities having a shared boundary are connected: If MAE X is bounded by Z and MAE Y is also bounded by Z then X is connected to Y. Benefits of interchange via RIF include the ability to collaboratively develop and share valuable knowledge, the ability to integrate anatomical images, possibly from distributed image sources, and the ability to use large-scale federated systems for statistical analysis of brain images of major brain pathologies. 4.8 Vocabulary Mapping for Data Integration This use case concerns the integration of information from multiple data sources. The Semantic Web provides a common data representation and query language, which greatly simplifies access to diverse sources but does not directly address the problem that independent data sources may have rather divergent information models. Rules are an effective way to express mappings between such information models. However, rules locked within local proprietary systems cannot be reused. With a common rule representation, such mappings can be published across the Semantic Web, enabling an enterprise or community to progressively build up a rich network of mappings unifying the information models. Information mapping and integration problems like this arise in many diverse domains including health care, travel planning, IT management and customer information management. The following scenario comes from the world of IT systems management. Vlad has been given the job of analyzing how exposed his division's business processes are to changes in their IT maintenance contracts. He has three sources of information to combine: a report on application services and associated servers, databases and networks (from the IT department) a maintenance contracts database (from the finance department) a registry indicating which business processes use which IT services (from the business planning group) Each of these sources is in a different form but can be mapped into RDF to simplify access. However, they all have different information models. The IT report is too fine-grained: it talks about routers and interface cards whereas Vlad only needs to identify servers and pick out some generic dependency relations. On the other hand, the finance database models the world in terms of physical assets such as racks, which is too coarse-grained. First, Vlad creates simple mapping rules to create a uniform, simplified view of the data in terms of a small number of concepts -- Server, Business Process and Dependency. This involves rules such as: If x is a ComputeNode in Rack r and Rack r is in Cage c and mc is a MaintenanceContract for Cage c then x is a Server with MaintenanceContract mc If x is a ComputeNode with a NetworkInterface with Port p and app is an Application running on Port p then x is a Server that hosts app If bp is a BusinessProcess that uses Application app then bp has a Dependency on app Representation in RIF BLD Presentation Syntax using relations: Forall ?X ?MC ?R ?C(  ?X[rdf:type->ex:Server ex:maintenanceContract->?MC] :- And(  ?X[rdf:type->ex:ComputeNode ex:location->?R] ?R#ex:Rack  ?R[ex:location->?C] ?C#ex:Cage  ?C[ex:maintenanceContract->?MC] ?MC#ex:MaintenanceContract )) Forall ?X ?Ni ?P ?App (  ?X[rdf:type->ex:Server ex:hosts->?App] :- And(  ?X[rdf:type->ex:ComputeNode ex:networkInterface->?Ni]  ?Ni[ex:port->?P]  ?P#ex:Port  ?App[rdf:type->ex:Application ex:onPort->?P])) Forall ?App ?BP (  ?BP[ex:dependsOn->?App] :-  ?BP[rdf:type->ex:BusinessProcess ex:processUses->?App] )) He then creates rules that combine the data across his now simplified data sources, e.g. If bp is a BusinessProcess that has a Dependency on Application app and x is a Server with MaintenanceContract mc that hosts Application app then bp has a Dependency on mc Representation in RIF BLD Presentation Syntax using relations: Forall ?App ?BP ?App ?MC(  ?BP[ex:dependsOn->?MC] :- <  ?BP[rdf:type->ex:BusinessProcess ex:dependsOn->?App] ?App#ex:Application  ?X[rdf:type->ex:Server ex:hosts->?App ex:maintenanceContract->?MC] )) This gives him a uniform view that links from business processes through to the IT and finance data. Vlad publishes these rules so that other people across the company can reuse them to construct similar views. 4.9 BPEL Orchestration of Rule-Based Web Services Rule-based Web services depend on the use of XML data for their request and response format. The involved rules must be able to access and compare XML data in their conditions and modify and generate XML data in their actions. An existing commercial credit approval service deployed as a Web service takes an applicant credit request document as input and returns an approval or denial (with reason). It is implemented as a BPEL orchestration of two Web services -- a credit history providing service and a decision service containing a rules engine. BPEL first passes the credit request document to the decision service to determine, using rules, whether enough information (SSN, mother's maiden name, etc.) is available to request a credit history. If so, BPEL then requests a credit history from the history providing service and passes the credit history document to the decision service to be evaluated. Based on the evaluation, credit is approved or denied. Because the rule engine is part of a Web service, existing BPEL diagramming and execution facilities can be used to integrate rules into this credit approval service. The credit evaluation model can be changed easily using GUI tools to customize rules. Use of RIF would improve the situation further. First, the credit history vendor could supply a default set of rules for evaluating its histories. Second, there would be several rule editing and customization tools fromof these sources is in a different RIF compatible vendorsform but can be mapped into RDF to tailorsimplify access. However, they all have different information models. The rulesIT report is too fine-grained: it talks about routers and interface cards whereas Vlad only needs to meet specific business objectives.identify servers and pick out some generic dependency relations. On the credit evaluation rules are themselves grouped into three rulesets that are executed sequentially. Rules inother hand, the first ruleset apply thresholds to several "red flag" quantities infinance database models the credit report, such as: numberworld in terms of timesphysical assets such as racks, which is too coarse-grained.

First, Vlad creates simple mapping rules to create a payment was 60 days late debt-to-income ratio numberuniform, simplified view of foreclosures or repossessions numberthe data in terms of garnishmentsa small number of liens bankruptcyconcepts -- Server, BusinessProcess and Dependency. This involves rules such as:

 If x is a  red flag above the threshold resultsComputeNode in  denial of credit. RulesRack r
    and Rack r is in  the second ruleset incrementCage c
    and mc is a  credit score variable.MaintenanceContract for  example: If applicant owns residence then add 40. If applicant rentsCage c
       then  add 30.x is a Server with MaintenanceContract mc
 
 If  applicant has lived at current address 2 to 4 yearsx is a ComputeNode with a NetworkInterface with Port p
    and app is an Application running on Port p
       then  add 20.x is a Server that hosts app
 
 If  applicant's incomebp is  under 20000a BusinessProcess that uses Application app
       then bp has a Dependency on app

He then add 10.creates rules that combine the data across his now simplified data sources, e.g.

 If  applicant's incomebp is  between 40000a BusinessProcess that has a Dependency on Application app
   and  50000x is a Server with MaintenanceContract mc that hosts Application app
      then  add 40.bp has a Dependency on mc

This gives him a goal-driven solution with makes use of assert and retract (not supported by BLD)uniform view that links from business processes through to update a global score value, which is stored in a fact.the thirdIT and final ruleset comparesfinance data. Vlad publishes these rules so that other people across the company can reuse them to construct similar views.



4.1.5 BPEL Orchestration of Rule-Based Web Services

Rule-based Web services depend on the applicant's credit score and income to threshold values,use of XML data for their request and makesresponse format. The final decision to approve or deny creditinvolved rules must be able to the applicant. The decisionaccess and supporting rationale is returned from the decisioncompare XML data in their conditions and modify and generate XML data in their actions.

An existing commercial credit approval service deployed as a Web service takes an XML document. This decision document is then used to construct the reply to the originalapplicant credit request document as input and returns an approval request. 4.10 Publishing Rules for Interlinked Metadata The Semantic Web includes technologies (e.g., RDF) that allow metadata to be published in machine-readable form. Currently, this informationor denial (with reason). It is mostly enumeratedimplemented as a setBPEL orchestration of facts. It is often desirable, however, to supplement such facts withtwo Web services -- a credit history providing service and a decision service containing a rules that capture implicit knowledge .engine. BPEL first passes the credit request document to maximizethe usefulness of such publisheddecision service to determine, using rules, a standard rule format such as RIFwhether enough information (SSN, mother's maiden name, etc.) is necessary. One case involves extending current standards for metadata publication with rules in orderavailable to express implicit knowledge. Suppose thatrequest a credit history. If so, BPEL then requests a credit history from the International Movie Database (IMD) publishes its metadatahistory providing service and rules in a machine readable format at http://imd.example.org. Besidespasses the ground facts, which can be expressed in RDF,credit history document to the metadata might also have general rules likedecision service to be evaluated. Based on the following: Every science fiction movieevaluation, credit is approved or denied.

Because the rule engine is part of a movie. Every movie produced before 1930 is blackWeb service, existing BPEL diagramming and white. Representation in RIF BLD (Abridged) Presentation Syntax using relations:  ?Movie#ex:Movie :-  ?Movie#ex:ScienceFictionMovie. ?Movie#ex:BlackWhiteMovie :-  ?Movie#ex:Movie[ex:date -> ?Date]  ?Date < "1930"^^xs:dateTime. Such rules allow data toexecution facilities can be published more concisely by expressing knowledge that, without these rules, is implicit.used to integrate rules into this credit approval service. The credit evaluation model can greatly simplifybe changed easily using GUI tools to customize rules. Use of RIF would improve the maintenancesituation further. First, the credit history vendor could supply a default set of data, guard against inadvertently introduced inconsistencies, and reduce storage requirements. Publishedrules also allow combining datafor evaluating its histories. Second, there would be several rule editing and customization tools from different sourcesRIF compatible vendors to exploit this knowledge. Consider an alternative database of movies published at http://altmd.example.org. In additiontailor the rules to metadata, it again publishes its own rules: All movies listed at http://altmd.example.org but not listed at http://imd.example.orgmeet specific business objectives.

The credit evaluation rules are independent movies. All movies with budgets below 5 million USDthemselves grouped into three rulesets that are low-budget movies. Representation in RIF BLD (Abridged) Presentation Syntax using relations:  ?Movie#ex:IndependentMovie :- listed(?Movie#ex:Movie,<http://altmd.example.org>) not(listed(?Movie#ex:Movie,<http://imd.example.org>)). ?Movie#ex:LowBudgetMovie :-  ?Movie#ex:Movie [date -> ?Date, budget -> ?Budget]  ?Budget < 5000000^^xs:long. Publication ofexecuted sequentially. Rules with explicit references to other rulesets allows the definition of knowledge dependent on explicitly specified remote sources. Such explicitly specified scope is importantin the Web environment, since it can reducefirst ruleset apply thresholds to several "red flag" quantities in the dangercredit report, such as:

  • number of unintended interference from rules published at other remote sources, which may be exporting their own predicates. Another exampletimes a payment was 60 days late
  • debt-to-income ratio
  • number of such explicit referencing, which also illustrates implicit person-centric metadata, involves published rules being used to specify how to use other metadata, e.g.foreclosures or repossessions
  • number of garnishments
  • number of liens
  • bankruptcy

A red flag above the threshold results in denial of credit.

Rules in the form of a widespread vocabulary such as FOAF orsecond ruleset increment a standard exchange format like iCalendar.credit score variable. For example, FOAF user Charlie might choose to complement his normal FOAF profile with his preferences about which of his phone numbers should be used depending on his iCalendar schedule:example:

 If  Charlie is currently attending a public talk according to http://charlie.example.org/calender.icalapplicant owns residence then  leave him a voicemail messageadd 40.
 If  Charlie is currently in a meeting according to http://charlie.example.org/calender.ical and the importance is highapplicant rents then  call his cell numberadd 30.
 If  Charlie currentlyapplicant has  no appointments accordinglived at current address 2 to  http://charlie.example.org/calender.ical4 years then  call his office numberadd 20.
 If applicant's income is under 20000 then add 10.
 If applicant's income is between 40000 and 50000 then add 40.

The Web to support new kinds of "intelligent" crawlingthird and search. 5 Requirementsfinal ruleset compares the goalsapplicant's credit score and use cases motivate a number of requirements for a Rule Interchange Format.income to threshold values, and makes the Working Group has currently approvedfinal decision to approve or deny credit to the following requirements. Requirements listedapplicant.

The decision and supporting rationale is returned from the decision service as "General" are deemedan XML document. This decision document is then used to be fundamental properties which needconstruct the reply to be fully covered bythe currently specified RIF dialects. Basic requirementsoriginal credit approval request.



4.2 PRD Use Cases

4.2.1 Medical Reasoning Across Integrated Production Systems

4.2.2 Integrating Production Systems in Cases of Business Mergers

4.2.3 Collaborative Policy Development for a Rule Interchange Format are motivated by specificDynamic Spectrum Access

Editor's Note: Incomplete: this use cases. 5.1 General 5.1.1 Implementability RIF mustcase needs to be implementable using well understood techniques, and should not require new research in e.g. algorithms or semanticswritten in order to implement translators. 5.1.2 Semantic precision RIF core must have a clear and precise syntax and semantics. Each standard RIF dialect must have a clear and precise syntax and semantics that extendsPRD.


This use case demonstrates how RIF core. 5.1.3 Extensible Format It must be possibleleads to create new RIF dialects which extend existing dialects (thus providing backward compatibility)increased flexibility in matching the goals of end-users of a service/device, with the goals of providers and are handled gracefully by systems which support existing dialects (thus providing forward compatibility). 5.1.4 Translators For every standardregulators of such services/devices. RIF dialectcan do that because it must be possible to implement translators between rule languages covered byenables deployment of third party systems that dialect and RIF without changingcan generate various suitable interpretations and/or translations of the rule language. 5.1.5 Standard components RIF implementations must be able tosanctioned rules governing a service/device.

This use standard support technologies such as XML parserscase concerns Dynamic Spectrum Access for wireless communication devices. Recent technological and other parser generators,regulatory trends are converging toward a more flexible architecture in which reconfigurable devices may operate legally in various regulatory and should not require special purpose implementations when reuse is possible. 5.1.6 Rule language coverage Because ofservice environments. The great diversityability of rule languages, no one interchange language is likely to be able to bridge between all. Instead, RIF provides dialects which are each targeted ata cluster of similar rule languages. RIF must allow intra-dialect interoperation, i.e. interoperability between semantically similar rule languages (via interchange of RIF rules) within one dialect, and it should support inter-dialect interoperation, i.e. interoperation between dialects with maximum overlap. 5.2 Basic Requirements 5.2.1 Compliance modeldevice to absorb the RIF specifications must provide clear conformance criteria,rules defining what isthe policies of a region, or the operational protocols required to dynamically access available spectrum, is notcontingent upon those rules being in a conformant RIF implementation. 5.2.2 Default behavior RIF must specify atform that the appropriate level of detaildevice can use, as well as their being tailored to work with devices in the default behavior that is expected fromsame class having different capabilities.

In this use-case we suppose a RIF compliant applicationregion adopts a policy that does not haveallows certain wireless devices to opportunistically use frequency bands that are normally reserved for certain high-priority users. (The decision by the capabilityEuropean Union to process all or partallow "Dynamic Frequency Selection" (DFS) use of the rules described in5 GHz frequency band by wireless systems, a RIF document, or it must provideband intermittently used by military and weather radar, is a way to specify such default behavior. 5.2.3 Different semantics RIF must cover rule languages having different semantics. 5.2.4 Limited number of dialects RIF must haverecent example.)

Suppose the policy states:

A  standard core andwireless device can transmit on a  limited number of standard dialects based upon5 GHz band if no priority user is currently using that  core. 5.2.5 Embedded comments RIF must be able to pass comments. 5.2.6 Embedded metadata RIF must support metadataband.

How does a RIF document must be uniquely determined bydevice know that no priority user is currently using a band it wants to use? The answer will depend on the contentspecific capabilities of the document, without out-of-band data. 5.2.10 XML syntax RIF must have an XML syntax as its primary normative syntax. 5.2.11 XML types RIF must support an appropriate setdevice. One type of scalar datatypes and associated operations as defined in XML Schema part 2 and associated specifications. Seedevice may answer this question by sensing the charteramount of energy it is receiving on Datatype support . 5.2.12 Merge Rule Sets RIF must supportthat band. That is, it might employ the ability to merge rule sets. 5.2.13 Identify Rule Setsrule:

If no energy is detected on a desired band then assume no other device is using the band.

A second type of device, may get information from a language tag. 6 Conclusioncontrol channel that lets it know whether the goaldesired band is being used by a priority user. That is, it might employ the rule:

If no control signal indicating use of a desired band by a priority user is detected then assume the band is available.

So each type of rules and rule-based systems. These formats act as "interlingua"device will need to interchange rules and integrate with other languages, in particular (Semantic) Web mark-up languages. As can be seen by studyingemploy different "interpretations" or "operational definitions" of the use-cases presentedpolicy in this document, rulesquestion.

Now assume that there are used to perform a wide variety10 manufacturers of tasks, and, therefore,these 2 different types of wireless devices. Suppose that each of these manufacturers uses a distinct rule-based systems are not monolithic. Rules have been usedplatform in designing its devices. Each manufacturer needs to perform or validate inference, perform calculations, direct the flowwrite 2 interpretations of information, enforce integrity constraints on databases, represent and enforce policies, control devices and processes in real-time, determinethe need for human intervention, and so on. In lightpolicy (for each of this diversitythe working group expects that RIF, rather than being a single all-encompassing format, will consisttwo types of several dialects, each dialect serving a particular setdevice). That means that 20 different versions of related rule languages.the key ideapolicy must be written, tested and maintained.

Enter RIF. The 10 manufacturers form a consortium. This is a third-party group that is responsible for translating regional policies into RIF. When it does so, however, it provides different versions corresponding to attainthe goal of interoperability (via interchangepossible interpretations (operational definitions) of RIF rules) within each dialect. This should allowthe main benefits ofpolicy. So in this case, 2 RIF to be realized.versions of the DFS policy are provided for example,the invariant meaning2 types of a setdevice mentioned above. Each of integrity-constraint-enforcing rules would be represented within the appropriatethese RIF dialect and could thenspecifications can be automatically translated into the native formatappropriate rule-platform provided a RIF-Compiler for the target device architecture exists. Clearly it will be in the interest of anyeach device manufacturer to develop such compilers. That is because the manufacturer only needs to develop such a compiler once for every architecture it owns. Contrast that investment with having to produce, test, and maintain different versions of various policies over the formalisms capablelifetime of representing such rules. RIF musta product.

This arrangement also allows the overall process to be designedorganized in sucha wayfashion that it is possible to create new dialects (extensibility) according to the overall goals andmaintains the general requirementsnatural division of RIF, as well as to update existing dialects (upwardly compatible). This islabor in keeping withthe working group charter's call for an extensible format. Other requirements oncorresponding division of artifacts produced by that labor: the framework,policy and RIF as a whole, are included in this document. Achieving inter -dialect interoperability is, byits very nature, an ill-constrained problem since, by definition, 100% meaning-preserving translations between dialects with different semantics are not likely to exist in most cases. That is not to say that useful inter-dialect "translation" is impossible, only that additional criteriavarious interpretations are requiredwritten and maintained in orderplatform-independent artifacts (RIF); knowledge about how to formulate precise notions of what satisfactory translation (via interchange oftranslate from RIF rules) amountsto in such cases. Developing criteria for understanding and managing RIF inter-dialect translationsa particular device architecture is not withinmaintained in the current phase of RIF working group activity. 7 References [KS86] Kowalski, R.A. and M.J. Sergot,compilers. A logic-based calculus of events. New Generation Computing, 1986. 4: p. 67-95. [RIF-DTB] RIF Datatypes and Built-Ins 1.0 Axel Polleres, Harold Boley, Michael Kifer, eds. W3C Editor's Draft, 4 September 2009, http://www.w3.org/2005/rules/wg/draft/ED-rif-dtb-20090904/ . Latest version available at http://www.w3.org/2005/rules/wg/draft/rif-dtb/ . [RIF-BLD] RIF Basic Logic Dialect Harold Boley, Michael Kifer, eds. W3C Editor's Draft, 4 September 2009, http://www.w3.org/2005/rules/wg/draft/ED-rif-bld-20090904/ . Latest version availablechange in policy is inserted at http://www.w3.org/2005/rules/wg/draft/rif-bld/ . [RIF-PRD] RIF Production Rule Dialect Christian de Sainte Marie, Adrian Paschke, Gary Hallmark, eds. W3C Editor's Draft, 4 September 2009, http://www.w3.org/2005/rules/wg/draft/ED-rif-prd-20090904/ . Latest version availablethe top level in the policy artifact hierarchy where it should be; possible operational interpretations of that change are inserted at http://www.w3.org/2005/rules/wg/draft/rif-prd/ . [RIF-RDF+OWL] RIF RDF and OWL Compatibility Jos de Bruijn, editor. W3C Editor's Draft, 4 September 2009, http://www.w3.org/2005/rules/wg/draft/ED-rif-rdf-owl-20090904/ . Latest version availablethe next level down; the implementation implications for the various device architectures is generated automatically at http://www.w3.org/2005/rules/wg/draft/rif-rdf-owl/ .the lowest level.