W3C


RIF RDF and OWL Compatibility

W3C Editor's Draft 18 May17 July 2008

This version:
http://www.w3.org/2005/rules/wg/draft/ED-rif-rdf-owl-20080518/http://www.w3.org/2005/rules/wg/draft/ED-rif-rdf-owl-20080717/
Latest editor's draft:
http://www.w3.org/2005/rules/wg/draft/rif-rdf-owl/
Previous version:
http://www.w3.org/TR/2008/WD-rif-rdf-owl-20080415/http://www.w3.org/2005/rules/wg/draft/ED-rif-rdf-owl-20080709/ (color-coded diff)
Editors:
Jos de Bruijn, Free University of Bozen/Bolzano


Abstract

Rules interchanged using the Rule Interchange Format RIF may depend on or be used in combination with RDF data and RDF Schema or OWL data models (ontologies). This document, developed by the Rule Interchange Format (RIF) Working Group, specifies the interoperation between RIF and the data and ontology languages RDF, RDFS,RDF Schema, and OWL.

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 56 documents:

  1. RIF Use Cases and Requirements
  2. RIF Basic Logic Dialect
  3. RIF Framework for Logic Dialects
  4. RIF RDF and OWL Compatibility (this document)
  5. RIF Data Types and Built-InsProduction Rule Dialect
  6. RIF Use CasesDatatypes and RequirementsBuilt-Ins 1.0

Please Comment By 2008-05-252008-07-21

The Rule Interchange Format (RIF) Working Group seeks public feedback on these Working Drafts. 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 for internal-review comments and changes being drafted which may address your concerns.

No Endorsement

Publication as a Working 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. 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.


Contents

1 Overview of RDF and OWL Compatibility

The Rule Interchange Format (RIF), specifically the(RIF) Basic Logic Dialect (BLD) ([RIF-BLD ),] is a format for interchanging logical rules over the Web. Rules that are exchanged using RIF may refer to external data sources and may be based on data models that are represented using a language different from RIF. The Resource Description Framework RDF ([RDF-Concepts )] is a Web-based language for the representation and exchange of data; RDF Schema (RDFS) ([RDF-Schema )] and the OWL Web Ontology Language ([OWL-Reference )] are Web-based languages for representing and exchanging ontologies (i.e., data models). This document specifies how combinations of RIF BLD Rulesetsdocuments and RDF data and RDFS and OWL ontologies are interpreted; i.e., it specifies how RIF interoperates with RDF/OWL.RDF, RDFS, and OWL.

The RIF working group plans to develop further dialects besides BLD, most notably a dialect based on Production Rules ([RIF-PRD );]; these dialects are not necessarily extensions of BLD. Future versions of this document may address compatibility of these dialects with RDF and OWL as well.OWL. In the remainder of this document,remainder, RIF is understood to refer to RIF BLD ([RIF-BLD ).].

RDF data and RDFS and OWL ontologies are represented using RDF graphs. Several syntaxes have been proposed for the exchange of RDF graphs, the normative syntax being RDF/XML ([RDF-Syntax ).]. RIF does not provide a format for exchanging RDF graphs, since this would be a duplication. Instead,graphs; it is assumed that RDF graphs are exchanged using RDF/XML, or any other syntax that can be used for representing or exchanging RDF graphs.

A typical scenario for the use of RIF with RDF/OWL is the exchange of rules that eitheruse RDF data or anand/or RDFS or OWL ontology:ontologies: an interchange partner A has a rules language that is RDF/OWL-aware, i.e., it supports the use of RDF data, it uses an RDFS or OWL ontology, or it extends RDF(S)/OWL. A sends its rules using RIF, possibly with references to the appropriate RDF graph(s), to partner B. B receives the rules and retrieves the referenced RDF graph(s) (published as, e.g., RDF/XML ([RDF-Syntax )).]). The rules are translated to the internal rules language of B and are processed, together with the RDF graphs, using the RDF/OWL-aware rule engine of B. The use case Vocabulary Mapping for Data Integration ([RIF-UCR )] is an example of the interchange of RIF rules that use RDF data and RDFS ontologies.

A specialization of this scenario is the publication of RIF rules that refer to RDF graphs:graphs; publication is a special kind of interchange: one to many, rather than one-to-one. When a rule publisher A publishes its rules on the Web, it is hoped that there are several consumers that retrieve the RIF rules and RDF graphs from the Web, translate the RIF rules to their own rules language, and process them together with the RDF graphs in their own rules engine. The use case Publishing Rules for Interlinked Metadata ([RIF-UCR )] illustrates the publication scenario.

Another specialization of the exchange scenario is the Interchange of Rule Extensions to OWL ([RIF-UCR ).]. The intention of the rule publisher in this scenario is to extend an OWL ontology with rules: interchange partner A has a rules language that extends OWL. A splits its ontology+rules description into a separate OWL ontology and a RIF ruleset,document, publishes the OWL ontology, and sends (or publishes) the RIF ruleset,document, which includes a reference to the OWL ontology. A consumer of the rules retrieves the OWL ontology and translates the ontology and rulesetdocument into a combined ontology+rules description in its own rule extension of OWL.


A RIF rulesetdocument that refers to (imports) RDF graphs and/or RDFS/OWL ontologies, or any use of a RIF rulesetdocument with RDF graphs, is viewed as a combination of a rulesetdocument and a number of graphs and ontologies. This document specifies how, in such a combination, the rulesetdocument and the graphs and ontologies interoperate in a technical sense, i.e., the conditions under which the combination is satisfiable (i.e., consistent), as well as the entailments (i.e., logical consequences) of the combination. The interaction between RIF and RDF/OWL is realized by connecting the model theory of RIF (specified in ([RIF-BLD ))] with the model theories of RDF (specified in ([RDF-Semantics ))] and OWL (specified in ([OWL-Semantics )),], respectively.


Throughout this documentThe following conventions are used when writing RIF and RDF statementsnotation of certain symbols in examplesRIF, particularly IRIs and definitions. RIF constants inplain literals, is slightly different from the symbol space rif:iri , i.e., constants that are absolute IRIs,notation in RDF/OWL. These differences are abbreviated. Specifically, constants ofillustrated in the form " absolute-IRI "^^rif:iri are written as compact IRIs ( CURIE ), i.e., as prefix : localname , where prefix is understood to refer to an IRI namespace-IRI , and prefix : localname stands for the IRI ( absolute-IRI ) obtained by concatenating namespace-IRI and localname . RDF triples are written using the Turtle syntax ( Turtle ): for the purposes of this document, triples are written as s p o , where s, p, o are IRIs delimited with ' < ' and ' > ', compact IRIs prefix : localname , or typed literals "literal" ^^ datatype-IRI . The following namespace prefixes are used throughout this document: ex refers to the example namespace http://example.org/example# , xsd refers to the XML schema namespace http://www.w3.org/2001/XMLSchema# , rdf refers to the RDF namespace http://www.w3.org/1999/02/22-rdf-syntax-ns# , rdfs refers to the RDFS namespace http://www.w3.org/2000/01/rdf-schema# , owl refers to the OWL namespace http://www.w3.org/2002/07/owl# , and rif refers to the RIF namespace http://www.w3.org/2007/rif# .Section Symbols in RIF Versus RDF/OWL.

The RDF semantics specification ([RDF-Semantics )] defines four notions of entailment for RDF graphs. The OWL semantics specification ([OWL-Semantics )] defines two notions of entailment for OWL ontologies, namely OWL Lite/DL and OWL Full. This document specifies the interaction between RIF and RDF/OWL for all six notions. The Section RDF Compatibility is concerned with the combination of RIF and RDF/RDFS. The combination of RIF and OWL is addressed in the Section OWL Compatibility. The semantics of the interaction between RIF and OWL DL is close in spirit to [SWRL].

RIF provides a mechanism for referring to (importing) RDF graphs and a means for specifying the context of this import, which corresponds to the intended entailment regime. The Section Importing RDF Graphsand OWL in RIF specifies how such import statements are used for representing RIF-RDF and RIF-OWL combinations.

The Appendix: Embeddings (Informative) describes how reasoning with combinations of RIF rules with RDF and a subset of OWL DL can be reduced to reasoning with RIF rulesets,documents, which can be seen as a guide to describing how a RIF processor could be turned into an RDF/OWL-aware RIF processor. This reduction can be seen as a guide for interchange partners that do not have RDF-aware rule systems, but want to be able to process RIF rules that refer to RDF graphs. In terms of the aforementioned scenario: if the interchange partner B does not have an RDF/OWL-aware rule system, but B can process RIF rules, then the appendix explains how B's rule system could be used for processing RIF-RDF.

2 RDF CompatibilityThroughout this section specifies how adocument the following conventions are used when writing RIF ruleset interacts with a set ofand RDF graphs in a RIF-RDF combination. In other words, how rules can "access" datastatements in the RDF graphsexamples and how additional conclusions that may be drawn from thedefinitions.

2 Symbols in RIF Versus RDF/OWL (Informative)

Where RDF/OWL has four kinds of symbols.constants: URI references (i.e., IRIs), plain literals without language tags, plain literals with language tags and typed literals (i.e., Unicode sequences with datatype IRIs) [RDF-Concepts], RIF has one kind of constants: Unicode sequences with symbol space IRIs [RIF-DTB].

Symbol spaces can be seen as groups of constants. Every datatype is a symbol space, but there are symbol spaces that are not datatypes. For example, the symbol space rif:iri groups all IRIs. The correspondence between constant symbols in RDF graphs and RIF documents is explained in Table 1.

Table 1. Correspondence between RDF and RIF symbols.
RDF Symbol Example RIF Symbol Example
AbsoluteIRI <http://www.w3.org/2007/rif> Absolute IRIConstant in the rif:iri symbol space "http://www.w3.org/2007/rif"^^rif:iri
Plain literal without language tag "literal string" StringConstant in the xs:string symbol space xsd:string"literal string"^^xsd:stringstring"^^xs:string
Plain literal with language tag "literal string"@en String plus language tag in thesymbol space rif:text "literal string@en"^^rif:text
Typed literal "1"^^xs:integer Constant with datatype "1"^^xsd:integer Symbol insymbol space "1"^^xsd:integer There is, furthermore, a correspondence between statements in RDF graphs"1"^^xs:integer

The shortcut syntax for IRIs and certain kinds of formulas in RIF. Namely, there is a correspondence between RDF triples ofstrings [RIF-DTB], used throughout this document, corresponds with the form s p osyntax for IRIs and RIF frame formulasplain literals in [Turtle], a commonly used syntax for RDF.

RIF symbolsdoes not have a notion corresponding to theRDF blank nodes. RIF local symbols s, p , and owritten _symbolname, respectively. This means that wheneverhave some commonality with blank nodes; like the blank node label, the name of a triple s p olocal symbol is satisfied,not exposed outside of the correspondingdocument. However, in contrast to blank nodes, which are essentially existentially quantified variables, RIF frame formula s'[p' -> o'] is satisfied,local symbols are constant symbols. In many applications and vice versa. Consider, for example, a combination ofdeployment scenarios, this difference may be inconsequential. However the results will differ when an RDF graph that contains the triples ex:john ex:brotherOf ex:jack . ex:jack ex:parentOf ex:mary . saying that ex:johnis used in a brother of ex:jack and ex:jack isnon-assertional context, such as in a parentquery pattern.

Finally, variables in the bodies of ex:mary ,RIF rules or in query patterns may be existentially quantified, and aare thus similar to blank nodes; however, RIF ruleset that contains the rule Forall ?x, ?y, ?z (?x[ex:uncleOf ->BLD does not allow existentially quantified variables to occur in rule heads.

3 RDF Compatibility

This section specifies how a RIF document interacts with a set of RDF graphs in a RIF-RDF combination. In other words, how rules can "access" data in the RDF graphs and how additional conclusions that may be drawn from the RIF rules are reflected in the RDF graphs.

There is a correspondence between statements in RDF graphs and certain kinds of formulas in RIF. Namely, there is a correspondence between RDF triples of the form s p o and RIF frame formulas of the form s'[p' -> o'], where s', p', and o' are RIF symbols corresponding to the RDF symbols s, p, and o, respectively. This means that whenever a triple s p o is satisfied, the corresponding RIF frame formula s'[p' -> o'] is satisfied, and vice versa.

Consider, for example, a combination of an RDF graph that contains the triples

ex:john ex:brotherOf ex:jack . 
ex:jack ex:parentOf ex:mary . 

saying that ex:john is a brother of ex:jack and ex:jack is a parent of ex:mary, and a RIF document that contains the rule

Forall ?x ?y ?z (?x[ex:uncleOf -> ?z] :- 
     And(?x[ex:brotherOf -> ?y] ?y[ex:parentOf -> ?z]))

which says that whenever some x is a brother of some y and y is a parent of some z, then x is an uncle of z. From this combination the RIF frame formula :john[:uncleOf -> :mary], as well as the RDF triple :john :uncleOf :mary, can be derived.

Note that blank nodes cannot be referenced directly from RIF rules, since blank nodes are local to a specific RDF graph. Variables in RIF rules do, however, range over objects denoted by blank nodes. So, it is possible to "access" an object denoted by a blank node from a RIF rule using a variable in a rule.

Typed literals inThe following example illustrates the interaction between RDF may be ill-typed , which means thatand RIF in the literal string is not partface of the lexical spaceblank nodes.

Consider a combination of an RDF graph that contains the datatype under consideration. Examples of such ill-typed literals are "abc"^^xsd:integer , "2"^^xsd:boolean , and "<non-valid-XML"^^rdf:XMLLiteraltriple

_:x ex:hasName "John" . 

Ill-typed literals are not expected to be used very often. However, as the RDF recommendation ( RDF-Concepts ) allows creating RDF graphs with ill-typed literals, their occurrence cannot be completely ruled out. Rulessaying that include ill-typed symbols are not legal RIF rules, sothere are no RIF symbols that correspond to ill-typed literals. As with blank nodes, variables do range over objectsis something, denoted here by such literals. The following example illustrates the interaction between RDF and RIF in the face of ill-typed literals and blank nodes. Considera combination of an RDF graph that contains the triple _:x ex:hasName "a"^^xsd:integer . saying that there is someblank node that has a name,node, which is an ill-typed literal,has the name "John", and a RIF rulesetdocument that contains the rules

Forall  ?x,?x ?y ( ?x[rdf:type ->  ex:nameBearer]ex:named] :- ?x[ex:hasName -> ?y] )
Forall  ?x,?x ?y (  "http://a"^^rif:iri["http://p"^^rif:iri<http://a>[<http://p> -> ?y] :- ?x[ex:hasName -> ?y] )

which say that whenever there is some x that has some name y, then x is of type ex:nameBearerex:named and http://a has a property http://p with value y.

From this combination the following RIF condition formulaformulas can be derived:

Exists ?z ( And( ?z[rdf:type ->  ex:nameBearer] "http://a"^^rif:iri["http://p"^^rif:iriex:named]  <http://a>[<http://p> -> ?z] ))
<http://a>[<http://p> -> "John"]

as can the following RDF triples:

_:y rdf:type  ex:nameBearerex:named .
<http://a> <http://p>  "a"^^xsd:integer"John" . 

However, "http://a"^^rif:iri["http://p"^^rif:irithere is no RIF constant symbol t such that t[rdf:type -> "a"^^xsd:integer] cannotex:named] can be derived, because itthere is not a well-formed RIF formula, due to the factno constant that "a" is not an integer; it is not in the lexical space ofrepresents the datatype xsd:integer .named individual.


The remainder of this section formally defines combinations of RIF rules with RDF graphs and the semantics of such combinations. A combination consists of a RIF rulesetdocument and a set of RDF graphs. The semantics of combinations is defined in terms of combined models, which are pairs of RIF and RDF interpretations. The interaction between the two interpretations is defined through a number of conditions. Entailment is defined as model inclusion, as usual.

2.13.1 Syntax of RIF-RDF Combinations

This section first reviews the definitions of RDF vocabularies and RDF graphs, after which definitions related to datatypes and ill-typed literals are reviewed. Finally,RIF-RDF combinations are formally defined. 2.1.1The section concludes with a review of definitions related to datatypes and typed literals.

3.1.1 RDF Vocabularies and Graphs

An RDF vocabulary V consists of the following sets of names:

The syntax of the names in these sets is definedIn RDF Concepts and Abstract Syntax ( RDF-Concepts ). Besides these names,addition, there is an infinite set of blank nodes, which is disjoint from the sets of literalsnames. See RDF Concepts and IRIs. DEFINITION:Abstract Syntax [RDF-Concepts] for precise definitions of these concepts.

Definition. Given an RDF vocabulary V, a generalized RDF triple of V is a statement of the form s p o, where s, p and o are names in V or blank nodes. DEFINITION:  ☐

Definition. Given an RDF vocabulary V, a generalized RDF graph is a set of generalized RDF triples of V.   ☐

(See the (End note on generalized RDF graphs )) 2.1.2 Datatypes)

3.1.2 RIF-RDF Combinations

A RIF-RDF combination consists of a RIF document and Typed Literals Even thoughzero or more RDF allows the usegraphs. Formally:

Definition. A RIF-RDF combination is a pair < R,S>, where R is a RIF document and S is a set of generalized RDF graphs of a vocabulary V.   ☐

When clear from the context, RIF-RDF combinations are referred to simply as combinations.

3.1.3 Datatypes and Typed Literals

Even though RDF allows the use of arbitrary datatype IRIs in typed literals, not all such datatype IRIs are recognized in the semantics. In fact, simple entailment does not recognize any datatype and RDF and RDFS entailment recognize only the datatype rdf:XMLLiteral. Furthermore, RDF allows expressing typed literals for which the literal string is not in the lexical space of the datatype; such literals are called ill-typed literals . RIF, in contrast, does not allow ill-typed literals in the syntax.To facilitate discussing datatypes, and specifically datatypes supported in specific contexts (required for D-entailment), the notion of datatype maps ([RDF-Semantics )] is used.

A datatype map is a partial mapping from IRIs to datatypes.

RDFS, specifically D-entailment, allows the use of arbitrary datatype maps, as long as therdf:XMLLiteral datatypeis includedin the domain of the map. RIF BLD additionallyrequires the followinga number of additional datatypes to be included: xsd:string , xsd:decimal , xsd:time , xsd:date , xsd:dateTime , and rif:text ;included; these datatypesare the RIF-required datatypes .[RIF-DTB].

When checking consistency of a conforming datatype map iscombination < R,S> or entailment of a datatype map that recognizes at leastgraph S or RIF formula φ by a combination < R,S>, the set of considered datatypes is the union of the set of RIF-required datatypes. DEFINITION:datatypesand the sets of datatypes used in R, the documents imported into R, and φ (when considering entailment of φ).

Definition. Let T be a set of datatypes. A datatype map D is aconforming datatype mapwith T if it satisfies the following conditions:

  1. No RIF-supported symbol space that is notEvery IRI identifying a datatype (these are rif:local and rif:iridatatypes in RIF BLD)T is in the domain of D.
  2. The IRIs identifying all RIF-required datatypes are in the domain of D.D maps IRIs identifying XML schema datatypes to the respective data types ( XML-SCHEMA2 ), rdf:XMLLiteraleach IRI in its domain to the rdf:XMLLiteralcorresponding datatype ( RDF-Concepts ), and rif:text toin T.   ☐

Note that it follows from the rif:text primitivedefinition that every datatype ( RIF-BLD ).used in the notions of well- and ill-typed literals loosely correspond toRIF document in the notionscombination or the entailed RIF formula (when considering entailment questions) is included in any datatype map conforming to the set of legal and illegal symbolsconsidered datatypes. There may be datatypes used in an RDF graph in the combination that are not included in RIF: DEFINITION:such a datatype map.

Definition. Given a conformingdatatype map D, a typed literal (s, d) is a well-typed literal if

  1. d is in the domain of D and s is in the lexical space of D(d) or
  2. d is the IRI of a symbol space supportedrequired by RIF BLD and s is in the lexical space of the symbol space. Otherwise ( s , d ) is an ill-typed literal . Editor's Note: The definition of "ill-typed literal" should be revisited. Namely, not all literals that are not well-typed are ill-typed. Perhaps the notion of ill-typed literal is not necessary at all. 2.1.3 RIF-RDF Combinations A RIF-RDF combination consists of a RIF ruleset and zero or more RDF graphs. Formally: DEFINITION: A RIF-RDF combination is a pair < R , S >, where R is a RIF ruleset and S is a set of generalized RDF graphs of a vocabulary V . When clear from the context, RIF-RDF combinations are referred to simply as combinations . 2.2  ☐

3.2 Semantics of RIF-RDF Combinations

The semantics of RIF rulesets and RDF graphs are defined in terms of model theories. The semantics ofRIF-RDF combinations is defined through a combination of the RIF and RDF model theories, using a notion of common models. These models are then used to define satisfiability and entailment in the usual way. Combined entailment extends both entailment in RIF and entailment in RDF.

The RDF Semantics document ([RDF-Semantics )] defines four normative kinds of interpretations, as well as corresponding notions of satisfiability and entailment:

Those four types of interpretations are reflected in the definitions of satisfaction and entailment in this section.

2.2.13.2.1 Interpretations

This section defines the notion of common-rif-rdf-interpretation, which is an interpretation of a RIF-RDF combination. This common-rif-rdf-interpretation is the basis for the definitions of satisfaction and entailment in the following sections.

The correspondence between RIF semantic structures (interpretations) and RDF interpretations is defined through a number of conditions that ensure the correspondence in the interpretation of names (i.e., IRIs and literals) and formulas, i.e., the correspondence between RDF triples of the form s p o and RIF frames of the form s'[p' -> o'], where s', p', and o' are RIF symbols corresponding to the RDF symbols s, p, and o, respectively (cf. Table 1the Section Symbols in RIF Versus RDF/OWL).

2.2.1.13.2.1.1 RDF and RIF Interpretations

The notions of RDF interpretation and RIF semantic structure (interpretation) are briefly reviewed below.

As defined in ([RDF-Semantics ),], a simple interpretation of a vocabulary V is a tuple I=< IR, IP, IEXT, IS, IL, LV >, where

Rdf-, rdfs-, and D-interpretations are simple interpretations that satisfy certain conditions:

As defined in ([RIF-BLD ),], a semantic structure is a tuple of the form I = <TV, DTS, D, Dind, Dfunc, IC, IV, IF, Iframe, ISF, Isub, Iisa, I=, Iexternal, Itruth>. The specification of RIF-RDF compatibility is only concerned with DTS, D, IC, IV, Iframe, Isub, Iisa, and Itruth. The other mappings that are parts of a semantic structure are not used in the definition of combinations.

Recall that Const is the set of constant symbols and Var is the set of variable symbols in RIF.

2.2.1.2 Common RIF-RDF Interpretations DEFINITION: A common-rif-rdf-interpretation is a pair ( IFor the purpose of the interpretation of imported documents, RIF BLD defines the notion of semantic multi-structures, I), wherewhich are nonempty sets {I = < TV , DTS , D , D ind , D func , I C1, ..., I V ,n} of semantic structures that are identical in all respects with the exception of the interpretation of local constants.

Given a semantic multi-structure I F ,={I frame1, ..., I SF ,n}, we use the symbol I sub ,to denote both the multi-structure and the common part of the individual structures I isa1, ..., I = ,n.

3.2.1.2 Common RIF-RDF Interpretations

Definition. A common-rif-rdf-interpretation is a pair (I external, I), where I truth >is a RIFsemantic structuremulti-structure and I=<IR, IP, IEXT, IS, IL, LV>I is an RDF interpretation of a vocabulary V, such that the following conditions hold:

  1. (IR union IP) = Dind;
  2. IP is a superset of the set of all k in Dind such that there exist some a, b in Dind and Itruth(Iframe( k )(a)(k,b))=t;
  3. LV is a superset of ( D ind intersection(union of the value spaces of all considered datatypes in DTS )););
  4. IEXT(k) = the set of all pairs (a, b), with a, b, and k in Dind, such that Itruth(Iframe( k )(a)(k,b))=t;
  5. IS(i) = IC( "i"^^rif:iri<i>) for every absolute IRI i in VU;
  6. IL((s, d)) = IC("s"^^d) for every well-typed literal (s, d) in VTL;
  7. IEXT(IS(rdf:type)) is equal to the set of all pairs <a,b>(a, b) in Dind × Dind such that Itruth(Iisa (< a,b >))=(a,b))=t; and
  8. IEXT(IS(rdfs:subClassOf)) is a superset of the set of all pairs <a,b>(a, b) in Dind × Dind such that Itruth(Isub (< a,b >))=(a,b))=t.   ☐

Condition 1 ensures that the combination of resources and properties corresponds exactly to the RIF domain; note that if I is an rdf-, rdfs-, or D-interpretation, IP is a subset of IR, and thus IR=Dind. Condition 2 ensures that the set of RDF properties at least includes all elements that are used as properties in frames in the RIF domain. Condition 3 ensures that all concrete values in Dind are included in LV.LV (by definition, the value spaces of all considered datatypes are included in Dind). Condition 4 ensures that RDF triples are interpreted in the same way as frame formulas. Condition 5 ensures that IRIs are interpreted in the same way. Condition 6 ensures that typed literals are interpreted in the same way. Note that no correspondences are defined for the mapping of names in RDF that are not symbols of RIF, e.g., ill-typed literals and RDF URI references that are not absolute IRIs. Condition 7 ensures that typing in RDF and typing in RIF correspond, i.e., a rdf:type b is true iff a # b is true. Finally, condition 8 ensures that whenever a RIF subclass statement holds, the corresponding RDF subclass statement holds as well, i.e., a rdfs:subClassOf b is true if a ## b is true.

One consequence of conditions 5 and 6 is that IRIs of the form http://iri and typed literals of the form "http://iri"^^rif:iri that occur in an RDF graph are treated the same in RIF-RDF combinations, even if the RIF Rulesetdocument is empty. Similarly for plain literals without language tags of the form "mystring" and typed literals of the form "mystring"^^xs:string. For example, consider the combination of an empty rulesetdocument and an RDF graph that contains the tripletriples

<http://a> <http://p> "http://b"^^rif:iri .
<http://a> <http://p> "abc" .
 

This combination allows the derivation of, among other things, the following triple:triples:

<http://a> <http://p> <http://b> .
<http://a> <http://p> "abc"^^xs:string .

as well as the following frame formula: "http://a"^^rif:iri ["http://p"^^rif:iriformulas:

<http://a>[<http://p> ->  "http://b"^^rif:iri] 2.2.2<http://b>]
<http://a>[<http://p> -> "abc"]

3.2.2 Satisfaction and Models

The notion of satisfiability refers to the conditions under which a common-rif-rdf-interpretation (I, I) is a model of a combination < R, S>. The notion of satisfiability is defined for all four entailment regimes of RDF (simple, RDF, RDFS, and D). The definitions are all analogous. Intuitively, a common-rif-rdf-interpretation (I, I) satisfies a combination < R, S> if I is a model of R and I satisfies S. Formally:

DEFINITION:Definition. A common-rif-rdf-interpretation (I, I) satisfies a RIF-RDF combination C=< R, S > if I is a model of R and I satisfies every RDF graph S in S; in this case (I, I) is called a simple-model, or model, of C, and C is satisfiable. (I, I) satisfies a generalized RDF graph S if I satisfies S. (I, I) satisfies a closed RIF-BLDcondition formula φ if TValI(φ)=t.   ☐

Notice that not every combination is satisfiable. In fact, not every RIF rulesetdocument has a model. For example, the rulesetdocument consisting of the rule Forall ("1"^^xsd:integer="2"^^xsd:integer)fact

"a"="b"

does not have a model, since the symbols "1"^^xsd:integer"a" and "2"^^xsd:integer"b" are mapped to the (distinct) numbers 1character strings "a" and 2,"b", respectively, in every semantic structure.

Rdf-, rdfs-, and D-satisfiability are defined through additional restrictions on I:

DEFINITION:Definition. A model (I, I) of a combination C is an rdf-model of C if I is an rdf-interpretation; in this case C is rdf-satisfiable. DEFINITION:  ☐

Definition. A model (I, I) of a combination C is an rdfs-model of C if I is an rdfs-interpretation; in this case C is rdfs-satisfiable. DEFINITION: Given a conforming datatype map D, a model  ☐

Definition. Let (I, I) be a model of a combination C and let D be a datatype map conforming with the set of datatypes in I. (I, I) is a D-model of C if I is a D-interpretation; in this case C is D-satisfiable. 2.2.3  ☐

3.2.3 Entailment

Using the notions of models defined above, entailment is defined in the usual way, i.e., through inclusion of sets of models.

DEFINITION: Given a conforming datatype map D,Definition. Let C be a RIF-RDF combination C D-entailscombination, let S be a generalized RDF graph S if every D-model of C satisfies S . Likewise, C D-entails, let φ be a closed RIF-BLDcondition φ if every D-model of C satisfiesformula, and let D be a datatype map conforming with the set of considered datatypes. C D-entails S if every D-model of C satisfies S. Likewise, C D-entails φ if every D-model of C satisfies φ.   ☐

The other notions of entailment are defined analogously:

DEFINITION:Definition. A combination C simple-entails S (resp., φ) if every simple model of C satisfies S (resp., φ). DEFINITION:  ☐

Definition. A combination C rdf-entails S (resp., φ) if every rdf-model of C satisfies S (resp., φ). DEFINITION:  ☐

Definition. A combination C rdfs-entails S (resp., φ) if every rdfs-model of C satisfies S (resp., φ). 3  ☐

4 OWL Compatibility

The syntax for exchanging OWL ontologies is based on RDF graphs. Therefore, RIF-OWL-combinations are combinationsa RIF-OWL-combination consists of a RIF rulesetsdocument and setsa set of RDF graphs, analogous to a RIF-RDF combinations.combination. This section specifies how RIF rulesetsdocuments and OWL ontologies interoperate in such combinations.

OWL ([OWL-Reference )] specifies three increasingly expressive species, namely Lite, DL, and Full. OWL Lite is a syntactic subset of OWL DL, but the semantics is the same ([OWL-Semantics ).]. Since every OWL Lite ontology is an OWL DL ontology, the Lite species is not considered separately in this document.

Syntactically speaking, OWL DL is a subset of OWL Full, but the semantics of the DL and Full species are different ([OWL-Semantics ).]. While OWL DL has an abstract syntax with a direct model-theoretic semantics, the semantics of OWL Full is an extension of the semantics of RDFS, and is defined on the RDF syntax of OWL. Consequently, the OWL Full semantics does not extend the OWL DL semantics; however, all derivations sanctioned by the OWL DL semantics are sanctioned by the OWL Full semantics.

Finally, the OWL DL RDF syntax, which is based on the OWL abstract syntax, does not extend the RDF syntax, but rather restricts it: every OWL DL ontology is an RDF graph, but not every RDF graph is an OWL DL ontology. OWL Full and RDF have the same syntax: every RDF graph is an OWL Full ontology and vice versa. This syntactical difference is reflected in the definition of RIF-OWL compatibility: combinations of RIF with OWL DL are based on the OWL abstract syntax, whereas combinations with OWL Full are based on the RDF syntax.


Since the OWL Full syntax is the same as the RDF syntax and the OWL Full semantics is an extension of the RDF semantics, the definition of RIF-OWL Full compatibility is a straightforward extension of RIF-RDF compatibility. Defining RIF-OWL DL compatibility in the same way would entail losing certain semantic properties of OWL DL. One of the main reasons for this is the difference in the way classes and properties are interpreted in OWL Full and OWL DL. In the Full species, classes and properties are both interpreted as objects in the domain of interpretation, which are then associated with subsets of and binary relations over the domain of interpretation using rdf:type and the extension function IEXT, as in RDF. In the DL species, classes and properties are directly interpreted as subsets of and binary relations over the domain. The latterThis is a key property of Description Logic semantics thatand enables the use of Description Logic reasoning techniques for processing OWL DL descriptions. Defining RIF-OWL DL compatibility as an extension of RIF-RDF compatibility would define a correspondence between OWL DL statements and RIF frame formulas. Since RIF frame formulas are interpreted using an extension function, the same way as in RDF, defining the correspondence between them and OWL DL statements would change the semantics of OWL statements, even if the RIF ruleset isdocument were empty.

Consider, for example, an OWL DL ontology with a class membership statementA rdf:type C . This statement says that the set denoted by C contains at least one elementRIF-OWL combination that is denoted by a . The corresponding RIF frame formula is a[rdf:type -> C]faithful to the terms a , rdf:type ,OWL DL semantics requires interpreting classes and C are all interpretedproperties as elements in the individual domain,sets and the pair of elements denoted bybinary relations, respectively, suggesting that a correspondence could be defined with unary and C is inbinary predicates. It is, however, also desirable that there be uniform syntax for the extensionRIF component of both OWL DL and RDF/OWL Full combinations, because one may not know at time of writing the element denoted by rdf:type . This semantic discrepancy has practical implications in termsrules which type of entailments.inference will be used. Consider, for example, an OWL DL ontologyRDF graph S with two class membership statementsthe following statement

a rdf:type C .

D rdf:type owl:Class .and a RIF rulesetdocument with the rule

Forall ?x  ?y ?x=?y which says that every element is the same as every other element (note that such statements can also be written in OWL using owl:Thing and owl:hasValue ). From the naïve combination of the two one can derive C=D , and indeed a rdf:type D . This derivation is not sanctioned by the OWL DL semantics, because even if every element is the same as every other element, the class D might be interpreted as the empty set. A RIF-OWL combination that is faithful to the OWL DL semantics requires interpreting classes and properties as sets and binary relations, respectively, suggesting that correspondence could be defined with unary and binary predicates. It is, however, also desirable that there be uniform syntax for the RIF component of both OWL DL and RDF/OWL Full combinations, because one may not know at time of writing the rules which type of inference will be used. Consider, for example, an RDF graph S with the following statement a rdf:type C . and a RIF ruleset with the rule Forall ?x ?x[rdf:type -> D] :- ?x[rdf:type -> C](?x[rdf:type -> D] :- ?x[rdf:type -> C])

The combination of the two, according to the specification of RDF Compatibility, allows deriving

a rdf:type D .

Now, the RDF graph S is also an OWL DL ontology. Therefore, one would expect the triple to be derived by RIF-OWL DL combinations as well.


To ensure that the RIF-OWL DL combination is faithful to the OWL DL semantics and to enable using the same, or similar, rules with both OWL DL and RDF/OWL Full, the interpretation of frame formulas s[p -> o] in the RIF-OWL DL combinations is slightly different from their interpretation in RIF BLD and syntactical restrictions are imposed on the use of variables, function terms,variables and function terms in frame formulas.


Note that the abstract syntax form of OWL DL allows so-called punning (this is not allowed in the RDF syntax), i.e., the same IRI may be used in an individual position, a property position, and a class position; the interpretation of the IRI depends on its context. Since combinations of RIF and OWL DL are based on the abstract syntax of OWL DL, punning may also be used in these combinations.

In this paves the way towards combination withdocument, we are using OWL 2 ,to refer to OWL as specified in [OWL-Semantics], as opposed to OWL 2, which is envisioned to allow punningcurrently in all its syntaxes. Editor's Note:the semanticsprocess of RIF-OWL DL combinations is similar in spirit tobeing defined by the Semantic Web Rule Language proposal. However, a reference to SWRL fromOWL working group. (See the above text does not seem appropriate. 3.1End note on OWL 2)

4.1 Syntax of RIF-OWL Combinations

Since RDF graphs and OWL Full ontologies cannot be distinguished, the syntax of RIF-OWL Full combinations is the same as the syntax of RIF-RDF combinations.

The syntax of OWL ontologies in RIF-OWL DL combinations is specified by the abstract syntax of OWL DL. Certain restrictions are imposed on the syntax of the RIF rules in combinations with OWL DL. Specifically, the only terms allowed in class and property positions in frame formulas are constant symbols. DEFINITION:A RIF-BLD condition φDL-frame formula is a RIF DL-condition if for everyframe formula a[b1 -> c] in φ it holds thatc1 ... b is a constant andn -> cn] such that n≥1 and for every bi, with 1≤in, it holds that bi is a constant and if bi = rdf:type, then ci is a constant.

DEFINITION:Definition. A RIF-BLD ruleset Rcondition formula φ is a DL-RulesetDL-condition if forevery frame formula a[b -> c]in every rule ofφ is a DL-frame formula.   ☐

Definition. A RIF-BLD document formula R it holds that bis a constant andRIF-BLD DL-document formula if b = rdf:type , then cevery frame formula in R is a constant. DEFINITION:DL-frame formula.   ☐

Definition. A RIF-OWL-DL-combination is a pair < R,O>, where R is a DL-RulesetRIF-BLD DL-document formula and O is a set of OWL DL ontologies in abstract syntax form of aan OWL vocabulary V.   ☐

When clear from the context, RIF-OWL-DL-combinations are referred to simply as combinations.

3.1.14.1.1 Safeness Restrictions

In the literature, several restrictions on the use of variables in combinations of rules and Description Logics have been identified ([Motik05, Rosati06 )] for the purpose of decidableeffective reasoning. TheseThis section specifies such safeness restrictions are specifiedfor RIF-OWL-DL combinations.

Given a set of OWL DL ontologies in abstract syntax form O, a variable ?x in a RIF rule Q thenH :- ifB is DL-safe if it occurs in an atomic formula in ifB that is not of the form s[P -> o] or s[rdf:type -> A], where P or A , respectively,occurs in one of the ontologies in O. A RIF rule Q thenH :- ifB is DL-safe, given O if every variable that occurs in thenH :- ifB is DL-safe. A RIF rule Q thenH :- ifB is weakly DL-safe, given O if every variable that occurs in then is DL-safe and every variable in if that is not DL-safe occurs only in atomic formulas in if that are of the form s[P -> o] or s[rdf:type -> A] , where P or A , respectively, occurs in one of the ontologies in O . Editor's Note: It is not strictly necessary to disallow disjunctions in the definition, but it would make the definition a lot more complex. It would require defining the disjunctive normal form of a condition formula and defining safeness with respect to each disjunct. Given that the safeness restriction is meant for implementation purposes, and that converting rules to disjunctive normal form is extremely expensive, itH is probably a reasonable restriction to disallow disjunction. DEFINITION:DL-safe.

Definition. A RIF-OWL-DL-combination < R,O> is DL-safe if every rule in R is DL-safe, given O. A RIF-OWL-DL-combination < R,O> is weakly DL-safe if every rule in R is weakly DL-safe, given O. Editor's Note: Do we want additional  ☐

Feature At Risk #1: Safeness

restrictionsNote: This feature is "at risk" and may be removed from this specification based on feedback. Please send feedback to ensure that variables do not crosspublic-rif-comments@w3.org.

The abstract-concrete domain boundary? 3.2 Semanticsabove definition of RIF-OWL Combinations The semanticsDL-safeness is intended to identify a fragment of RIF-OWL FullDL combinations for which implementation is easier than full RIF-OWL DL. This definition should be considered AT RISK and may become stricter based on implementation experience.

4.2 Semantics of RIF-OWL Combinations

The semantics of RIF-OWL Full combinations is a straightforward extension of the Semantics of RIF-RDF Combinations.

The semantics of RIF-OWL-DL-combinations cannot straightforwardly extend the semantics of RIF RDF combinations, because OWL DL does not extend the RDF semantics. In order to keep the syntax of the rules uniform between RIF-OWL-Full- and RIF-OWL-DL-combinations, the semantics of RIF frame formulas is slightly altered in RIF-OWL-DL-combinations.

3.2.14.2.1 OWL Full

A D-interpretation I is an OWL Full interpretation if it interprets the OWL vocabulary and it satisfies the conditions in the sections 5.2 and 5.3 in ([OWL Semantics ).].

The semantics of RIF-OWL Full combinations is a straightforward extension of the semantics of RIF-RDF combinations. It is based on the same notion of common-interpretations, but defines additional notions of satisfiability and entailment.

DEFINITION: Given a conforming datatype map D, a common-rif-rdf-interpretationDefinition. Let (I, I) be a common-rif-rdf-interpretation that is an OWL-Full-modela model of a RIF-RDF combination C=< R, S > if I isand let D be a modeldatatype map conforming with the set of Rdatatypes in I. (I, I) is an owl-full-model of C if I is an OWL Full interpretation , and I satisfies every RDF graph S in S ;with respect to D; in this case C is OWL-Full-satisfiable . DEFINITION: Given a conforming datatype map D,with respect to D.   ☐

Definition. Let C be a RIF-RDF combination C OWL-Full-entailscombination, let S be a generalized RDF graph, let φ be a condition formula, and let D be a datatype map conforming with the set of considered datatypes. C owl-full-entails S with respect to D if every owl-full-model of C satisfies S. Likewise, C owl-full-entails a closed RIF-BLD conditionφ with respect to D if every owl-full-model of C satisfies φ. 3.2.2  ☐

4.2.2 OWL DL

The semantics of RIF-OWL-DL-combinations is similar in spirit to the semantics of RIF-RDF combinations. Analogous to a common-rif-rdf-interpretation, there is the notion of common-rif-dl-interpretations,common-rif-owl-dl-interpretations, which are pairs of RIF and OWL DL interpretations, and which define a number of conditions that relate these interpretations to each other. In contrast to RIF-RDF combinations, the conditions below define a correspondence between the interpretation of OWL DL classes and properties and RIF unary and binary predicates.

3.2.2.14.2.2.1 Modified Semantics for RIF Frame Formulas

The modification of the semantics of RIF frame formulas is achieved by modifying the mapping function for frame formulas (Iframe), and leaving the RIF BLD semantics ([RIF-BLD )] otherwise unchanged.

Namely, frame formulas of the form s[rdf:type -> o] are interpreted as membership of s in the set denoted by o and frame formulas of the form s[p -> o], where p is not rdf:type, as membership of the pair (s, o) in the binary relation denoted by p.


DEFINITION:Definition. A RIFdl-semantic structure is a tuple I = <TV, DTS, D, Dind, Dfunc, IC, IV, IF, Iframe', ISF, Isub, Iisa, I=, Iexternal, Itruth>, where Iframe' is a mapping from Dind to total functions of the form SetOfFiniteFrame'BagsSetOfFiniteBags(D × D) → D, such that for each pair (a, b) in SetOfFiniteFrame'BagsSetOfFiniteBags(D × D) it holds that if aIC(rdf:type), then b in Dind; all other elements of the structure are defined as in RIF semantic structures.

A dl-semantic multi-structure is a nonempty set of dl-semantic structures {I1, ..., In} that are identical in all respects except that the mappings I1C, ..., InC might differ on the constants in Const that belong to the rif:local symbol space.   ☐

Given a dl-semantic multi-structure I={I1, ..., In}, we use the symbol I to denote both the multi-structure and the common part of the individual structures I1, ..., In.

We define I(o[a1->v1 ... ak->vk]) = I frameframe'(I(o))({<I(a1),I(v1)>, ..., <I(an),I(vn)>}). The truth valuation function TValI is then defined as in RIF BLD.

DEFINITION:Definition. A RIFdl-semantic structuremulti-structure I is a model of a DL-RulesetRIF-BLD DL-document formula R if TValI(R)=t. 3.2.2.2  ☐

4.2.2.2 Semantics of RIF-OWL DL Combinations

As defined in ([OWL-Semantics ),], an abstract OWL interpretation with respect to a datatype map D, with vocabulary V is a tuple I=< R, EC, ER, L, S, LV >, where

The OWL semantics imposes a number of further restrictions on the mapping functions as well as on the set of resources R, to achieve a separation of the interpretation of class, datatype, ontology property, datatype property, annotation property, and ontology property identifiers.

DEFINITION:Definition. Given a conformingdatatype map D, a common-rif-dl-interpretationcommon-rif-owl-dl-interpretation with respect to D is a pair (I, I), where I = < TV , DTS , D , I C , I V , I F , I frame' , I SF , I sub , I isa , I = , I Truth >is a RIFdl-semantic structuremulti-structure and I=<R, EC, ER, L, S, LV>I is an abstract OWL interpretation with respect to D of a vocabulary V, such that the following conditions hold

  1. D is conforming with the datatypes in I;
  2. (O union LV)=Dind;
  3. EC( uc) = set of all objects k in Osuch that Itruth(Iframe'(k)({(IC(rdf:type ))( k ,),IC( "u"^^rif:iri )))<c>))})) = t, for every class or datatype identifier uc in V;
  4. ER( up) = set of all pairs (k, l) in O × (O union LV)such that Itruth(Iframe'(k)({(IC( "u"^^rif:iri ))( k ,<p>), l ))))})) = t (true), for every data valued and individual valued property identifier up in V;
  5. L((s, d)) = IC("s"^^d) for every well-typed literal (s, d) in V;
  6. S(i) = IC( "i"^^rif:iri<i>) for every individual identifier i in V.   ☐

Condition 12 ensures that the relevant parts of the domains of interpretation are the same. Condition 23 ensures that the interpretation (extension) of an OWL DL class u corresponds to the interpretation of frames of the form ?x[rdf:type -> "u"^^rif:iri]<u>]. Condition 34 ensures that the interpretation (extension) of an OWL DL object or datatype property u corresponds to tothe interpretation of frames of the form ?x["u"^^rif:iri?x[<u> -> ?y]. Condition 45 ensures that typed literals of the form (s, d) in OWL DL are interpreted in the same way as constants of the form "s"^^d in RIF. Finally, condition 56 ensures that individual identifiers in the OWL ontologies and the RIF rulesetsdocuments are interpreted in the same way.


Using the definition of common-rif-dl-interpretation,common-rif-owl-dl-interpretation, satisfaction, models, and entailment are defined in the usual way:

DEFINITION: Given a conforming datatype map D,Definition. A common-rif-dl-interpretationcommon-rif-owl-dl-interpretation (I, I) with respect to a datatype map D is an owl-dl-model of a RIF-OWL-DL-combination C=< R, O > if I is a model of R and I satisfies every OWL DL ontology in abstract syntax form O in O; in this case C is owl-dl-satisfiable .with respect to D. (I, I) is an owl-dl-model of an OWL DL ontology in abstract syntax form O if I satisfies O. (I, I) is an owl-dl-model of a closed RIF-BLD conditionDL-condition formula φ if TValI(φ)=t. DEFINITION: Given a conforming datatype map D, a RIF-OWL-DL-combination  ☐

Definition. Let C OWL-DL-entailsbe a RIF-OWL-DL-combination, let O be an OWL DL ontology in abstract syntax form, let φ be a DL-condition formula, and let D be a datatype map conforming with the set of considered datatypes. C owl-dl-entails O with respect to D if every common-rif-owl-dl-interpretation with respect to D that is an owl-dl-model of C is an owl-dl-model of O. Likewise, C owl-dl-entails a closed RIF DL-conditionφ with respect to D if every common-rif-owl-dl-interpretation with respect to D that is an owl-dl-model of C is an owl-dl-model of φ.   ☐


Recall that in an abstract OWL interpretation I the sets O, which is used for interpreting individuals,O and LV, which isare used for interpretinginterpreting, respectively, literals (data values), are disjoint and that EC maps class identifiers to subsets of O and datatype identifiers to subsets of LV. The disjointness entails that data values cannot be members of a class and individuals cannot be members of a datatype.

In RIF, variable quantification ranges over Dind. So, the same variable may be assigned to an abstract individual or a concrete data value. Additionally, RIF constants (e.g., IRIs) denoting individuals can be written in place of a data value, such as the value of a data-valued property or in datatype membership statements; similarly for constants denoting data values. Such statements cannot be satisfied in any common-rif-dl-interpretation,common-rif-owl-dl-interpretation, due to the constraints on the EC and ER functions. The following example illustrates several such statements.

Consider the datatype xsd:stringxs:string and a RIF-OWL DL combination consisting of the set containing only the OWL DL ontology

ex:myiri rdf:type ex:A .

and a RIF rulesetdocument containing the following fact

ex:myiri[rdf:type ->  xsd:string]xs:string]

This combination is not owl-dl-satisfiable, because ex:myiri is an individual identifier and S maps individual identifiers to elements in O, which is disjoint from the elements in the datatype xsd:stringxs:string.

Consider a RIF-OWL DL combination consisting of the set containing only the OWL DL ontology

ex:hasChild rdf:type owl:ObjectProperty .

and a RIF rulesetdocument containing the following fact

ex:myiri[ex:hasChild ->  "John"^^xsd:string]"John"]

This combination is not owl-dl-satisfiable, because ex:hasChild is an object property, and values of object properties may not be concrete data values.

Consider a RIF-OWL DL combination consisting of the OWL DL ontology

 ex:A rdfs:subClassOf ex:BSubClassof(ex:A ex:B)

and a RIF rulesetdocument containing the following rule

Forall ?x  ?x[rdf:type(?x[rdf:type ->  ex:A]ex:A])

This combination is not owl-dl-satisfiable, because the rule requires every element, including every concrete data value, to be a member of the class ex:A. However, the mapping EC in any abstract OWL interpretation requires every member of ex:A to be an element of O, and concrete data values may notcannot be members of O.

3.2.2.34.2.2.3 Annotation properties

Note that the above definition of RIF-OWL DL compatibility does not consider ontology and annotation properties, in contrast to the definition of compatibility of RIF with OWL Full, where there is no clear distinction between annotation and ontology properties and other kinds of properties. Therefore, it is not possible to "access" or use the values of these properties in the RIF rules. This limitation is overcome in the following definition. It is envisioned that the user will choose whether annotation and ontology properties are to be considered. It is currently expectedmight be the case that OWL 2, the successor of OWL currently under development, will not define athe semantics for annotation and ontology properties;properties in the same way as OWL; therefore, the below definition cannot be extendedmay not extend to the case ofcover OWL 2.

DEFINITION:Definition. Given a conformingdatatype map D, a common-rif-dl-interpretationcommon-rif-owl-dl-interpretation (I, I) is a common-dl-annotation-interpretation with respect to D if the following condition holds

  6.  7. ER( up) = set of all pairs (k, l) in O × O such that Itruth(Iframe'(k)({(IC( "u"^^rif:iri ))( k ,<p>), l ))}) ) = t (true), for every IRI up in V.   ☐


Condition 6,7, which strengthens condition 3, ensures that the interpretation of all properties (also annotation and ontology properties) in the OWL DL ontologies corresponds with their interpretation in the RIF rules.

DEFINITION: GivenDefinition. A common-dl-annotation-interpretation with respect to a conformingdatatype map D, a common-DL-annotation-interpretationD (I, I) is an owl-dl-annotation-model of a RIF-OWL-DL-combination C=< R, O > if I is a DL-modelmodel of R and I satisfies every OWL DL ontology in abstract syntax form O in O; in this case C is owl-dl-annotation-satisfiable. DEFINITION: Given a conforming datatype map D, a RIF-RDF combination  ☐

Definition. Let C OWL-DL-annotation-entailsbe a RIF-OWL-DL-combination, let O be an OWL DL ontology in abstract syntax form, let φ be a DL-condition formula, and let D be a datatype map conforming with the set of considered datatypes. C owl-dl-annotation-entails O with respect to D if every common-rif-owl-dl-interpretation with respect to D that is an owl-dl-annotation-model of C is an owl-dl-model of O. Likewise, C owl-dl-annotation-entails a closed RIF-BLD conditionφ with respect to D if every common-rif-owl-dl-interpretation with respect to D that is an owl-dl-annotation-model of C is an owl-dl-model of φ.   ☐

The difference between the two kinds of OWL DL entailment can be illustrated using an example. Consider the following OWL DL ontology in abstract syntax form

Ontology (ex:myOntology
  Annotation(dc:title "Example ontology"))

which defines an ontology with a single annotation (title). Consider also a rulesetdocument consisting of the following rule:

Forall  ?x,?x ?y ( ?x[ex:hasTitle -> ?y] :- ?x[dc:title -> ?y])

which says that whenever something has a dc:title, it has the same ex:hasTitle.

The combination of the ontology and the rulesetdocument owl-dl-annotation-entails the RIF condition formula ex:myOntology[ex:hasTitle -> "Example ontology"^^xsd:string]ontology"]; the combination does not owl-dl-entail the formula.

45 Importing RDF Graphsand OWL in RIF

In the previous sectionssections, RIF-RDF Combinations and RIF-OWL combinations were defined in an abstract way, as pairs consisting of rulesetsa RIF document and setsa set of RDF graphs/OWL ontologies. In addition, different semantics were specified based on the various RDF and OWL entailment regimes. RIF provides a mechanism for explicitly referring to (importing) RDF graphs from rulesetsdocuments and specifyspecifying the intended profile (entailment regime) through the use of Import statements.

This section specifies how RIF rulesetsdocuments with such import statements should beare interpreted.


A RIF rulesetdocument contains a number of Import statements. One-aryUnary Import statements are used for importing RIF rulesets,documents, and the interpretation of these statements is defined in ([RIF-BLD ).]. This section defines the interpretation of two-ary Import statements:

 Import(t 1 p 1 )Import(t1 p1)
  ...
 Import(t n p n )Import(tn pn)
  

Here, t iti is an IRI constant "of the form <absolute-IRI "^^rif:iri>, where absolute-IRI is the location of an RDF graph to be importedimported, and p ipi is an IRI constant denoting the profile to be used.

The profile determines which notions of model, satisfiability,satisfiability and entailment shouldmust be used. For example, if a RIF rulesetdocument R imports an RDF graph S with the profile RDFS entailment regime,, the notions of rdfs-model, rdfs-satisfiability, and rdfs-entailment shouldmust be used with the combination <R, {S}>.

Profiles are ordered as defined later in casethis section. If several graphs are imported in a ruleset,document, and these imports specify different profile,profiles, the highest of these profiles is used. For example, if a RIF rulesetdocument R imports an RDF graph S1 with the profile RDF entailment regimeand an RDF graph S2 with the profile OWL Full entailment regime,, the notions of owl-full-model, owl-full-satisfiability, and owl-full-entailment shouldmust be used with the combination <R, {S1, S2}>.

Finally, if a RIF rulesetdocument R imports an RDF graph S with the profile OWL DL profile,, R must be a DL-RulesetRIF-BLD DL-document formula, S must be the translation to RDF of an OWL DL ontology in abstract syntax form O, and the notions of owl-dl-model, owl-dl-satisfiability, and owl-dl-entailment shouldmust be used with the combination <R, {O}>.

4.15.1 Profiles of Imports

RIF defines a specific profile for each of the notions of satisfiability and entailment of combinations, as well as twoone generic profiles for RDF and OWL, respectively.profile. The use of a specific profile specifies how a combination should be interpreted and a receiver should reject a combination withinterpreted. If a specific profile itcannot handle.be handled by a receiver, the combination should be rejected. The use of a generic profile implies that a receiver may interpret the combination to the best of hisits ability.

4.1.1The use of profiles is not restricted to the profiles specified in this document. Any specific profile that is used with RIF must specify an IRI that identifies it and associated notions of model, satisfiability, and entailment for combinations.

5.1.1 Specific Profiles

The following table lists the specific profiles,profiles defined by RIF, the IRIs of these profiles, and the notions of model, satisfiability, and entailment the shouldthat must be used with the profile.

Specific profiles in RIF.
Profile IRI of the Profile Model Satisfiability Entailment
simple http://www.w3.org/2008/rif-import-profile#Simple<http://www.w3.org/2007/rif-import-profile#Simple> simple-model satisfiability simple-entailment
rdf http://www.w3.org/2008/rif-import-profile#RDF<http://www.w3.org/2007/rif-import-profile#RDF> rdf-model rdf-satisfiability rdf-entailment
rdfs http://www.w3.org/2008/rif-import-profile#RDFS<http://www.w3.org/2007/rif-import-profile#RDFS> rdfs-model rdfs-satisfiability rdfs-entailment
D http://www.w3.org/2008/rif-import-profile#D<http://www.w3.org/2007/rif-import-profile#D> d-model d-satisfiability d-entailment
OWL DL http://www.w3.org/2008/rif-import-profile#OWL-DL<http://www.w3.org/2007/rif-import-profile#OWL-DL> owl-dl-model owl-dl-satisfiability owl-dl-entailment
OWL DL annotation http://www.w3.org/2008/rif-import-profile#OWL-DL-annotation<http://www.w3.org/2007/rif-import-profile#OWL-DL-annotation> owl-dl-annotation-model owl-dl-annotation-satisfiability owl-dl-annotation-entailment
OWL Full http://www.w3.org/2008/rif-import-profile#OWL-Full<http://www.w3.org/2007/rif-import-profile#OWL-Full> owl-full-model owl-full-satisfiability owl-full-entailment

TheProfiles that are ordered as follows, where ' < ' reads "is lower than": simple <defined for combinations of DL-document formulas and OWL ontologies in abstract syntax form are called DL profiles. Of the mentioned profiles, the profiles OWL DL and OWL DL annotation are DL profiles.

The profiles are ordered as follows, where '<' reads "is lower than":

simple < rdf < rdfs < D < OWL Full

OWL DL < OWL DL annotation < OWL Full

4.1.2 Generic Profiles The following table lists the5.1.2 Generic profiles inProfile

RIF along with the IRI of thespecifies one generic profile. Note thatThe use of athe generic profile does not imply the use of a specific notion of model, satisfiability, and entailment.

Generic profilesprofile in RIF.
Profile IRI of the Profile
RDF http://www.w3.org/2008/rif-import-profile#RDF 4.2Generic <http://www.w3.org/2007/rif-import-profile#Generic>

5.2 Interpretation of Profiles

Let R be a RIF ruleset withdocument such that

Import(<u1> <p1>)
  ...
Import(<un> <pn>)

are the two-ary import statements Import("u 1 "^^rif:iri "p 1 "^^rif:iri) ... Import("u n "^^rif:iri "p n "^^rif:iri)in R and all imported documents and let Profile be the set of profiles corresponding to the IRIs p 1 ,...,p n<p1>,...,<pn>.

If Profile contains only specific profiles, then:

If Profile contains a generic profile, then the combination C=<R,{S1,....,Sn}>, where S1,....,Sn are RDF graphs accessible from the locations u1,...,un and C, may be interpreted according to the highest among the specific profiles in Profile or any higher profile. 5 References 5.1 Normative References [OWL-Semantics] OWL Web Ontology Language Semantics and Abstract Syntax , P. F. Patel-Schneider, P. Hayes, I. Horrocks, Editors, W3C Recommendation, 10 February 2004, http://www.w3.org/TR/2004/REC-owl-semantics-20040210/ . Latest version available at http://www.w3.org/TR/owl-semantics/ . [RDF-Concepts] Resource Description Framework (RDF): Concepts and Abstract Syntax , G. Klyne, J. Carroll (Editors), W3C Recommendation, 10 February 2004, http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/ . Latest version available at http://www.w3.org/TR/rdf-concepts/.

6 Acknowledgements

This document is the product of the Rules Interchange Format (RIF) Working Group (see below), the members of which deserve recognition for their time and commitment to RIF. Special thanks to Mike Dean, Michael Kifer, Stella Mitchell, Axel Polleres, and Dave Reynolds, for their thorough reviews and insightful discussions; the working group chairs, Chris Welty and Christian de Sainte-Marie, for their selfless and inspirational leadership through the long and difficult trials leading to this draft; and W3C team contact Sandro Hawke, a constant source of ideas, help, and feedback.

The following members of the joint RIF-OWL task force have contributed to the OWL Compatibility section in this document: Mike Dean, Peter F. Patel-Schneider, and Ulrike Sattler.


The regular attendees at meetings of the Rule Interchange Format (RIF) Working Group at the time of the publication were: Adrian Paschke (REWERSE), Axel Polleres (DERI), Chris Welty (IBM), Christian de Sainte Marie (ILOG), Dave Reynolds (HP), Gary Hallmark (ORACLE), Harold Boley (NRC), Hassan Aït-Kaci (ILOG), Igor Mozetic (JFI), John Hall (OMG), Jos de Bruijn (FUB), Leora Morgenstern (IBM), Michael Kifer (Stony Brook), Mike Dean (BBN), Sandro Hawke (W3C/MIT), and Stella Mitchell (IBM).

7 References

7.1 Normative References

[OWL-Semantics]
OWL Web Ontology Language Semantics and Abstract Syntax, P. F. Patel-Schneider, P. Hayes, I. Horrocks, Editors, W3C Recommendation, 10 February 2004, http://www.w3.org/TR/2004/REC-owl-semantics-20040210/. Latest version available at http://www.w3.org/TR/owl-semantics/.
[RDF-Concepts]
Resource Description Framework (RDF): Concepts and Abstract Syntax, G. Klyne, J. Carrol, Editors, W3C Recommendation, 10 February 2004, http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/. Latest version available at http://www.w3.org/TR/rdf-concepts/.
[RDF-Semantics]
RDF Semantics, P. Hayes, Editor, W3C Recommendation, 10 February 2004, http://www.w3.org/TR/2004/REC-rdf-mt-20040210/. Latest version available at http://www.w3.org/TR/rdf-mt/.
[RIF-BLD]
RIF Basic Logic Dialect Harold Boley, Michael Kifer, eds. W3C Editor's Draft, 18 May17 July 2008, http://www.w3.org/2005/rules/wg/draft/ED-rif-bld-20080518/http://www.w3.org/2005/rules/wg/draft/ED-rif-bld-20080717/. Latest version available at http://www.w3.org/2005/rules/wg/draft/rif-bld/.
[XML-Schema2] XML Schema Part 2:[RIF-DTB]
RIF Datatypes ,and Built-Ins 1.0 Axel Polleres, Harold Boley, Michael Kifer, eds. W3C Recommendation, 2 May 2001. This version is http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/Editor's Draft, 17 July 2008, http://www.w3.org/2005/rules/wg/draft/ED-rif-dtb-20080717/. Latest version available at http://www.w3.org/TR/xmlschema-2/http://www.w3.org/2005/rules/wg/draft/rif-dtb/.

5.27.2 Informational References

[CURIE]
CURIE Syntax 1.0, M. Birbeck andBirbeck, S. McCarron, W3C Working Draft, 26 November 2007,6 May 2008, http://www.w3.org/TR/2007/WD-curie-20071126/. Latest version available at http://www.w3.org/TR/curie/.
[DLP]
Description Logic Programs: Combining Logic Programs with Description Logics, B. Grosof, R. Volz, I. Horrocks, S. Decker. In Proc. of the 12th International World Wide Web Conference (WWW 2003), 2003.
[Motik05]
Query Answering for OWL-DL with rules, B. Motik, U. Sattler, R. Studer, Journal of Web Semantics 3(1): 41-60, 2005.
[OWL-Reference]
OWL Web Ontology Language Reference, M. Dean, G. Schreiber, Editors, W3C Recommendation, 10 February 2004, http://www.w3.org/TR/2004/REC-owl-ref-20040210/. Latest version available at http://www.w3.org/TR/owl-ref/.
[RDF-Schema]
RDF Vocabulary Description Language 1.0: RDF Schema, D. Brickley, R.V. Guha, Editors, W3C Recommendation, 10 February 2004, http://www.w3.org/TR/2004/REC-rdf-schema-20040210/. Latest version available at http://www.w3.org/TR/rdf-schema/.
[RDF-Syntax]
RDF/XML Syntax Specification (Revised), D. Beckett, Editor, W3C Recommendation, 10 February 2004, http://www.w3.org/TR/2004/REC-rdf-syntax-grammar-20040210/. Latest version available at http://www.w3.org/TR/rdf-syntax-grammar/.
[RFC-3066]
RFC 3066 - Tags for the Identification of Languages, H. Alvestrand, IETF, January 2001. This document is http://www.isi.edu/in-notes/rfc3066.txt.
[RIF-PRD]
RIF Production Rule Dialect , C.Christian de Sainte Marie, Editor,eds. W3C Editor's Draft.Draft, 17 July 2008, http://www.w3.org/2005/rules/wg/draft/ED-rif-prd-20080717/. Latest version available at http://www.w3.org/2005/rules/wg/wiki/PRdialecthttp://www.w3.org/2005/rules/wg/draft/rif-prd/.
[RIF-UCR]
RIF Use Cases and Requirements , A. Ginsberg, D.Adrian Paschke, David Hirtle, F. McCabe, P.-L.Allen Ginsberg, Paula-Lavinia Patranjan, Editors,Frank McCabe, eds. W3C WorkingEditor's Draft, 1017 July 2006, http://www.w3.org/TR/2006/WD-rif-ucr-20060710/2008, http://www.w3.org/2005/rules/wg/draft/ED-rif-ucr-20080717/. Latest version available at http://www.w3.org/TR/rif-ucr/ . [OWL-Reference] OWL Web Ontology Language Reference , M. Dean, G. Schreiber, Editors, W3C Recommendation, 10 February 2004, http://www.w3.org/TR/2004/REC-owl-ref-20040210/ . Latest version available at http://www.w3.org/TR/owl-ref/http://www.w3.org/2005/rules/wg/draft/rif-ucr/.
[Rosati06]
DL+log: Tight Integration of Description Logics and Disjunctive Datalog, R. Rosati, Proceedings of the 10th International Conference on Principles of Knowledge Representation and Reasoning, pp. 68-78, 2005.
[SWRL]
SWRL: A Semantic Web Rule Language Combining OWL and RuleML, I. Horrocks, P. F. Patel-Schneider, H. Boley, S. Tabet, B., M. Dean, W3C Member Submission, 21 May 2004, http://www.w3.org/Submission/2004/SUBM-SWRL-20040521/. Latest version available at http://www.w3.org/Submission/SWRL/.
[Turtle]
Turtle - Terse RDF Triple Language, D. Beckett andBeckett, T. Berners-Lee, W3C Team Submission, 14 January 2008, http://www.w3.org/TeamSubmission/2008/SUBM-turtle-20080114/. Latest version available at http://www.w3.org/TeamSubmission/turtle/.
6[XML-Schema2]
XML Schema Part 2: Datatypes Second Edition, P. V. Biron, A. Malhotra, ditors, W3C Recommendation, 28 October 2004, http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/. Latest version available at http://www.w3.org/TR/xmlschema-2/.

8 Appendix: Embeddings (Informative)

RIF-RDF combinations can be embedded into RIF Rulesetsdocuments in a fairly straightforward way, thereby demonstrating how a RIF-compliant translator without native support for RDF can process RIF-RDF combinations. RIF-OWL combinations cannot be embedded in RIF, in the general case. However, there is a subset of OWL DL, the so-called DLP subset [DLP], for which RIF-OWL DL combinations that can be embedded.

Throughout this sectionThe embeddings are defined using the embedding function tr is defined,tr, which maps symbols, triples, RDF graphs, and OWL DL ontologies in abstract syntax form to RIF symbols, statements, and rulesets. 6.1 Embedding RIF-RDF Combinations 6.1.1 Embedding Symbols Given a combination C=< Rdocuments, respectively.


Besides the namespace prefixes defined in the Overview, S >,the function tr maps RDF symbolsfollowing namespace prefix is used in this appendix: pred refers to the RIF namespace for built-in predicates http://www.w3.org/2007/rif-builtin-predicate# [RIF-DTB].


To facilitate the definition of the embeddings we define the notion of a vocabulary V andmerge of RIF formulas.

Definition. Let R={R1,...,Rn} be a set of blank nodes B to RIF symbols, as defined in following table. Mapping RDF symbols to RIF. RDF Symbol RIF Symbol Mapping IRI idocument, group, and rule formulas, such that there are no prefix or base directives or relative IRIs in V U Constant with symbol space rif:iri tr( i ) = "i"^^rif:iri Blank node xR and directive11, ..., directivenm are all the import directives occurring in B Variable symbols ? x tr( x ) = ? x Plain literal without a language tag xxxdocument formulas in V PL Constant withR. The datatype xsd:string tr( "xxx" ) = "xxx"^^xsd:string Plain literal with a language tag ( xxxmerge of R, lang ) in V PL Constant with the datatype rif:text tr( "xxx"@lang ) = "xxx@lang"^^rif:text Well-typed literaldenoted merge ( sR), is defined as Document(directive11 ... directivenm Group(R*1 ... R*n)), u )where R*i is obtained from Ri in V TL Constant withthe symbol space u tr( "s"^^u ) = "s"^^u Ill-typed literal ( sfollowing way:

Note that the requirement that no prefix or based directives or relative IRIs are included in any of the formulas to be merged is not useda real limitation, since compact IRIs can be rewritten to absolutes IRIs, as can relative IRIs by exploiting a base directive or the location of the document.

Editor's Note: We note here is that the embeddings in C tr( "s"^^u ) = "s^^u'"^^rif:localthis appendix use equality, which is a feature of RIF BLD that is at risk. However, equality is not a crucial feature for the embeddings; removing equality from embedded combinations is fairly straightforward.

8.1 Embedding RIF-RDF Combinations

RIF-RDF combinations are embedded through embeddings of graphs and axiomatization of simple, RDF, and RDFS entailment.

The embedding is not defined for combinations that include infinite RDF graphs and for combinations that include RDF graphs with RDF URI references that are not absolute IRIs. 6.1.2 Embedding Triples and GraphsIRIs (see the mapping function tr is extended to embed triples as RIF statements. Finally, two embedding functions, tr R and tr Q embedEnd note on RDF graphs as RIF rulesets and conditions, respectively. The following section shows how these embeddings can be usedURI references) or plain literals that are not in the lexical space of the xs:string datatype [XML-Schema2]. In addition, for reasoning with combinations.the embedding of RDFS entailment, each datatype must have an associated guard predicate.

In the remainder of this section we first define two mappings for RDF graphs, one (tr R ) in which variables are Skolemized, i.e., replaced with constantthe embedding of symbols, triples, and one (tr Q ) ingraphs, after which variables are existentially quantified.we define the function sk takes as an argumentaxiomatization of simple, RDF, and RDFS entailment of combinations and, finally, demonstrate faithfulness of the embedding.

8.1.1 Embedding Symbols

Given a formulacombination C=< R with variables,,S>, the function tr maps RDF symbols of a vocabulary V and returnsa formula R', whichset of blank nodes B to RIF symbols, as defined in following table.

In the table, the mapping tr' is obtained from R by replacing every variable symbol ? xan injective function that maps typed literals to new constants in R with "new-iri"^^rif:iri ,the rif:local symbol space, where new-iria new constant is a constant that is not used in the documents or its vicinity (e.g., entailed formula or entailing combination). It "generates" a new globally unique IRI.constant from a typed literal.

Mapping RDF Constructsymbols to RIF.
RDF Symbol RIF ConstructSymbol Mapping
Triple s p o . Frame formulaIRI i in VU Constant with symbol space rif:iri tr( si) [= <i>
Blank node _:x in B Variable symbol ?x tr( p_:x) ->= ?x
Plain literal without a language tag xxx in VPL Constant with the datatype xs:string tr( o"xxx") ] tr( s p o .= "xxx"
Plain literal with a language tag "xxx"@lang in VPL Constant with the datatype rif:text tr("xxx"@lang) = "xxx@lang"^^rif:text
Well-typed literal "s"^^u in VTL Constant with the symbol space u tr("s"^^u) = "s"^^u
Non-well-typed literal "s"^^u in VTL Local constant s-u' that is not used in C and is obtained from "s"^^u tr("s"^^u) = tr'("s"^^u)

8.1.2 Embedding Triples and Graphs

This section extends the mapping function tr to triples as RIF statements and defines two embedding functions for RDF graphs. In the one embedding (trR) graphs are embedded as RIF documents and variables are skolemized, i.e., replaced with new constant symbols. In the other (trQ) graphs are embedded as condition formulas and variables are existentially quantified. The following sections show how these embeddings can be used for reasoning with combinations.

For skolemization we assume a function sk that takes as an argument a formula φ with variables and returns a formula φ', which is obtained from an RIF document R by, for every variable symbol ?x, replacing ?x with <new-iri>, where new-iri is a new globally unique IRI, i.e., it does not occur in the graph or its vicinity (e.g., entailing combination or entailed graph/formula).

RDF Construct RIF Construct Mapping
Triple s p o . Frame formula tr(s)[tr(p) -> tr(o)] Graph S Ruleset tr R (S) tr R (S) = the set of all sk(Foralltr(s p o . )) where) = tr(s)[tr(p) -> tr(o . is a triple in S)]
Graph S Condition (query)Document tr Q (S)R(S) tr Q (S) = Exists tr( x1R(S) = sk(Document (Group (tr(t1) ... tr(t1)) )), where t1, ..., tm are the triples in S
Graph S Condition (query) trQ(S) trQ(S) = Exists tr( xnx1) And(... tr(xn) (And(tr( t1t1) ... tr( tm )),tm))), where x1x1, ..., xnxn are the blank nodes occurring in S and t1t1, ..., tmtm are the triples in S

6.1.38.1.3 Embedding Simple Entailment

The semantics of the RDF vocabulary does not need to be axiomatized for simple entailment. Nonetheless, the connection between RIF class membership and subclass statements and the RDF type and subclass statements needs axiomatization. We define:

Rsimple = Document(Group(Forall ?x ?y (?x[rdf:type -> ?y] :- ?x # ?y)
   Forall ?x ?y (?x # ?y :- ?x[rdf:type -> ?y])
Forall ?x ?y (?x[rdfs:subClassOf -> ?y] :- ?x ## ?y]) ))

The following theorem shows how checking simple-entailment of combinations can be reduced to checking entailment of RIF conditions by using the embeddings of RDF graphs of the previous section.defined above.

Theorem A RIF-RDF combination C=<R,{S1,...,Sn}>C=<R,{S1,...,Sn}> simple-entails a generalized RDF graph S iff (R unionT if and only if merge({R, trR (S1) union ... union(S1), ..., trR (Sn))(Sn)}) entails trQ (S).(T). C simple-entails a RIFcondition formula φ iff (R unionif and only if merge({R, Rsimple, trR (S1) union ... union(S1), ..., trR (Sn))(Sn}) entails φ.

6.1.4 Built-ins requiredProof. We prove both directions by contradiction: if the embeddings of RDF and RDFSentailment require a number of built-in predicate symbols to be available to appropriately deal with literals. Editor's Note:does not hold on one side, we show that it isalso does not yet clearhold on the other. We first consider condition formulas (the second part of the theorem), after which built-in predicates will be available in RIF. Therefore,we consider graphs (the first part of the built-ins mentionedtheorem).
In this section may change. Furthermore, built-ins may be axiomatized if they are not provided bythe language. Given a vocabulary Vproof we abbreviate merge({R, the unary predicate wellxml V /1 is interpreted as the set of XML valuesRsimple, trR( RDF-ConceptsS1), the unary predicate illxml V /1..., trR(Sn)}) with R'.

(=>) Assume R' does not entail φ. This means there is interpreted as the setsome semantic multi-structure I that is a model of objects corresponding to ill-typed XML literals in V TL , andR', but not of φ. Consider the unary predicate illD V /1pair (I, I), where I is interpretedthe interpretation defined as follows: Clearly, ( Forall ?x ?x[rdf:type -> rdf:Property] :- Exists ?y,?z (?y[?x -> ?z]) , Forall ?x ?x[rdf:type -> rdf:XMLLiteral] :- wellxml(?x)I, Forall ?x "1"^^xsd:integer="2"^^xsd:integer :- And(?x[rdf:type -> rdf:XMLLiteral] illxml(?x)) ) Theorem A combination <R,{S1,...,Sn}>I) is rdf-satisfiable iff ( R RDF union R union tr R (S1) union ... union tr R (Sn)) hasa model. Theorem A combination C=<R,{S1,...,Sn}> rdf-entailscommon-rif-rdf-interpretation: conditions 1-6 in the definition are satisfied by construction of I and conditions 7 and 8 are satisfied by condition 4 and by the fact that I is a generalized RDF graph T iff ( R RDF union R union tr R (S1) union ... union trmodel of R (Sn)) entails tr Q (T). C simple-entailssimple.

Consider a RIF condition φ iff ( R RDF union R union tr R (S1) union ... union tr R (Sn)) entails φ. 6.1.6 Embedding RDFS Entailment We axiomatizegraph Si in {S1,...,Sn}. Let x1,..., xm be the semantics ofblank nodes in Si and let u1,..., um be the RDF(S) vocabulary usingnew IRIs that were obtained from the following RIF rules and conditions. R RDFS =variables ?x1,..., ?xm through the skolemization in trR RDF union( Forall tr(S p o . ))i), i.e., ui=sk(?xi). Now, let A be a mapping from blank nodes to elements in Dind such that A(xj)=IC(uj) for every RDFS axiomatic tripleblank node xj in S p oi. ) unionFrom the fact that I is a model of trR( Forall ?x ?x[rdf:type -> rdfs:Resource] , Forall ?u,?v,?x,?y ?u[rdf:type -> ?y] :- And(?x[rdfs:domain -> ?y] ?u[?x -> ?v]) , Forall ?u,?v,?x,?y ?v[rdf:type -> ?y] :- And(?x[rdfs:range -> ?y] ?u[?x -> ?v]) , Forall ?x ?x[rdfs:subPropertyOf -> ?x] :- ?x[rdf:type -> rdf:Property] , Forall ?x,?y,?z ?x[rdfs:subPropertyOf -> ?z] :- And (?x[rdfs:subPropertyOf -> ?y] ?y[rdfs:subPropertyOf -> ?z]) , Forall ?x,?y,?z1,?z2 ?z1[?y -> ?z2] :- And (?x[rdfs:subPropertyOf -> ?y] ?z1[?x -> ?z2]) , Forall ?x ?x[rdfs:subClassOf -> rdfs:Resource] :- ?x[rdf:type -> rdfs:Class] , Forall ?x,?y,?z ?z[rdf:type -> ?y] :-Si) and (?x[rdfs:subClassOf -> ?y] ?z[rdf:type -> ?x]) , Forall ?x ?x[rdfs:subClassOf -> ?x] :- ?x[rdf:type -> rdfs:Class] , Forall ?x,?y,?z ?x[rdfs:subClassOf -> ?z] :-by construction of I it follows that [I+A] satisfies Si (see Section 1.5 of [RDF-Semantics])), and (?x[rdfs:subClassOf -> ?y] ?y[rdfs:subClassOf -> ?z]) , Forall ?x ?x[rdfs:subPropertyOf -> rdfs:member] :- ?x[rdf:type -> rdfs:ContainerMembershipProperty] , Forall ?x ?x[rdfs:subClassOf -> rdfs:Literal] :- ?x[rdf:type -> rdfs:Datatype]so I satisfies Si.

We have that I is a model of R, Forall ?x ?x[rdf:type -> rdfs:Literal] :- lit(?x)by assumption. So, (I, Forall ?x "1"^^xsd:integer="2"^^xsd:integer :- And(?x[rdf:type -> rdfs:Literal] illxml(?x)) ) Theorem A combination <R 1 ,{S1,...,Sn}>I) satisfies C. Again, by assumption, I is rdfs-satisfiable iff ( R RDFS union R 1 union tr R (S1) union ... union tr R (Sn)) hasnot a model. Theoremmodel of φ. Therefore, C does not entail φ.

Assume now that R' does not entail trQ(T), which means there is a combination <R,{S1,...,Sn}> rdfs-entailssemantic multi-structure I that is a generalized RDF graph T iff ( R RDFS union R union tr R (S1) union ... union tr R (Sn)) entailsmodel of R', but not of trQ (T). C rdfs-entails a RIF condition φ iff( R RDFS union R union tr R (S1) union ... union tr R (Sn)) entails φ. 6.1.7 Embedding D-Entailment We axiomatize the semantics ofT). The data types usingcommon-rif-rdf-interpretation (I, I) is obtained in the following RIF rulessame way as above, and conditions. R D = R RDFS union ( Forall u[rdf:type -> rdfs:Datatype] | for every IRI uso clearly satisfies C.
We proceed by contradiction. Assume I satisfies T. This means there is some mapping A from the blank nodes x1,...,xm in T to objects in Dind such that [I+A] satisfies T.
Consider now the domainsemantic multi-structure I*, which is the same as I, with the exception of D) unionthe mapping I*V on the variables ?x1,...,?xm, which is defined as follows: I*V( Forall "s"^^u[rdf:type -> "u"^^rif:iri] |?xj)=A(xj) for every well-typed literal (each blank node xj in S , u. By construction of I and since [I+A] satisfies T we can conclude that I* is a model of And(tr(t1)... tr(tm) in V TL) union ( Forall ?x, ?y dt(?x,?y) :- And(?x[rdf:type -> ?y] ?y[rdf:type -> rdfs:Datatype]), Forall ?x "1"^^xsd:integer="2"^^xsd:integer :- And(?x[rdf:type -> rdfs:Literal] illD(?x)) ) Theoremand so I is a combination <R,{S1,...,Sn}>, where R does not containmodel of trQ(T), violating the equality symbol,assumption that it is D-satisfiable iffnot. Therefore, ( R D union R union tr R (S1) union ... union tr R (Sn)) is satisfiableI, I) does not satisfy T and C does not entail Exists ?x And(dt(?x,u) dt(?x,u')) for any two URIs u and u' in the domain of D such that the value spaces of D( u ) and D( u' ) are disjoint, andT.

(<=) Assume C does not entail Exists ?x dt(s^^u,"u'"^^rif:iri) for anyφ. This means there is some common-rif-rdf-interpretation ( sI, u ) in V TL and u' in the domain of DI) that satisfies C such that sI is not a model of φ.
Consider the semantic multi-structure I', which is exactly the same I, except for the mapping I'C on new IRIs that were introduced in skolemization. The lexical spacemapping of D( u' ). Editor's Note: Since this conditionthese new IRIs is very complex we might consider discarding this theorem,defined as follows:
For each graph Si in {S1,...,Sn}, let x1,..., xm be the blank nodes in Si and suggestlet u1,..., um be the above set of rules (new IRIs that were obtained from the variables ?x1,..., ?xm through the skolemization in trR(Si). Now, since I satisfies Si, there must be a mapping A from blank nodes to elements in Dind such that [I+A] satisfies Si. We define I'C(uj)=A(xj) as an approximationfor every blank node xj in Si.

By assumption, I' is a model of R (recall that I' differs from I only on the semantics. Theoremnew IRIs, which are not in R). Clearly, I' is also a D-satisfiable combination <R,{S1,...,Sn}>, wheremodel of R does not containsimple, by conditions 7, 8, and 4 in the equality symbol, D-entailsdefinition of common-rif-rdf-interpretation.
From the fact that I satisfies Si and by construction of I' it follows that I' is a generalized RDF graph T iff ( R D union R union tr R (S1) union ... unionmodel of trR (Sn)) entails tr Q (T). C D-entails(Si). So, I' is a RIF conditionmodel of R'. Since I is not a model of φ iff ( R D union R union tr R (S1) union ... union tr R (Sn)) entails φ. Editor's Note:and φ does not contain any of the restriction to equality-free rulesetsnew IRIs, I' is necessary because, in case different datatype URIs are equal, D-interpretations impose stronger conditions onnot the interpretationmodel of typed literals than RIF does. 6.2 Embedding RIF-OWL DL Combinations It is knownφ.
Therefore, R' does not entail φ.

Assume now that expressive Description Logic languages such as OWL DL cannot be straightforwardly embedded into typical rules languages such as RIF BLD. In this section we therefore consider a subset of OWL DL in RIF-OWL DL combinations. We define OWL DLP,C does not entail T, which means there is inspired by so-called Description Logic programsa common-rif-owl-dl-interpretation ( DLP ),I, I) that satisfies C, but I does not satisfy T. We obtain I' from I in the same way as above, and define how reasoning with RIF-OWL DLP combinationsso clearly satisfies R'. It can be reducedshown analogous to reasoning with RIF. 6.2.1 Identifying OWL DLP Our definition of OWL DLP removes disjunction and extensional quantification from consequents of implications and removes negation and equality. We introduce OWL DLP through its abstract syntax, whichthe (=>) direction that if I' is a subset of the abstract syntax of OWL DL. The semanticsmodel of OWL DLPtrQ(T), then there is a blank node mapping A such that [I+A] satisfies T, and thus I satisfies S, violating the same as OWL DL. The basic syntaxassumption that it does not. Therefore, I' is not a model of ontologiestrQ(T) and identifiers remains the same. ontology ::= 'Ontology(' [ ontologyID ] { directive } ')' directive ::= 'Annotation(' ontologyPropertyID ontologyID ')' | 'Annotation(' annotationPropertyID URIreference ')' | 'Annotation(' annotationPropertyID dataLiteral ')' | 'Annotation(' annotationPropertyID individual ')' | axiom | fact datatypeID ::= URIreference classID ::= URIreference individualID ::= URIreference ontologyID ::= URIreference datavaluedPropertyID ::= URIreference individualvaluedPropertyID ::= URIreference annotationPropertyID ::= URIreference ontologyPropertyID ::= URIreference dataLiteral ::= typedLiteral | plainLiteral typedLiteral ::= lexicalForm^^URIreference plainLiteral ::= lexicalForm | lexicalForm@languageTag lexicalForm ::= as in RDF,thus R' does not entail trQ(T).   ☐

Theorem A unicode string in normal form C languageTag ::= as in RDF, an XML language tag Facts are the same as for OWL DL, exceptRIF-RDF combination <R,{S1,...,Sn}> is satisfiable iff there is a semantic multi-structure I that equality and inequality (SameIndividual and DifferentIndividual), as well as individuals without an identifier are not allowed. fact ::= individual individual ::= 'Individual(' individualID { annotation } { 'type(' type ')' } { value } ')' value ::= 'value(' individualvaluedPropertyID individualID ')' | 'value(' individualvaluedPropertyID individual ')' | 'value(' datavaluedPropertyID dataLiteral ')' type ::= Rdescriptionis a model of merge({R, Rsimple, trR(S1), ..., trR(Sn)}).

Proof. The main restrictions posed by OWL DLP ontheorem follows immediately from the OWL DL syntax are on descriptionsprevious theorem and axioms. Specifically, we need to distinguish between descriptions which are allowed onthe right-hand side (Rdescription)observation that a combination (respectively, RIF document) is satisfiable (respectively, has a model) if and those allowed ononly if it does not entail the left-hand side (Ldescription)condition formula "a"="b".   ☐

8.1.4 Embedding RDF Entailment

We axiomatize the semantics of subclass statements.the RDF vocabulary using the following RIF rules. We start with descriptionsassume that may be allowed on both sides dataRange ::= datatypeID | 'rdfs:Literal' description ::= classID | restriction | 'intersectionOf(' { description } ')' restriction ::= 'restriction(' datavaluedPropertyID dataRestrictionComponent { dataRestrictionComponent } ')' | 'restriction(' individualvaluedPropertyID individualRestrictionComponent { individualRestrictionComponent } ')' dataRestrictionComponent ::= 'value(' dataLiteral ')' individualRestrictionComponent ::= 'value(' individualID ')'the predicate symbol ex:illxml is not used in any RIF document.

To finitely embed RDF entailment, we need to consider a subset of the RDF axiomatic triples. Given a combination C, the context of C includes C and all graphs/formulas considered for entailment checking. The set of RDF finite-axiomatic triples is the smallest set such that:

Let T be the individual sides Ldescription ::= description | Lrestriction | 'unionOf(' { Ldescriptionset of considered datatypes. We assume that each datatype in T has an associated capitalized short name Datatype (e.g., the short name of xs:string is String) and a guard pred:isDatatype, which can be used to test whether a particular object is a value of the datatype; see [RIF-DTB] for definitions of guards for the RIF-required datatypes.

RRDF = merge ({Rsimple} ')' | 'intersectionOf(' { Ldescriptionunion

({tr(s p o .)} for every RDF finite-axiomatic triple s p o .) union
({Forall (ex:illxml(tr("s"^^rdf:XMLLiteral)))} ')' | 'oneOf('for every non-well-typed literal of the form (s, rdf:XMLLiteral) in VTL) union
{

   Forall ?x (?x[rdf:type -> rdf:Property] :- Exists ?y ?z (?y[?x -> ?z])),
Forall ?x (?x[rdf:type -> rdf:XMLLiteral] :- pred:isXMLLiteral(?x)),
Forall ?x ("a"="b" :- And(?x[rdf:type -> rdf:XMLLiteral] ex:illxml(?x)))

} union

{Forall ?x ("a"="b" :- And(ex:illxml(?x) Or(pred:isDT1(?x) ... pred:isDTn(?x)))), where DT1,...,DTn are the capitalized short names of the datatypes in T})

Here, inconsistencies may occur if non-well-typed XML literals, axiomatized using the ex:illxml predicate, are in the class extension of rdf:XMLLiteral. If this situation occurs, "a"="b" is derived, which is an inconsistency in RIF.

Theorem A RIF-RDF combination C=<R,{S1,...,Sn}> rdf-entails a generalized RDF graph T iff merge({RRDF, R, trR(S1), ..., trR(Sn)}) entails trQ(T). C rdf-entails a condition formula φ iff merge({RRDF, R, trR(S1), ..., trR(Sn)}) entails φ.

Proof. In the proof we abbreviate merge({RRDF, R, trR(S1), ..., trR(Sn)}) with R'.
The proof is then obtained from the proof of correspondence for simple entailment in the previous section with the following modifications: (*) in the (=>) direction we additionally need to extend I to ensure it satisfies the RDF axiomatic triples and show that I is an rdf-interpretation and (**) in the (<=) direction we need to slightly extend the definition of I' to account for ex:illxml and show that I' is a model of RRDF.

(*) For any positive integer j such that rdf:_j does not occur in the context of C, I and I are extended such that IS(rdf:_j)=IC(rdf:_j)=IC(rdf:_m) (see the definition of finite-axiomatic triples above for the definition of m). Clearly, this does not affect satisfaction of R' or non-satisfaction of φ, respectively trQ(T). To show that I is an rdf-interpretation, we need to show that I satisfies the RDF axiomatic triples and the RDF semantic conditions.
Satisfaction of the axiomatic triples follows immediately from the inclusion of tr(t) in RRDF for every RDF finite-axiomatic triple t, the fact that I is a model of RRDF, and construction of I, and the extension of I to satisfy the infinite axiomatic triples. Consider the three RDF semantic conditions:
1 x is in IP if and only if <x, I(rdf:Property)> is in IEXT(I(rdf:type))
2 If "xxx"^^rdf:XMLLiteral is in V and xxx is a well-typed XML literal string, then

(a) IL("xxx"^^rdf:XMLLiteral) is the XML value of xxx;
(b) IL("xxx"^^rdf:XMLLiteral) is in LV;
(c) IEXT(I(rdf:type)) contains <IL("xxx"^^rdf:XMLLiteral), I(rdf:XMLLiteral)>

3 If "xxx"^^rdf:XMLLiteral is in V and xxx is an ill-typed XML literal string, then

(a) IL("xxx"^^rdf:XMLLiteral) is not in LV;

(b) IEXT(I(rdf:type)) does not contain <IL("xxx"^^rdf:XMLLiteral), I(rdf:XMLLiteral)>.

Satisfaction of condition 1 follows from satisfaction of the first rule in RRDF in I and construction of I; specifically the second bullet.
Consider a well-typed XML literal "xxx"^^rdf:XMLLiteral. By the definition of satisfaction in RIF BLD, IC("xxx"^^rdf:XMLLiteral) is the XML value of xxx (condition 2a), and is clearly in LV (condition 2b), by definition of I. Condition 2c is satisfied by satisfaction of the second rule in RRDF in I.
Satisfaction of 3a follows from satisfaction of the fourth rule in RRDF and the definition of LV. (3b) follows from satisfaction of the third rule in RRDF (3b) in I (if there were a non-well-typed XML literal in the class extension of rdf:XMLLiteral, then I would not be a model of this rule). This establishes the fact that I is an rdf-interpretation.

(**) Recall that, by assumption, ex:illxml is not used in R. Therefore, changing satisfaction of atomic formulas concerning ex:illxml does not affect satisfaction of R. We assume that I'C(ex:illxml)=k is a unique element, i.e., no other constant is mapped to k.
We define I'F(k) as follows: For every non-well-typed literal of the form (s, rdf:XMLLiteral) such that I'C(tr(s^^rdf:XMLLiteral))=l we define Itruth(I'F(k)(l))=t; I'truth(I'F(k)(m))=f for each other object m in Dind.

Consider RRDF. Satisfaction of Rsimple was established in the proof in the previous section. Satisfaction of the facts corresponding to the RDF axiomatic triples in I' follows immediately from the definition of common-rif-rdf-interpretation and the fact that I is an rdf-interpretation, and thus satisfies all RDF axiomatic triples.
Satisfaction of the ex:illxml facts in RRDF follows immediately from the definition of I'. Satisfaction of the first, second, and third rule in RRDF follow straightforwardly from the RDF semantic conditions 1, 2, and 3. This establishes the fact that I' is a model of RRDF.   ☐

Theorem A RIF-RDF combination <R,{S1,...,Sn}> is rdf-satisfiable iff there is a semantic multi-structure I that is a model of merge({R, RRDF, trR(S1), ..., trR(Sn)}).

Proof. The theorem follows immediately from the previous theorem and the observation that a combination (respectively, RIF document) is rdf-satisfiable (respectively, has a model) if and only if it does not entail the condition formula "a"="b".   ☐

8.1.5 Embedding RDFS Entailment

We axiomatize the semantics of the RDF(S) vocabulary using the following RIF rules.

Similar to the case for RDF, the set of RDFS finite-axiomatic triples is the smallest set such that:

The set of considered datatypes T is defined as before.

RRDFS = merge({RRDF} union

(tr(s p o .) for every RDFS finite-axiomatic triple s p o .) union
(

     Forall ?x (?x[rdf:type -> rdfs:Resource]),
Forall ?u ?v ?x ?y (?u[rdf:type -> ?y] :- And(?x[rdfs:domain -> ?y] ?u[?x -> ?v])),
Forall ?u ?v ?x ?y (?v[rdf:type -> ?y] :- And(?x[rdfs:range -> ?y] ?u[?x -> ?v])),
Forall ?x (?x[rdfs:subPropertyOf -> ?x] :- ?x[rdf:type -> rdf:Property]),
Forall ?x ?y ?z (?x[rdfs:subPropertyOf -> ?z] :- And (?x[rdfs:subPropertyOf -> ?y] ?y[rdfs:subPropertyOf -> ?z])),
Forall ?x ?y ?z1 ?z2 (?z1[?y -> ?z2] :- And (?x[rdfs:subPropertyOf -> ?y] ?z1[?x -> ?z2])),
Forall ?x (?x[rdfs:subClassOf -> rdfs:Resource] :- ?x[rdf:type -> rdfs:Class]),
Forall ?x ?y ?z (?z[rdf:type -> ?y] :- And (?x[rdfs:subClassOf -> ?y] ?z[rdf:type -> ?x])),
Forall ?x (?x[rdfs:subClassOf -> ?x] :- ?x[rdf:type -> rdfs:Class]),
Forall ?x ?y ?z (?x[rdfs:subClassOf -> ?z] :- And (?x[rdfs:subClassOf -> ?y] ?y[rdfs:subClassOf -> ?z])),
Forall ?x (?x[rdfs:subPropertyOf -> rdfs:member] :- ?x[rdf:type -> rdfs:ContainerMembershipProperty]),
Forall ?x (?x[rdfs:subClassOf -> rdfs:Literal] :- ?x[rdf:type -> rdfs:Datatype]),
Forall ?x ("a"="b" :- And(?x[rdf:type -> rdfs:Literal] ex:illxml(?x)))

) union

(Forall ?x (?x[rdf:type -> rdfs:Literal] :- Or(pred:isDT1(?x) ... pred:isDTn(?x))), where DT1,...,DTn are the capitalized short names of the datatypes in T))

Theorem A RIF-RDF combination C=<R,{S1,...,Sn}> rdfs-entails a generalized RDF graph T if and only if merge({R, RRDFS, trR(S1), ..., trR(Sn)}) entails trQ(T). C rdfs-entails a condition formula φ if and only if merge({R, RRDFS, trR(S1), ..., trR(Sn)}) entails φ.

Proof. In the proof we abbreviate merge({R, RRDFS, trR(S1), ..., trR(Sn)}) with R'.
The proof is then obtained from the proof of correspondence for RDF entailment in the previous section with the following modifications: (*) in the (=>) direction we need to slightly amend the definition of I to account for rdfs:Literal and show that I is an rdfs-interpretation and (**) in the (<=) direction we need to show that I' is a model of RRDFS.

(*) We amend the definition of I by changing the definition of LV to the following: Clearly, this change does not effect satisfaction of the RDF axiomatic triples and the semantic conditions 1 and 2. To see that condition 3 is still satisfied, consider some non-well-typed XML literal t. Then, ex:illxml(tr(t)) is satisfied in I. If tr(t)[rdf:type -> rdfs:Literal] were to be satisfied as well, then, by the second last rule in the definition of RRDFS, "a"="b" would be satisfied, which cannot be the case. Therefore, tr(t)[rdf:type -> rdfs:Literal] is not satisfied and thus IL(t) is not in ICEXT(rdfs:Literal). And, since IL(t) is not in the value space of any considered datatype, it is not in LV. To show that I is an rdfs-interpretation, we need to show that I satisfies the RDFS axiomatic triples and the RDF semantic conditions.
Satisfaction of the axiomatic triples follows immediately from the inclusion of tr(t) in RRDFS for every RDFS finite-axiomatic triple t, the fact that I is a model of RRDFS, construction of I, and the extension of I in the proof of the RDF entailment embedding. Consider the RDFS semantic conditions:
1 (a) x is in ICEXT(y) if and only if <x,y> is in IEXT(I(rdf:type))
(b) IC = ICEXT(I(rdfs:Class))
(c) IR = ICEXT(I(rdfs:Resource))
(d) LV = ICEXT(I(rdfs:Literal))
2 If <x,y> is in IEXT(I(rdfs:domain)) and <u,v> is in IEXT(x) then u is in ICEXT(y)
3 If <x,y> is in IEXT(I(rdfs:range)) and <u,v> is in IEXT(x) then v is in ICEXT(y)
4 IEXT(I(rdfs:subPropertyOf)) is transitive and reflexive on IP
5 If <x,y> is in IEXT(I(rdfs:subPropertyOf)) then x and y are in IP and IEXT(x) is a subset of IEXT(y)
6 If x is in IC then <x, I(rdfs:Resource)> is in IEXT(I(rdfs:subClassOf))
7 If <x,y> is in IEXT(I(rdfs:subClassOf)) then x and y are in IC and ICEXT(x) is a subset of ICEXT(y)
8 IEXT(I(rdfs:subClassOf)) is transitive and reflexive on IC
9 If x is in ICEXT(I(rdfs:ContainerMembershipProperty)) then:
< x, I(rdfs:member)> is in IEXT(I(rdfs:subPropertyOf))
10 If x is in ICEXT(I(rdfs:Datatype)) then <x, I(rdfs:Literal)> is in IEXT(I(rdfs:subClassOf))

Conditions 1a and 1b are simply definitions of ICEXT and IC, respectively. Since I satisfies the first rule in the definition of RRDFS it must be the case that every element k in Dind is in ICEXT(I(rdfs:Resource)). Since IR=Dind, it follows that IR = ICEXT(I(rdfs:Resource)), establishing 1c. Clearly, every object in ICEXT(I(rdfs:Literal)) is in LV, by definition. Consider any value k in LV. By definition, either k is in the value space of some considered datatype or Itruth(Iframe(IC(rdf:type))(k,IC(rdfs:Literal)))=t. In the latter case, clearly k is in ICEXT(I(rdfs:Literal)). In the former case, k is in the value space of some datatype with some label D, and thus Itruth(IF(IC(pred:isD))(k))=t. By the last rule in RRDFS, it must consequently be the case that Itruth(Iframe(IC(rdf:type))(k,IC(rdfs:Literal)))=t, and thus k is in ICEXT(I(rdfs:Literal)). This establishes satisfaction of condition 1d in I.

Satisfaction in I of conditions 2 through 10 follows immediately from satisfaction in I of the 2nd through the 12th rule in the definition of RRDFS. This establishes the fact that I is an rdfs-interpretation.

(**) Consider RRDFS. Satisfaction of RRDF was established in the proof in the previous section. Satisfaction of the facts corresponding to the RDFS axiomatic triples in I' follows immediately from the definition of common-rif-rdf-interpretation and the fact that I is an rdfs-interpretation, and thus satisfies all RDFS axiomatic triples.
Satisfaction of the 1st through the 12th rule in RRDFS follow straightforwardly from the RDFS semantic conditions 1 through 10. Satisfaction of the 13th rule follows from the fact that, given an ill-typed XML literal t, IL(t) is not in LV (by RDF semantic condition 3), ICEXT(rdfs:Literal)=LV, and the fact that the ex:illxml predicate is only true on ill-typed XML literals. Finally, satisfaction of the last rule in RRDFS follows from the fact that ICEXT(rdfs:Literal)=LV, the definition of LV as a superset of the union of the value spaces of all datatypes, and the definition of the pred:isD predicates. This establishes the fact that I' is a model of RRDFS.   ☐

Theorem A RIF-RDF combination <R,{S1,...,Sn}> is rdfs-satisfiable if and only if there is a semantic multi-structure I that is a model of merge({R, RRDFS, trR(S1), ..., trR(Sn)}).

Proof. The theorem follows immediately from the previous theorem and the observation that a combination (respectively, RIF document) is rdfs-satisfiable (respectively, has a model) if and only if it does not entail the condition formula "a"="b".   ☐

8.2 Embedding RIF-OWL DL Combinations

It is known that expressive Description Logic languages such as OWL DL cannot be straightforwardly embedded into typical rules languages such as RIF BLD [RIF-BLD], because of features such as disjunction and negation.

In this section we consider a subset of OWL DL in RIF-OWL DL combinations. We define OWL DLP, which is inspired by so-called Description Logic Programs [DLP], and define how reasoning with RIF-OWL DLP combinations can be reduced to reasoning with RIF.

The embedding of RIF-OWL DL combinations is not defined for combinations that include infinite OWL ontologies and for combinations that include ontologies with RDF URI references that are not absolute IRIs or plain literals that are not in the lexical space of the xs:string datatype. In addition, each datatype used in the combination must have associated positive and negative guard predicates [DTB].

8.2.1 Identifying OWL DLP

OWL DLP restricts the OWL DL abstract syntax [OWL-Semantics], disallowing disjunction and extensional quantification in consequents of implications, as well as negation and equality. The semantics of OWL DLP is that of OWL DL.

The syntax is defined through an EBNF grammar, which is derived from the grammar of the OWL abstract syntax [OWL-Semantics]. Any OWL DL ontology in abstract syntax form that conforms to this grammar is an OWL DLP ontology.

The basic syntax of ontologies and identifiers is the same as for OWL DL.

ontology ::= 'Ontology(' [ ontologyID ] { directive } ')'
directive ::= 'Annotation(' ontologyPropertyID ontologyID ')'
        | 'Annotation(' annotationPropertyID absolute-IRI ')'
        | 'Annotation(' annotationPropertyID dataLiteral ')'
        | 'Annotation(' annotationPropertyID individual ')'
        | axiom
        | fact
datatypeID ::= absolute-IRI
classID ::= absolute-IRI
individualID ::= absolute-IRI
ontologyID ::= absolute-IRI
datavaluedPropertyID ::= absolute-IRI
individualvaluedPropertyID ::= absolute-IRI
annotationPropertyID ::= absolute-IRI
ontologyPropertyID ::= absolute-IRI
dataLiteral ::= typedLiteral | plainLiteral
typedLiteral ::= lexicalForm^^absolute-IRI
plainLiteral ::= lexicalForm | lexicalForm@languageTag
lexicalForm ::= as in RDF, a unicode string in normal form C
languageTag ::= as in RDF, an XML language tag


Facts are the same as for OWL DL, except that equality and inequality (SameIndividual and DifferentIndividual), as well as individuals without an identifier, are not allowed.

fact ::= individual 
individual ::= 'Individual(' individualID { annotation } 
  { 'type(' type ')' } { value } ')'
value ::= 'value(' individualvaluedPropertyID individualID ')'
       | 'value(' individualvaluedPropertyID  individual ')'
       | 'value(' datavaluedPropertyID  dataLiteral ')'
type ::= Rdescription

The main restrictions posed by OWL DLP on the OWL DL syntax are on descriptions and axioms. Specifically, OWL DLP distinguishes between descriptions that are allowed on the right-hand side (Rdescription) and those allowed on the left-hand side (Ldescription) of subclass statements.

We start with descriptions that may be allowed on both sides

dataRange ::= datatypeID | 'rdfs:Literal'
description ::= classID
           | restriction
           | 'intersectionOf(' { description } ')'
restriction ::= 'restriction(' datavaluedPropertyID dataRestrictionComponent 
  { dataRestrictionComponent } ')'
           | 'restriction(' individualvaluedPropertyID individualRestrictionComponent 
  { individualRestrictionComponent } ')'
dataRestrictionComponent ::= 'value(' dataLiteral ')'
individualRestrictionComponent ::= 'value(' individualID ')'

We then proceed with the individual sides

Ldescription ::= description
           | Lrestriction
           | 'unionOf(' { Ldescription } ')'
           | 'intersectionOf(' { Ldescription } ')'
           | 'oneOf(' { individualID } ')'


Lrestriction ::= 'restriction(' datavaluedPropertyID LdataRestrictionComponent 
  { LdataRestrictionComponent } ')'
           | 'restriction(' individualvaluedPropertyID LindividualRestrictionComponent 
  { LindividualRestrictionComponent } ')'
LdataRestrictionComponent ::= 'someValuesFrom(' dataRange ')'
           | 'value(' dataLiteral ')'
LindividualRestrictionComponent ::= 'someValuesFrom(' Ldescription ')'
           | 'value(' individualID ')'


Rdescription ::= description
           | Rrestriction
           | 'intersectionOf(' { Rdescription } ')'
Rrestriction ::= 'restriction(' datavaluedPropertyID RdataRestrictionComponent 
  { RdataRestrictionComponent } ')'
           | 'restriction(' individualvaluedPropertyID RindividualRestrictionComponent 
  { RindividualRestrictionComponent } ')'
RdataRestrictionComponent ::= 'allValuesFrom(' dataRange ')'
           | 'value(' dataLiteral ')'
RindividualRestrictionComponent ::= 'allValuesFrom(' Rdescription ')'
           | 'value(' individualID ')'

Finally, we turn to axioms. We start with class axioms.

axiom ::= 'Class(' classID  ['Deprecated'] 'complete' { annotation } { description } ')'
axiom ::= 'Class(' classID  ['Deprecated'] 'partial' { annotation } { Rdescription } ')'
axiom ::= 'DisjointClasses(' Ldescription Ldescription { Ldescription } ')'
       | 'EquivalentClasses(' description { description } ')'
       | 'SubClassOf(' Ldescription Rdescription ')'


axiom ::= 'Datatype(' datatypeID ['Deprecated']  { annotation } )'

Property axioms in OWL DLP restrict those in OWL DL by disallowing functional and inverse functional properties, because these involve equality.

 axiom ::= 'DatatypeProperty(' datavaluedPropertyID ['Deprecated'] { annotation } 
               { 'super(' datavaluedPropertyID ')'}
               { 'domain(' description ')' } { 'range(' dataRange ')' } ')'
       | 'ObjectProperty(' individualvaluedPropertyID ['Deprecated'] { annotation } 
               { 'super(' individualvaluedPropertyID ')' }
               [ 'inverseOf(' individualvaluedPropertyID ')' ] [ 'Symmetric' ] 
               [ 'Transitive' ]
               { 'domain(' description ')' } { 'range(' description ')' } ')'
       | 'AnnotationProperty(' annotationPropertyID { annotation } ')'
       | 'OntologyProperty(' ontologyPropertyID { annotation } ')'
 axiom ::= 'EquivalentProperties(' datavaluedPropertyID datavaluedPropertyID  
              { datavaluedPropertyID } ')'
       | 'SubPropertyOf(' datavaluedPropertyID  datavaluedPropertyID ')'
       | 'EquivalentProperties(' individualvaluedPropertyID individualvaluedPropertyID  
              { individualvaluedPropertyID } ')'
       | 'SubPropertyOf(' individualvaluedPropertyID  individualvaluedPropertyID ')'

Definition. An OWL DL ontology in abstract syntax form is an OWL DLP ontology if it conforms with the grammar above.   ☐

8.2.2 Embedding RIF DL-document formulas into RIF BLD

Recall that the semantics of frame formulas in DL-document formulas is different from the semantics of frame formulas in RIF documents. Nonetheless, DL-document formulas can be embedded into RIF documents, by translating frame formulas to predicate formulas. The mapping tr is the identity mapping on all RIF formulas, with the exception of frame formulas, as defined in the following table.

In the table, the mapping tr' is an injective function that maps constants to new constants, i.e., constants that are not used in the original document or its vicinity (e.g., entailed or entailing formula). It "generates" a new constant from an existing one.

Mapping RIF DL-document formulas to RIF documents.
RIF Construct Mapping
Term t tr(t)=t
Atomic formula φ that is not a frame formula tr(φ)=φ
a[b1->c1 ... bn->cn], with n≥2 tr(a[b1->c1 ... bn->cn])=And( tr(a[b1->c1]) ... tr(a[bn->cn]))
a[b -> c], where a and c are terms and b rdf:type is a constant tr(a[b -> c])=tr'(b)(a,c)
a[rdf:type -> c], where a is a term and c is a constant tr(a[rdf:type -> c])=tr'(c)(a)
Exists ?V1 ... ?Vn(φ) tr(Exists ?V1 ... ?Vn(φ))=Exists ?V1 ... ?Vn(tr(φ))
And(φ1 ... φn) tr(And(φ1 ... φn))=And(tr1) ... trn))
Or(φ1 ... φn) tr(Or(φ1 ... φn))=Or(tr1) ... trn))
φ1 :- φ2 tr(φ1 :- φ2)=tr1) :- tr2)
Forall ?V1 ... ?Vn(φ) tr(Forall ?V1 ... ?Vn(φ))=Forall ?V1 ... ?Vn(tr(φ))
Group(φ1 ... φn) tr(Group(φ1 ... φn))=Group(tr1) ... trn))
Document(directive1 ... directiven Γ) tr(Document(directive1 ... directiven Γ))=Document(directive1 ... directiven tr(Γ))

For the purpose of making statements about this embedding, we define a notion of entailment for DL-document formulas.

Definition. A RIF-BLD DL-document formula R dl-entails a DL-condition φ if for every dl-semantic multi-structure I that is a model of R it holds that TValI(φ)=t.   ☐

The following lemma establishes faithfulness with respect to entailment of the embedding.

RIF-BLD DL-document formula Lemma A RIF-BLD DL-document formula R dl-entails a DL-condition φ if and only if tr(R) entails tr(φ).

Proof. We prove both directions by contradiction: if the entailment does not hold on the one side, we show that it also does not hold on the other.

(=>) Assume tr(R) does not entail tr(φ). This means there is some semantic multi-structure I = <TV, DTS, D, Dind, Dfunc, IC, IV, IF, Iframe, ISF, Isub, Iisa, I=, Iexternal, Itruth> that is a model of tr(R), but not of tr(φ).
Consider the dl-semantic multi-structure I* = <TV, DTS, D, Dind, Dfunc, I*C, IV, IF, I*frame', ISF, Isub, Iisa, I=, Iexternal, Itruth>, with I*C and I*frame' defined as follows: Let t be an element in D such that Itruth(t)=t and let f in D be such that Itruth(f)=f. Observe that tr(R) and tr(φ) do not include frame formulas.
To show that I* is a model of R and not of φ, we only need to show that (+) for any frame formula a[b -> c] that is a DL-condition, I* is a model of a[b -> c] iff I is a model of tr(a[b -> c]). This argument straightforwardly extends to the case of frames with multiple bis and cis, since in RIF semantic structures the following condition is required to hold: TValI(a[b1->c1 ... bn->cn]) = t if and only if TValI(a[b1->c1]) = ... = TValI(a[bn->cn]) = t [RIF-BLD].

Consider the case b=rdf:type. Then,
I* is a model of a[b -> c] iff Itruth(I*frame'(I(a))(IC(rdf:type),IC(c)))=t.
From the definition of I* we obtain
Itruth(I*frame'(I(a))(IC(rdf:type),IC(c)))=t iff I*frame'(I(a))(IC(rdf:type),IC(c))=t.
By definition of the embedding, we know that tr'(c) is used as unary predicate symbol in tr(R) or tr(φ). From the definition of I* we obtain
I*frame'(I(a))(IC(rdf:type),IC(c))=t iff Itruth(IF(IC(tr'(c)))(I(a)))=t.
Finally, since tr(a[b -> c])=tr'(c)(a), we obtain
Itruth(IF(IC(tr'(c)))(I(a)))=t iff I is a model of tr(a[b -> c]).
From this chain of equivalences follows that I* is a model of a[b -> c] iff I is a model of tr(a[b -> c]).

The argument for the case brdf:type is analogous, thereby obtaining (+).

(<=) Assume R does not dl-entail φ. This means there is some dl-semantic multi-structure I = <TV, DTS, D, Dind, Dfunc, IC, IV, IF, Iframe', ISF, Isub, Iisa, I=, Iexternal, Itruth> that is a model of R, but not of φ. Let B be the set of constant symbols occurring in the frame formulas of the forms a[rdf:type -> b] and a[b -> c] in R or φ.
Consider the semantic multi-structure I* = <TV, DTS, D, Dind, Dfunc, I*C, IV, I*F, I*frame, ISF, Isub, Iisa, I=, Iexternal, Itruth>. Let t and f in D be such that Itruth(t)=t and Itruth(f)=f. We define I*C, I*frame, and I*F as follows: Observe that R and φ do not include predicate formulas involving derived constant symbols tr'(b) or tr'(c). The remainder of the proof is analogous to the (=>) direction.   ☐

8.2.3 Embedding OWL DLP into RIF BLD

The embedding of OWL DLP into RIF BLD has two stages: normalization and embedding.

8.2.3.1 Normalization

Normalization splits the OWL axioms so that the later mapping to RIF of the individual axioms results in rules. Additionally, it simplifies the axioms and removes annotations.

Normalizing OWL DLP.
# Complex OWL Normalized OWL Condition on translation
1 trN(
Ontology( [ ontologyID ] 
 directive1
 ... 
 directiven )
)
Ontology( 

trN(directive1)

...

trN(directiven)

)
2 trN(Annotation( ... ))
3 trN(
Individual( individualID 
  annotation1 
  ...
  annotationn 
  type1
  ...
  typem
  value1
  ...
  valuek )
)

trN(Individual( individualID type1 ))

  ...

trN(Individual( individualID typem )) trN(Individual( individualID value1 ))

  ...

trN(Individual( individualID valuek ))

4 trN(
Individual( individualID 
  type(intersectionOf(
   description1
   ...
   descriptionn
  ))
)

trN(Individual( individualID type(description1) ))

  ...

trN(Individual( individualID type(descriptionn) ))

5 trN(
Individual( individualID type(X))
)
Individual( individualID type(X))
X is a classID or value restriction
6 trN(
Individual( individualID 
 type(restriction(propertyID 
 allValuesFrom(X))))
)
trN(
SubClassOf( oneOf(individualID) 
  restriction(propertyID allValuesFrom(X)))

)

7 trN(
Individual( individualID 
 value(propertyID b))
)
Individual( individualID 
 value(propertyID b))
b is an individualID or dataLiteral
8 trN(
Individual( individualID1 
 value(propertyID 
 Individual( individualID2 ... )))
)
trN(
Individual( individualID1 
 value(propertyID individualID2)

)

trN(Individual( individualID2 ... ))
9 trN(
Class( classID  [Deprecated] 
 complete 
  annotation1 
  ...
  annotationn 
  description1
  ...
  descriptionm )
)

trN(

EquivalentClasses(classID  
 intersectionOf(description1
  ...
  descriptionm )
)
10 trN(
Class( classID  [Deprecated] 
 partial
  annotation1 
  ...
  annotationn 
  description1
  ...
  descriptionm )
)

trN(

SubClassOf(classID  
 intersectionOf(description1
  ...
  descriptionm )
)
11 trN(
DisjointClasses(
  description1
  ...
  descriptionm )
)
trN(SubClassOf(intersectionOf(description1 description2) owl:Nothing))
 ...

trN(SubClassOf(intersectionOf(description1 descriptionm) owl:Nothing))

 ...

trN(SubClassOf(intersectionOf(descriptionm-1 descriptionm) owl:Nothing))

12 trN(
EquivalentClasses(
  description1
  ...
  descriptionm )
)

trN(SubClassOf(description1 description2)) trN(SubClassOf(description2 description1))

  ...

trN(SubClassOf(descriptionm-1 descriptionm)) trN(SubClassOf(descriptionm descriptionm-1))

13 trN(
SubClassOf(description X)
)
SubClassOf(description X)
X is a description that does not contain intersectionOf
14 trN(
SubClassOf(description 
  ...intersectionOf(
    description1 
    ...
    descriptionn
  )...)
)

trN(SubClassOf(description ...description1...))

...

trN(SubClassOf(description ...descriptionn...))

15 trN(Datatype( ... ))
16 trN(
DatatypeProperty( propertyID [ Deprecated ]
  annotation1 
  ...
  annotationn 
  super(superproperty1)
  ...
  super(superpropertym)
  domain(domaindescription1)
  ...
  domain(domaindescriptionj)
  range(rangedescription1)
  ...
  range(rangedescriptionk) )
)
SubPropertyOf(propertyID superproperty1)
  ... 
SubPropertyOf(propertyID superpropertym)

trN(SubClassof(restriction(propertyID someValuesFrom(owl:Thing)) domaindescription1))

  ...

trN(SubClassof(restriction(propertyID someValuesFrom(owl:Thing)) domaindescriptionj))

trN(SubClassof(owl:Thing restriction(propertyID allValuesFrom(rangedescription1)))

  ...

trN(SubClassof(owl:Thing restriction(propertyID allValuesFrom(rangedescriptionk)))

17 trN(
ObjectProperty( propertyID [ Deprecated ]
  annotation1 
  ...
  annotationn 
  super(superproperty1)
  ...
  super(superpropertym)
  [ inverseOf( inversePropertyID ) ] 
  [ Symmetric ] 
  [ Transitive ]
  domain(domaindescription1)
  ...
  domain(domaindescriptionl)
  range(rangedescription1)
  ...
  range(rangedescriptionk) )
)
SubPropertyOf(propertyID superproperty1)
  ... 
SubPropertyOf(propertyID superpropertym)

trN(SubClassof(restriction(propertyID someValuesFrom(owl:Thing)) domaindescription1))

  ...

trN(SubClassof(restriction(propertyID someValuesFrom(owl:Thing)) domaindescriptionl))

trN(SubClassof(owl:Thing restriction(propertyID allValuesFrom(rangedescription1)))

  ...

trN(SubClassof(owl:Thing restriction(propertyID allValuesFrom(rangedescriptionk)))

ObjectProperty( propertyID
  [ inverseOf( inversePropertyID ) ] )
ObjectProperty( propertyID [ Symmetric ] )
ObjectProperty( propertyID [ Transitive ] )
18 trN(
EquivalentProperties(
  property1
  ...
  propertym )
)

trN(SubPropertyOf(property1 property2)) trN(SubPropertyOf(property2 property1))

  ...

trN(SubPropertyOf(propertym-1 propertym)) trN(SubPropertyOf(propertym propertym-1))

The result of the normalization is a set of individual property value, individual typing, subclass, subproperty, and property inverse, symmetry and transitive statements.

The following lemma establishes the fact that, for the purpose of entailment, the ontologies in a combination may be replaced by their normalization.

Normalization Lemma Given a combination C=<R,{O1,...,On}>, where O1,...,On are OWL DLP ontologies that do not import ontologies, C owl-dl-entails φ iff C'=<R,{trN(O1),...,trN(On)}> owl-dl-entails φ.

Proof. We prove both directions by contradiction: if the entailment does not hold on the one side, we show that it also does not hold on the other.

(=>) Assume C' does not owl-dl-entail φ. This means there is a common-rif-owl-dl-interpretation (I, I) that is a model of C', but I is not a model of φ.
Consider the pair (I, I*), where I* is obtained from I by suitably extending EC and ER to satisfy the annotation properties. Clearly, (I, I*) is a common-rif-owl-dl-interpretation, since the extension realized in I* does not affect any of the conditions on common-rif-owl-dl-interpretations. By the interpretation of axioms and facts and the EC extension table in sections
3.3 and 3.2 in [OWL-Semantics] it is easy to verify that, for any directive d in I, if I satisfies trN(d), I* satisfies d. Therefore, I* satisfies O1,..., and On, and thus (I, I*) satisfies C. Since I is not a model of φ, C does not owl-dl-entail φ.

(<=) Assume C does not owl-dl-entail φ. This means there is a common-rif-owl-dl-interpretation (I, I) that is a model of C, but I is not a model of φ. It is easy to verify, by the interpretation of axioms and facts and the EC extension table in sections 3.3 and 3.2 in [OWL-Semantics], that I satisfies trN(O1),..., and trN(On). So, (I, I) is a model of C', and thus C' does not owl-dl-entail φ.   ☐
8.2.3.2 Embedding

We now proceed with the embedding of normalized OWL DLP ontologies into RIF DL-document formulas. The embedding is an extension of the embedding function tr. The embeddings of IRIs and literals is as defined in the Section Embedding Symbols.

In the following, let T be the union of the set of considered datatypes and the set of datatypes used in the ontologies under consideration. As with the RDFS embedding, we assume that each datatype in T has an associated capitalized short name Datatype and a positive guard pred:isDatatype. In addition, we assume each datatype has a negative guard pred:isNotDatatype, which can be used to test whether a particular object is not a value of the datatype (cf. [RIF-DTB]).

Embedding OWL DLP
# Normalized OWL RIF RIF-BLD DL-document formula Condition on translation
1 trO(
Ontology(
 directive1 
  ... 
 directiven
)
)
trO(directive1)
...
trO(directiven)
2 trO(
Individual( individualID  } ')' Lrestriction ::= 'restriction(' datavaluedPropertyID LdataRestrictionComponent { LdataRestrictionComponent } ')' | 'restriction(' individualvaluedPropertyID LindividualRestrictionComponent { LindividualRestrictionComponent } ')' LdataRestrictionComponent ::= 'someValuesFrom(' dataRange ')' | 'value(' dataLiteral ')' LindividualRestrictionComponent ::= 'someValuesFrom(' description ')' | 'value('type(A) )
)

tr(individualID ')' Rdescription ::= description | Rrestriction | 'intersectionOf(' { Rdescription } ')' Rrestriction ::= 'restriction(' datavaluedPropertyID RdataRestrictionComponent { RdataRestrictionComponent } ')' | 'restriction(' individualvaluedPropertyID RindividualRestrictionComponent { RindividualRestrictionComponent } ')' RdataRestrictionComponent ::= 'allValuesFrom(' dataRange ')' | 'value(' dataLiteral ')' RindividualRestrictionComponent ::= 'allValuesFrom(')[rdf:type -> tr(A)]

A is a classID
3 trO(
Individual( individualID 
  type(restriction(propertyID value(b))) )
)

tr(individualID)[tr(propertyID) -> tr(b)]

4 trO(
Individual( individualID 
  value(propertyID b) )
)

tr(individualID)[tr(propertyID) -> tr(b)]

5 trO(
SubPropertyOf(property1 property2)
)

Forall ?x ?y (?x[tr(property2) -> ?y] :- ?x[tr(property1) -> ?y])

6 trO(
ObjectProperty(propertyID)
)
7 trO(
ObjectProperty(property1
  inverseOf(property2) )
)

Forall ?x ?y (?y[tr(property2) -> ?x] :- ?x[tr(property1) -> ?y])

Forall ?x ?y (?y[tr(property1) -> ?x] :- ?x[tr(property2) -> ?y])

8 trO(
ObjectProperty(propertyID
  Symmetric )
)

Forall ?x ?y (?y[tr(propertyID) -> ?x] :- ?x[tr(propertyID) -> ?y])

9 trO(
ObjectProperty(propertyID
  Transitive )
)

Forall ?x ?y ?z (?x[tr(propertyID) -> ?z] :- And( ?x[tr(propertyID) -> ?y] ?y[tr(propertyID) -> ?z]))

10 trO(
SubClassOf(description1 description ')' | 'value(' individualID ')' Finally, we turn to axioms. We start with class axioms. axiom ::= 'Class(' classID ['Deprecated'] 'complete' { annotation } {2)
)

trO(description } ')' axiom ::= 'Class('1,description2,?x)

11 trO(A,?x)

?x[rdf:type -> tr(A)]

A is a classID ['Deprecated'] 'partial' { annotation } { Rdescription } ')' axiom ::= 'DisjointClasses(' Ldescription Ldescription { Ldescription } ')' | 'EquivalentClasses('or datatypeID; x is a variable name
12 trO(description {1,X,?x)

Forall ?x (trO(X, ?x) :- trO(description } ')' | 'SubClassOf(' Ldescription Rdescription ')' axiom ::= 'Datatype('1, ?x )

X is a classID, datatypeID ['Deprecated'] { annotation } )' Property axioms in OWL DLP restrict those in OWL DL by disallowing functional and inverse functional properties, because these involve equality. axiom ::= 'DatatypeProperty(' datavaluedPropertyID ['Deprecated'] { annotation } { 'super(' datavaluedPropertyID ')'} { 'domain('or value restriction
13 trO(description ')' } { 'range(' dataRange ')' } ')' | 'ObjectProperty(' individualvaluedPropertyID ['Deprecated'] { annotation } { 'super(' individualvaluedPropertyID ')' } [ 'inverseOf(' individualvaluedPropertyID ')' ]1,restriction(property1 allValuesFrom(...restriction(propertyn allValuesFrom(X)) ...)),?x)

Forall ?x ?y1 ... ?yn (trO(X, ?yn) :- And( trO(description1, ?x)?x[tr(property1) -> ?y1] ?y1[ 'Symmetric'tr(property2) -> ?y2] ... ?yn-1[ 'Transitive' ] { 'domain('tr(propertyn) -> ?yn]))

X is a classID, datatypeID or value restriction
14 trO(intersectionOf(description1 ... description ')' } { 'range('n), ?x)

And(trO(description ')' } ')' | 'AnnotationProperty(' annotationPropertyID { annotation } ')' | 'OntologyProperty(' ontologyPropertyID { annotation } ')' axiom ::= 'EquivalentProperties(' datavaluedPropertyID datavaluedPropertyID { datavaluedPropertyID } ')' | 'SubPropertyOf(' datavaluedPropertyID datavaluedPropertyID ')' | 'EquivalentProperties(' individualvaluedPropertyID individualvaluedPropertyID { individualvaluedPropertyID } ')' | 'SubPropertyOf(' individualvaluedPropertyID individualvaluedPropertyID ')' 6.2.21, ?x) ... trO(descriptionn, ?x'))

x is a variable name
15 trO(unionOf(description1 ... descriptionn), ?x)

Or(trO(description1, ?x) ... trO(descriptionn, ?x))

x is a variable name
16 trO(oneOf(value1 ... valuen), ?x)

Or( ?x = tr(value1) ... ?x = tr(valuen))

x is a variable name
17 trO(restriction(propertyID someValuesFrom(description)), ?x)

Exists ?y(And(?x[tr(propertyID) -> ?y] trO(description, ?y) ))

x is a variable name
18 trO(restriction(propertyID value(valueID)), ?x)

?x[tr(propertyID) -> tr(valueID) ]

x is a variable name

Besides the embedding RIF DL-rulesets into RIF BLD Recall thatin the semanticsprevious table, we also need an axiomatization of some of frame formulas in DL-rulesets is different fromthe semanticsaspects of frame formulas in RIF BLD. Frame formulasthe OWL DL semantics, e.g., separation between individual and datatype domains. This axiomatization is defined relative to an OWL vocabulary V and a datatype map D, which includes all datatypes in DL-rulesets are embedded as predicatesT. In RIF BLD.the mapping trtable, for a given datatype d, L2V(d) is the identitylexical-to-value mapping on all RIF formulas, with the exceptionof frame formulas. Mapping RIF DL-rulesets to RIF rulesets. RIF Construct Mapping Term x tr( x )= x Atomic formula x that is not a frame formula tr( x )= x a[bd.

ROWL-DL(V) = merge({(i) (Forall ?x ("a"="b" :- ?x[rdf:type -> c]owl:Nothing]),

where a,c are terms and b rdf:type is a constant tr( a[b(ii) Forall ?x ("a"="b" :- And(?x[rdf:type -> c] )= b'(a,c)rdfs:Literal] ?x[rdf:type -> owl:Thing])),
where b' is a constant symbol obtained from b that does not occur(iii) (Forall ?x (?x[rdf:type -> owl:Thing] :- ?x[rdf:type -> C])) for every class name C in the original ruleset or the ontologies a[rdf:typeV,
(iv) (Forall ?x (?x[rdf:type -> c]rdfs:Literal] :- ?x[rdf:type -> D])) for every datatype name D in V,
where a is a term and c is a constant tr( a[rdf:type(v) (Forall ?x ?y (?x[rdf:type -> c] )= c'(a)owl:Thing] :- ?x[P -> ?y])) for every property name P in V,
where c' is a constant symbol obtained from c(vi) (Forall ?x ?y (?y[rdf:type -> owl:Thing] :- ?x[P -> ?y])) for every individual-valued property name P in V,
(vii) (Forall ?x ?y (?y[rdf:type -> rdfs:Literal] :- ?x[P -> ?y])) for every data-valued property name P in V,
(viii) (tr(i)[rdf:type -> owl:Thing]) for every individual name i in V,
(ix) (tr(s^^u)[rdf:type -> u']) for every well-typed literal s^^u and datatype identifier u' in V such that does not occurL2V(D(u))(s) is in the original ruleset or the ontologies Exists ?V1 ... ?Vn(φ) tr( Exists ?V1 ... ?Vn(φ) )= Exists ?V1 ... ?Vn(tr(φ)) And(φ 1 ... φ nvalue space of u',
(x) (tr(t) tr( And(φ 1 ... φ n[rdf:type -> u']) )= And(tr(φ 1for every plain literal t and datatype identifier u' in V such that t is in the value space of u',
(xi) (Forall ?x ([rdf:type -> rdfs:Literal] :- ?x[rdf:type -> Diri])) ... tr(φ n )) Or(φ 1 ... φ nfor every datatype in D with identifier Diri,
(xii) (Forall ?x ("a"="b" :- And(?x[rdf:type -> Diri] isNotDT(?x)]))) tr( Or(φfor every datatype in D with identifier Diri and short name DT,
(xiii) (Forall ?x ("a"="b" :- And(?x[rdf:type -> owl:Thing] Or(isDT1(?x) ... φisDTn ) )= Or(tr(φ(?x))]))), where DT1 ) ... tr(φ,..., DTn )) φ 1  :- φ 2are the labels of the considered datatypes,
(xiv) (Forall ("a"="b" :- tr( φ 1  :- φ 2 )= tr(φ 1 ) :- tr(φ 2t) Forall ?V1 ... ?Vn(φ) tr( Forall ?V1 ... ?Vn(φ) )= Forall ?V1 ... ?Vn(tr(φ)) Ruleset(φ 1 ... φ n[rdf:type -> rdfs:Literal])) tr( Ruleset(φfor every ill-typed literal t,
(xv) (Forall ?x ("a"="b" :- And(?x[rdf:type -> rdfs:Literal] isNotDT1(?x) ... φisNotDTn ) )= Ruleset(tr(φ(?x))])), where DT1 ) ... tr(φ,..., DTn )) 6.2.3 Embedding OWL DLP into RIF BLDare the embeddinglabels of the considered datatypes})

We call an OWL DLP into RIF BLD has two stages: normalization and embedding. 6.2.3.1 Normalization Normalization splitsontology O normalized if it is the OWL axioms so thatsame as its normalization, i.e., O=trN(O).

The mappingfollowing lemma establishes faithfulness of the individual axioms results in rules. Additionally, it simplifies the abstract syntax and removes annotations. Editor's Note: Embedding OWL-DL-annotation semantics would require maintaining the annotation properties. Normalizing OWL DLP. Complex OWLembedding.

Normalized OWL trCombination Embedding Lemma Given a datatype map D conforming with T, a RIF-OWL-DL-combination C=<R,{O1,...,On ( Ontology( [ ontologyID ] directive}>, where O1 ... directive,...,On ) )are normalized OWL DLP ontologies with vocabulary V, owl-dl-entails a DL-condition φ with respect to D iff merge({R, ROWL-DL(V), tr NO( directiveO1 ) ...), ..., tr NO( directive n ) trOn)}) dl-entails φ.

Proof. We prove both directions by contradiction: if the entailment does not hold on one side, we show that it also does not hold on the other.
In the proof we abbreviate merge({R, ROWL-DL( Annotation( ... ) )V), tr NO( Individual( individualID annotation 1 ... annotation n type 1 ... type m valueO1 ... value k ) )), ..., tr NO( Individual( individualID type 1 ) ) ... trOn)} with R'.

(=>) Assume R' does not dl-entail φ. This means there is a dl-semantic multi-structure I = <TV, DTS, D, Dind, Dfunc, IC, IV, IF, Iframe', ISF, Isub, Iisa, I=, Iexternal, Itruth> that is a model of R', but not of φ.
Consider the pair ( Individual( individualID type m ) ) Individual( individualIDI*,I), where I* = <TV, DTS, D*, D*ind, Dfunc, IC, IV, IF, Iframe', ISF, Isub, Iisa, I=, Iexternal, Itruth> is such that and I = <R, EC, ER, L, S, LV> is a tuple defined as follows: Recall that an OWL vocabulary V consists of a set of literals VL and seven sets of IRIs, VC, VD, VI, VDP, VIP, VAP, and VO, which are the sets of class, datatype, individual, data-valued property, individual-valued property, annotation property, and ontology identifiers. According to its definition, an abstract OWL interpretation with respect to a datatype map D must fulfill the following conditions, where L(d) denotes the lexical space, V(d) denotes the value space and L2V(d) denotes to lexical-to-value mapping of a datatype d:
  1. R is a nonempty set,
  2. LV is a subset of R that contains the set of Unicode strings, the set of pairs of Unicode strings and language tags, and the value spaces of all datatypes in D,
  3. EC : VC 2O
  4. EC : VD 2LV
  5. ER : VDP 2O×LV
  6. ER : VIP 2O×O
  7. ER : VAP { rdf:type } 2R×R
  8. ER : VOP 2R×R
  9. L  : TL LV, where TL is the set of typed literals in VL
  10. S  : VI VC VD VDP VIP VAP VO { owl:Ontology, owl:DeprecatedClass, owl:DeprecatedProperty } R
  11. S(VI) O
  12. EC(owl:Thing) tr N ( SubClassOf(description 1 description 2= O R, where O is nonempty and disjoint from LV
  13. EC(owl:Nothing) = { }
  14. EC(rdfs:Literal) tr N ( SubClassOf(description 2 description= LV
  15. If D(d') = d then EC(d') = V(d)
  16. If D(d') = d then L("v"^^d') V(d)
  17. If D(d') = d and v L(d) then L("v"^^d') = L2V(d)(v)
  18. If D(d') = d and v L(d) then L("v"^^d') R - LV
Condition 1 ) ) ... tr N ( SubClassOf(description m-1 description m ) ) tr N ( SubClassOf(description m description m-1 ) ) tr N ( SubClassOf(description X ) ) SubClassOf(description X ) Xis met because D is a descriptionnonempty set. Clearly LV is a subset of R and contains the value spaces for each datatype in D, which include the sets of Unicode strings and pairs of Unicode strings and language tags, since the xs:string and rif:text datatypes are included in D, by the fact that does not contain intersectionOf tr N ( SubClassOf(description ...intersectionOf( description 1 ... description n )...) ) tr N ( SubClassOf(description ...description 1 ...) ) ... tr N ( SubClassOf(description ...description n ...) ) tr N ( Datatype( ... ) ) tr N ( DatatypeProperty( propertyID [ Deprecated ] annotation 1 ... annotation n super(superproperty 1 ) ... super(superproperty m ) domain(domaindescription 1 ) ... domain(domaindescription j ) range(rangedescription 1 ) ... range(rangedescription k ) ) ) SubPropertyOf(propertyID superproperty 1 ) ... SubPropertyOf(propertyID superproperty m ) tr ND is conforming and the two datatypes are RIF-required; therefore, condition 2 is met.
When referring to rules in the remainder we mean rules in ROWL-DL( SubClassof(restriction(propertyID someValuesFrom(owl:Thing)) domaindescription 1 )V), unless otherwise specified.
To establish satisfaction of condition 3, observe that, by definition, O=EC(owl:Thing). So, for a given class name C we only need to establish that for any k in EC(c) ... tr Nit holds that k in EC(owl:Thing). But if k in EC(c), then, by definition, Itruth( SubClassof(restriction(propertyID someValuesFrom(owl:Thing)) domaindescription j ) ) tr NIframe'( SubClassof(owl:Thing restriction(propertyID allValuesFrom(rangedescription 1 )) ) ... tr NIC( SubClassof(owl:Thing restriction(propertyID allValuesFrom(rangedescriptionrdf:type))(k )) ) tr N,IC( ObjectProperty( propertyID [ Deprecated ] annotation 1 ... annotation n super(superproperty 1 ) ... super(superproperty m ) [ inverseOf( inversePropertyID ) ] [ Symmetric ] [ Transitive ] domain(domaindescription 1 ) ... domain(domaindescription l ) range(rangedescription 1 ) ... range(rangedescription k ) ) ) SubPropertyOf(propertyID superproperty 1 ) ... SubPropertyOf(propertyID superproperty m ) tr N<C>))) = t. But then, by rule (iii), it must be the case that Itruth( SubClassof(restriction(propertyID someValuesFrom(owl:Thing)) domaindescription 1 ) ) ... tr NIframe'( SubClassof(restriction(propertyID someValuesFrom(owl:Thing)) domaindescription l ) ) tr NIC( SubClassof(owl:Thing restriction(propertyID allValuesFrom(rangedescription 1 )) ) ... tr Nrdf:type))(k,IC( SubClassof(owl:Thing restriction(propertyID allValuesFrom(rangedescription<owl:Thing>))) = t, and thus k )) ) ObjectProperty( propertyID [ inverseOf( inversePropertyID ) ] ) ObjectProperty( propertyID [ Symmetric ] ) ObjectProperty( propertyID [ Transitive ] ) tr Nin EC(owl:Thing).
Consider a datatype identifier Diri and associated short name DT and an object k not in LV such that k in EC(Diri). This means that Itruth( EquivalentProperties( property 1 ... property m ) ) tr NIframe'( SubPropertyOf(property 1 property 2 ) ) tr NIC( SubPropertyOf(property 2 property 1 ) ) ... tr Nrdf:type))(k,IC( SubPropertyOf(property m-1 property m ) ) tr N<Diri>))) = t, but also Itruth( SubPropertyOf(property m property m-1 ) )IF(IC(isNotDT))(k)) = t (since the resultvalue space of the normalizationdatatype is a setsubset of individual property value, individual typing, subclass, subproperty,LV). But then "a"="b" must be satisfied in I*, by rule (xii), which is clearly a contradiction. This establishes satisfaction of condition 4.
Satisfaction of conditions 5 and property inverse, symmetry6 can be shown similarly, exploiting rules (v), (vi), (vii), and transitive statements. 6.2.3.2 Embedding We now proceed with(xv).
ER maps annotation and ontology properties to the embeddingempty set, so conditions 7 and 8 are trivially satisfied.
IC maps well-typed literals "s"^^d to objects in the value space of normalized OWL DL ontologies into a RIF DL-ruleset.d. Since L is defined in terms of IC and since the embedding extendsvalue spaces of all datatypes are included in LV, condition 9 is satisfied.
Condition 10 is clearly satisfied by the embedding function tr.definition of S and since R=D*.
Satisfaction of condition 11 follows straightforwardly from rule (viii) and the embeddingsdefinition of O.
EC(owl:Thing) = O subset R, by definition. Then, by rule (xiii), there is no element in the value space of any datatype that is in O. Consequently, O is disjoint from LV. This establishes satisfaction of condition 12.
Satisfaction of condition 13 follows straightforwardly from rule (i); satisfaction of IRIsconditions 14 and literals15 is as defined inimmediate by definition of I.
Conditions 16 and 17 are satisfied by definition of L and the Section Embedding Symbols . Editor's Note: This embedding assumesdefinition of IC; observe that for a given datatype identifier D , there is unary built-in predicateevery typed literal "v"^^d' must hold that d' is D , calledin the "positive guard" fordomain of D, since D includes all datatypes under consideration.
Assume there exists an ill-typed literal "v"^^d' in V, whichi.e., v is always interpreted asnot in the valuelexical space of the datatype denoted by D andD(d'). Since I satisfies rule (xiv), "a"="b" must be satisfied, which is a contradiction. So, there is no ill-typed literal and thus condition 18 is satisfied.
This establishes the fact that I is an abstract OWL interpretation.

Consider now any ontology O in {O1,...,On}. To establish that I satisfies O, we need to establish five conditions (cf. Section 3.4 in [OWL-Semantics]):
  1. each URI reference in O used as a built-in isNotclass ID (datatype ID, individual ID, data-valued property ID, individual-valued property ID, annotation property ID, annotation ID, ontology ID) belongs to VC (VD, called the "negative guard" for DVI, whichVDP, VIP, VAP, VO, respectively);
  2. each literal in O belongs to VL;
  3. I satisfies each directive in O, except for Ontology Annotations;
  4. there is always interpreted as the complement of the value spacesome o R with <o,S(owl:Ontology)> ER(rdf:type) such that for each Ontology Annotation of the datatype denoted by D . Embedding OWL DLP. Normalized OWL RIF DL-ruleset trform Annotation(p v), <o ( directive 1 ... directive,S(v)> ER(p) and that if O has name n, then S(n) tr= o (; and
  5. I satisfies each ontology mentioned in an owl:imports annotation directive of O.
Conditions 1 ) ... trand 2 are satisfied by the fact O (is an ontology of vocabulary V.
Conditions 4 and 5 are trivially satisfied, because normalized OWL DLP ontologies do not contain annotations and do not have names.
Consider any directive n ) trd in O; d has one of the following forms (cf. the second column of Table Normalizing OWL DLP):
  1. class membership statement of the form Individual ( Individual(individualID type(A) ) ) tr( individualID ) [rdf:type -> tr( A ) ], where A is a classID tr O ( Individual( individualID type(restriction(propertyID value(b))) ) ) tr( individualID ) [ tr( propertyID ) -> tr( b ) ] tr O ( Individual( individualID value(propertyID b) ) ) tr( individualID ) [ tr( propertyID ) -> tr( b ) ] tr O ( SubPropertyOf(property 1class ID,
  2. membership of value restriction,
  3. property 2 ) ) Forall ?x, ?y (?x[ tr(value statement,
  4. subproperty statement,
  5. inverse property 2 ) -> ?y] :- ?x[ tr(statement,
  6. symmetric property 1statement,
  7. transitive property statement, or
  8. subclass statement SubClassOf(X Y) -> ?y]) tr O.
If d is of form 1, then we have that tr(d)=<individualID>[rdf:type -> <A>] is satisfied in I*, and thus Itruth( ObjectProperty(propertyID) ) tr OIframe'( ObjectProperty(property 1 inverseOf(property 2 ) ) ) Forall ?x, ?y (?y[ tr( property 2 ) -> ?x] :- ?x[ tr( property 1IC(rdf:type))(IC(<individualID>),IC(<A>))) = t. Consequently, IC(<individualID>) -> ?y]) Forall ?x, ?y (?y[ tr( property 1is in EC(<A>). Since, in addition, S(<individualID>)=IC(<individualID>), we have that S(<individualID>) -> ?x] :- ?x[ tr( propertyis in EC(<A>), and thus d is satisfied in I. Similar for statements of the forms 2 ) -> ?y]) tr Oand 3.
Consider a subproperty statement SubPropertyOf(p q) and a pair ( ObjectProperty(propertyID Symmetric ) ) Forall ?x, ?y (?y[ tr( propertyID ) -> ?x] :- ?x[ tr( propertyIDk, l) -> ?y]) tr Oin ER(<p>). Then, by construction of I, Itruth( ObjectProperty(propertyID Transitive ) ) Forall ?x, ?y, ?z (?x[ tr( propertyID ) -> ?z] :- And( ?x[ tr( propertyID ) -> ?y] ?y[ tr( propertyID ) -> ?z])) tr OIframe'( SubClassOf(description 1 description 2 ) ) tr OIC( description 1<p>))( k, description 2l ))) = t. But, by tr(d), it must be the case that also Itruth(Iframe'(IC(<q>))( k, ?xl ))) = t. But then, (k,l) must be in ER(<q>), by construction of I. So, I satisfies d. Similar for statements of the forms 5, 6, and 7.

Consider the case that d is a subclass statement SubClassOf(X Y) and consider any k in EC(X), where EC is as in the EC Extension Table in [OWL-Semantics]. We show, by induction, that I* satisfies trO( description 1 ,X ,) when ?x is assigned to k.
If X is a classID, then satisfaction of tr(X) follows by an analogous argument as that for directives of form 1. Similar for value restrictions. If X is a some-value restriction of type Z on a property p, then there must be some object l such that (k,l) in ER(p) such that l is in EC(Z). By induction we have satisfaction of tr(Z) Forall ?xfor some variable assignment. Then, by definition of I, we have Itruth( tr OIframe'( X , ?x ) :- tr OIC( description 1<p>))( k, ?x ) X is a classID or value restrictionl )) = t (true), thereby establishing satisfaction of trO( description 1 , D , ?xX) Forall ?x (in I*. This extends straightforwardly to union, intersection, and one-of descriptions.
By satisfaction of trO ( owl:Nothing , ?x ) :- And( isNot D (?x)(d), we have that trO( description 1 , ?x )Y) D is a datatypeID and isNot Dis the "negative guard"necessarily satisfied for ?x assigned to k. By an argument analogous to the argument above, we obtain that k is in EC(Y).
This establishes satisfaction of d trin I.

We obtain that every directive is satisfied in I, thereby obtaining satisfaction of condition 2. Therefore, O ( description 1 , restriction(property 1 allValuesFrom(...restriction(property n allValuesFrom( X )) ...)) , ?x ) Forall ?x, ?y 1, ..., ?y n ( tr Oand thus every ontology in C, is satisfied in I. Clearly, I* satisfies R and not φ, so ( XI*, ?y n ) :- And( tr OI) satisfies R and not φ. We conclude that C does not entail φ.

(<=) Assume C does not owl-dl-entail φ. This means there is a common-rif-owl-dl-interpretation ( description 1I, ?x ) ?x[ tr( property 1 ) -> ?y 1 ] ?y 1 [ tr( property 2 ) -> ?y 2 ] ... ?y n-1 [ tr( property n ) -> ?y n ])) XI) that is an owl-dl-model of C, but I is not a model of φ. To show that R' does not entail φ, we show that I is a classID or value restrictionmodel of R'.
R is satisfied in I by assumption. Satisfaction of trO( description 1 , restriction(property 1 allValuesFrom(...restriction(property n allValuesFrom( D )) ...)) , ?x ) Forall ?x, ?y 1 , ..., ?y n ( trO ( owl:Nothing , ?y ni) :- And( trcan be shown analogously to establishment of satisfaction in I of Oi in the (=>) direction. We now establish satisfaction of the rules in ROWL-DL( description 1 , ?x ) ?x[ tr( property 1 ) -> ?y 1 ] ?y 1 [ tr( property 2 ) -> ?y 2 ] ... ?y n-1 [ tr( property nV).
(i) follows immediately from the fact that EC(owl:Nothing)={}. (ii) follows from conditions 14 and 12 on abstract OWL interpretations. (iii) follows from the fact that EC maps class names to subsets of O=EC(owl:Thing) -> ?y n ] isNot D (?y n ))) D(conditions 3, 12 on abstract OWL interpretations). (iv) follows from condition 14 on abstract OWL interpretations and the fact that LV is a datatypeID orsuperset of the value restriction tr O (spaces of all datatypes (by conditions 15 and 4 on abstract OWL interpretations). (v) follows from conditions 12, 5, and 6. (vi) and (vii) follow from conditions 12, 14, 5, and 6. (viii) follows from condition 11. (ix) follows from conditions 16 and 15. (x) follows from the fact that LV includes all plain literals (condition 2) and condition 17. (xi) follows from conditions 15, 14, and the fact that LV is a , ?x ) ?x[rdf:type -> tr(superset of the value space of a ) ]datatype. (xii) follows from condition 15; i.e., there is no assignment for the variable ?x that is both a member of the value space of the datatype and is in its class extension and thus the antecedent of the rule will never be satisfied and rule is always satisfied. (xiii) follows from condition 12 and the fact that LV is a classID tr O ( D , ?x ) is D (?x) Dsuperset of the union of all value spaces. (xiv) follows from the fact that there is no ill-typed literal, since such a datatypeIDliteral would either violate condition 16 or condition 18 on abstract OWL interpretations.

This establishes satisfaction of ROWL-DL(V), and is D isthus R', in I. Therefore, R' does not entail φ.   ☐

The "guard" forfollowing theorems establish faithfulness of the full embedding of RIF-OWL DLP combinations into RIF.

Theorem Given a datatype trmap D conforming with T, a RIF-OWL-DL-combination C=<R,{O ( intersectionOf(description1 ... description,...,On , ?x ) And( tr}>, where O ( description1 , ?x ) ... tr,...,O ( descriptionn are OWL DLP ontologies with vocabulary V that do not import other ontologies, owl-dl-entails a DL-condition formula φ with respect to D iff tr(merge({R, ?x ) ) tr OROWL-DL( unionOf(description 1 ... description n , ?x ) Or(V), trO(trN( descriptionO1 , ?x ) ...)), ..., trO ( description(trN , ?x ) ) tr O( oneOf(value 1 ... valueOn))})) entails tr(φ).

Proof. By the Normalization Lemma,
?x ) Or( ?x = trC=<R,{O ( value1 ) ... ?x = tr,...,O ( valuen ) ) tr O}> owl-dl-entails φ iff <R,{trN( restriction(propertyID someValuesFrom(description)) , ?x ) Exists ?y(And(?x[ tr( propertyID ) -> ?y] trO1),...,trN( descriptionOn)}> owl-dl-entails φ.
Then, by the Normalized Combination Embedding Lemma,
?y ) )) tr<R,{trN(O1),...,trN( restriction(propertyID value(valueID))On)}> owl-dl-entails φ iff merge({R, ?x ) ?x[ tr( propertyID ) -> tr( valueID ) ]ROWL-DL(V), trO(trN( owl:Thing , ?x ) ?x = ?xO1)), ..., trO(trN( owl:NothingOn))}) dl-entails φ.
Finally, by the RIF-BLD DL-document formula Lemma,
?x ) "1"^^xsd:integer="2"^^xsd:integer 6.2.4 Reasoning with RIF-OWL DLP Combinations Theorem A RIF-OWL-DL-combination <merge({R ,{O 1 ,...,O, ROWL-DL(V), trO(trN }>, where(O1 ,...,O)), ..., trO(trN are OWL DLP ontologies, is OWL-DL-satisfiable(On))}) dl-entails φ iff tr(tr(merge({R union, ROWL-DL(V), trO(trN (O(O1 )) union ... union)), ..., trO(trN (O(On ))) has a model.))})) entails tr(φ).
This chain of equivalences establishes the theorem.   ☐

Theorem An OWL-DL-satisfiableGiven a datatype map D conforming with T, a RIF-OWL-DL-combination C=<<R ,{O,{O1 ,...,O,...,On}>, where O1 ,...,O,...,On are OWL DLP ontologies with vocabulary V that do not import other ontologies, OWL-DL-entails a closed RIF condition φis owl-dl-satisfiable with respect to D iff tr(there is a semantic multi-structure I that is a model of tr(merge({R union, ROWL-DL(V), trO(trN (O(O1 )) union ... union)), ..., trO(trN (O(On ))) entails φ. 7))}).

Proof. The theorem follows immediately from the previous theorem and the observation that a combination (respectively, document) is owl-dl-satisfiable (respectively, has a model) if and only if it does not entail the condition formula "a"="b".   ☐

9 End Notes

RDF URI References: There are certain RDF URI references that are not absolute IRIs (e.g., those containing spaces). It is possible to use such RDF URI references in RDF graphs that are combined with RIF rules. However, such URI references cannot be represented in RIF rules and their use in RDF is discouraged.

Generalized RDF graphs: Standard RDF graphs, as defined in ([RDF-Concepts ),], do not allow the use of literals in subject and predicate positions and blank nodes in predicate positions. The RDF Core working group has listed two issues questioning the restrictions that literals may not occur in subject and blank nodes may not occur in predicate positions in triples. Anticipating lifting of these restrictions in a possible future version of RDF, we use the more liberal notion of generalized RDF graph. We note that the definitions of interpretations, models, and entailment in the RDF semantics document ([RDF-Semantics )] also apply to such generalized RDF graphs.

We note that every standard RDF graph is a generalized RDF graph. Therefore, our definition of combinations applies to standard RDF graphs as well. We note also that the notion of generalized RDF graphs is more liberal than the notion of RDF graphs used by SPARQL; generalized RDF graphs additionally allow blank nodes and literals in predicate positions.

OWL 2: While OWL 2 is still in development it is unclear how RIF will interoperate with it. At the time of writing, we believe that with OWL 2 the support for punning may

be beneficial. In addition the semantics of annotation properties might be different than in OWL, so there might be particular problems if these properties are considered in combinations, as in the Section Annotation properties.