Copyright © 2008 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark and document use rules apply.
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 8 documents:
The OWL Working Group seeks public feedback on these Working Drafts. Please send your comments to public-owl-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.
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.
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 |
The purpose of an OWL 2 profile is to provide a trimmed down version of OWL 2 that trades expressive power for efficiency of reasoning. In logic, a profile is usually called a fragment or a sublanguage. This document describes three important profiles, each of which achieves efficiency in a different way and is useful in different application scenarios.
The choice of profile will depend on the structure of the ontologies used in the application and on the reasoning tasks to be performed, for example (ontology) consistency, (class) satisfiability, (class) subsumption, classification and conjunctive query answering. Precise definitions of these tasks can be found in Section 5.
OWL 2 profiles are defined by placing restrictions on the OWL 2 syntax. Syntactic restrictions can be specified by modifying the grammar of the functional-style syntax [OWL 2 Specification], and (possibly) giving additional global restrictions. In this document, the modified grammars are specified in two ways. In each profile definition, only the difference with respect to the full grammar is given; that is, only the productions that differ from [OWL 2 Specification] are presented and the productions that are the same as in [OWL 2 Specification] are not repeated. In order to make this document self-contained, the full grammar for each of the profiles is given in the Appendix.
Apart from the ones specified here, there are many other possible profiles of OWL 2 — there are, for example, a whole family of profiles that extend OWL 2 QL. Although we don't specifically document OWL lite [OWL 1 Reference] in this document, all OWL Lite ontologies are OWL 2 DL ontologies and so OWL Lite can be viewed as a profile of OWL 2. OWL 1 DL can also be viewed as a profile of OWL 2.
The italicized keywords MUST, MUST NOT, SHOULD, SHOULD NOT, and MAY specify certain aspects of the normative behavior of OWL 2 tools, and are interpreted as specified in RFC 2119 [RFC 2119].
The OWL 2 EL profile [EL++,EL++ Update] is designed as a maximal subset of OWL 2 that
A main design principle of OWL 2 EL is to focus on the class constructors ObjectIntersectionOf and ObjectSomeValuesFrom, but to provide ObjectAllValuesFrom only in the form of range restrictions. Many biomedical ontologies, such as SNOMED CT, fall within this profile.
OWL 2 EL provides the following features:
The following features of OWL 2 are not supported in OWL 2 EL:
The following sections specify the structure of OWL 2 EL ontologies.
The entities of OWL 2 EL are exactly as in OWL 2. Furthermore, OWL 2 EL supports the owl:Thing and owl:Nothing predefined classes, as well as the predefined object and data properties owl:TopObjectProperty, owl:BottomObjectProperty, owl:TopDataProperty, and owl:BottomDataProperty. Finally, it supports the following datatypes:
The following predefined OWL 2 datatypes MUST NOT be used in OWL 2 EL: owl:realPlus, xsd:double, xsd:float, xsd:nonPositiveInteger, xsd:positiveInteger, xsd:negativeInteger, xsd:long, xsd:int, xsd:short, xsd:byte, xsd:unsignedLong, xsd:unsignedInt, xsd:unsignedShort, xsd:unsignedByte, xsd:language, and xsd:boolean.
Inverse properties are not supported in OWL 2 EL, so object property expressions are restricted to named properties. Data property expressions are defined in the same way as in OWL 2.
ObjectPropertyExpression := ObjectProperty
In order to allow for efficient reasoning, OWL 2 EL restricts the set of supported class expressions to ObjectIntersectionOf, ObjectSomeValuesFrom, ObjectExistsSelf, ObjectHasValue, DataSomeValuesFrom, DataHasValue, and objectOneOf containing a single individual.
ClassExpression :=
Class |
ObjectIntersectionOf |
ObjectOneOf |
ObjectSomeValuesFrom | ObjectExistsSelf | ObjectHasValue |
DataSomeValuesFrom | DataHasValue
The class expressions are as defined in the same way as in OWL 2 [OWL 2 Specification], with the exception of the objectOneOf class expression, which in OWL 2 EL admits only a single individual.
ObjectOneOf := 'OneOf' '(' Individual ')'
A data range expression is restricted in OWL 2 EL to the predefined datatypes admitted in OWL 2 EL and to enumerated datatypes consisting of a single literal.
DataRange := Datatype | DataOneOf
DataOneOf := 'OneOf' '('
Literal ')'
The class axioms of OWL 2 EL are the same as in OWL 2, with the exception that DisjointUnion is disallowed. Different class axioms are defined in the same way as in [OWL 2 Specification], with the difference that they use the new definition of ClassExpression.
ClassAxiom := SubClassOf | EquivalentClasses | DisjointClasses
OWL 2 EL supports the following object property axioms, which are defined in the same way as in the [OWL 2 Specification], with the difference that they use the new definition of ObjectPropertyExpression.
ObjectPropertyAxiom :=
EquivalentObjectProperties | SubObjectPropertyOf |
ObjectPropertyDomain | ObjectPropertyRange |
TransitiveObjectProperty | ReflexiveObjectProperty
OWL 2 EL provides the same axioms about data properties as OWL 2 apart from DisjointDataProperty. These axioms are defined in the same way as in [OWL 2 Specification].
DataPropertyAxiom :=
SubDataPropertyOf |
EquivalentDataProperties |
DataPropertyDomain |
DataPropertyRange |
FunctionalDataProperty
The assertions in OWL 2 EL, as well as all other axioms, are the same as in OWL 2, with the difference that class object property expressions are restricted as defined in the previous sections.
OWL 2 EL extends the global restrictions on axioms from Section 11 of the structural specification [OWL 2 Specification] with an additional condition. In order to define this condition, the following notion is used.
Let CE be a class expression. We say that Ax imposes a range restriction to CE on an object property OP1 if object properties OPi, 2 ≤ i ≤ k, exist such that Ax contains all of the following axioms:
The axiom closure Ax of an OWL 2 EL ontology MUST obey the restrictions described in Section 11 of the structural specification [OWL 2 Specification] and, in addition, if
then Ax MUST impose a range restriction to CE on OPn.
This additional restriction is vacuously true for each SubPropertyOf axiom in which in the first item of the previous definition does not contain a property chain. Range restrictions on reflexive and transitive roles are generally allowed, unless they are used in axioms that are explicitly forbidden using the previous definition.
The OWL 2 QL profile admits sound and complete reasoning in LOGSPACE with respect to the size of the data (assertions). OWL 2 QL includes most of the main features of conceptual models such as UML class diagrams and ER diagrams.
OWL 2 QL is based on the DL-Lite family of description logics. Several variants of DL-Lite have been described in the literature [DL-Lite]. OWL 2 QL is based on the DL-LiteR — an expressive DL containing the intersection of RDFS and OWL 2. DL-LiteR does not require the unique name assumption (UNA), since making this assumption would have no impact on the semantic consequences of a DL-LiteR ontology. More expressive variants of DL-Lite, such as DL-LiteA, extend DL-LiteR with functional properties, and these can also be extended with keys; however, for query answering to remain in LOGSPACE, these extensions require UNA and need to impose certain global restriction on the interaction between properties used in different types of axiom. Basing OWL 2 QL on DL-LiteR avoids practical problems involved in the explicit axiomatization of UNA. Other variants of DL-Lite can also be supported on top of OWL 2 QL, but may require additional restrictions on the structure of ontologies [DL-Lite].
OWL 2 QL is defined not only in terms of the set of supported constructs, but it also restricts the places in which these constructs are allowed to occur.
The following constructs can be used to define subclass expressions in SubClassOf axioms:
The following constructs can be used to define superclass expressions in SubClassOf axioms:
All axioms in OWL 2 QL are constrained in a way that is compliant with these restrictions. Thus, OWL 2 QL supports the following axioms:
The following features of OWL 2 are not supported in OWL 2 QL:
The productions for OWL 2 QL are defined in the following sections. The expressive power of OWL 2 QL is such that the global restriction on axioms defined in Section 11 of [OWL 2 Specification] are vacuously satisfied in every DL-lite ontology.
OWL 2 QL supports all OWL 2 entities, including all predefined classes and properties. Furthermore, the following datatypes are supported in OWL 2 QL:
The following predefined OWL 2 datatypes MUST NOT be used in OWL 2 QL: owl:realPlus, xsd:double, xsd:float, xsd:nonPositiveInteger, xsd:positiveInteger, xsd:negativeInteger, xsd:long, xsd:int, xsd:short, xsd:byte, xsd:unsignedLong, xsd:unsignedInt, xsd:unsignedShort, xsd:unsignedByte, xsd:language, and xsd:boolean.
OWL 2 QL object and data property expressions are the same as in OWL 2.
In OWL 2 QL, there are two types of class expressions. The subClassExpression production defines the class expressions that can occur in the antecedents of implications; such class expressions can, for example, occur as subclass expressions in SubClassOf axioms. The superClassExpression production defines the classes that can occur in the consequents of implications; such class expressions can, for example, can occur as superclass expressions in SubClassOf axioms.
subClassExpression :=
Class |
'SomeValuesFrom' '(' ObjectPropertyExpression owl:Thing
')'
superClassExpression :=
Class |
'SomeValuesFrom' '(' ObjectPropertyExpression Class ')'
'ComplementOf' '(' subClassExpression ')' |
'IntersectionOf' '(' superClassExpression superClassExpression { superClassExpression } ')'
A data range expression is restricted in OWL 2 QL to the predefined datatypes.
DataRange := Datatype
The class axioms of OWL 2 QL are the same as in OWL 2, with the exception that DisjointUnion is disallowed. Different OWL 2 class axioms from the structural specification [OWL 2 Specification] that refer to the ClassExpression production, however, are redefined and restricted them to appropriate forms of class expressions.
SubClassOf := 'SubClassOf'
'(' { annotation } subClassExpression superClassExpression ')'
EquivalentClasses :=
'EquivalentClasses' '(' { annotation } subClassExpression subClassExpression { subClassExpression } ')'
DisjointClasses :=
'DisjointClasses' '(' { annotation
} subClassExpression subClassExpression { subClassExpression } ')'
ClassAxiom := SubClassOf | EquivalentClasses | DisjointClasses
OWL 2 QL disallows the use of property chains in property inclusion axioms; however, simple property inclusions are supported. Furthermore, OWL 2 QL disallows the use of functional, transitive, asymmetric, reflexive and irreflexive object properties, and it redefines object property domain and range axioms to use the appropriate class expressions.
ObjectPropertyDomain :=
'PropertyDomain' '(' { annotation
} ObjectPropertyExpression
superClass ')'
ObjectPropertyRange :=
'PropertyRange' '(' { annotation }
ObjectPropertyExpression
superClass ')'
SubObjectPropertyOf :=
'SubPropertyOf' '(' { annotation }
ObjectPropertyExpression
ObjectPropertyExpression ')'
ObjectPropertyAxiom :=
SubObjectPropertyOf | EquivalentObjectProperties |
DisjointObjectProperties | InverseObjectProperties |
ObjectPropertyDomain | ObjectPropertyRange |
SymmetricObjectProperty
OWL 2 QL disallows the functional data property axioms, and it redefines the object property domain axioms to use the appropriate class expressions.
DataPropertyDomain :=
'PropertyDomain' '(' { annotation
} DataPropertyExpression
superClass ')'
DataPropertyAxiom :=
SubDataPropertyOf | EquivalentDataProperties | DisjointDataProperties |
DataPropertyDomain | DataPropertyRange
OWL 2 QL disallows negative object property assertions and equality axioms. Furthermore, class assertions in OWL 2 QL can involve only atomic classes. Equality and inequality axioms and property assertions are the same as in OWL 2.
ClassAssertion :=
'ClassAssertion' '(' { annotation
} Class Individual ')'
Assertion := DifferentIndividuals | ClassAssertion | ObjectPropertyAssertion | DataPropertyAssertion
Finally, the axioms in OWL 2 QL are the same as those in OWL 2, with the exception that keys are not allowed.
Axiom := Declaration | ClassAxiom | ObjectPropertyAxiom | DataPropertyAxiom | Assertion | EntityAnnotation | AnonymousIndividualAnnotation
The OWL 2 RL profile is aimed at applications that require scalable reasoning without sacrificing too much expressive power. It is designed to accommodate both OWL 2 applications that can trade the full expressivity of the language for efficiency, and RDF(S) applications that need some added expressivity from OWL 2. This is achieved by defining a syntactic subset of OWL 2 which is amenable to implementation using rule-based technologies (see Section 4.2), and presenting a partial axiomatization of the OWL 2 RDF-Based Semantics in the form of first-order implications that can be used as the basis for such an implementation (see Section 4.3).
For ontologies satisfying the syntactic constraints described in Section 4.2, a suitable rule-based implementation will have desirable computational properties; for example, it can return all and only the correct answers to certain kinds of query (see Section 4.4 and Conformance). Such an implementation can also be used with arbitrary RDF graphs. In this case, however, these properties no longer hold — in particular, it is no longer possible to guarantee that all correct answers can be returned.
Restricting the way in which OWL 2 constructs are used makes it possible to implement reasoning systems using relatively simple technology — in particular, rule-based reasoning engines — while still providing desirable computational guarantees. These restrictions are designed so as to avoid the need to infer the existence of individuals not explicitly present in the knowledge base, and to avoid the need for nondeterministic reasoning. This is achieved by restricting the use of OWL 2 constructs to certain syntactic positions. For example in SubClassOf axioms, the constructs in the subclass and superclass expressions must follow the usage patterns shown in Table 1.
Subclass Expressions | Superclass Expressions |
---|---|
a class a nominal class (OneOf) intersection of class expressions (ObjectIntersectionOf) union of class expressions (ObjectUnionOf) existential quantification to a class expressions (ObjectSomeValuesFrom) existential quantification to an individual (ObjectHasValue) |
a class intersection of classes (ObjectIntersectionOf) universal quantification to a class expressions (ObjectAllValuesFrom) at-most 1 cardinality restrictions (ObjectMaxCardinality 1) existential quantification to an individual (ObjectHasValue) |
Implementations based on the partial axiomatization (presented in Section 4.3) can also be used with arbitrary RDF graphs, but in this case it is no longer possible to provide the above mentioned computational guarantees. Such implementations will, however, still produce only correct entailments (see Conformance).
The productions for OWL 2 RL are defined in the following sections. OWL 2 RL is defined not only in terms of the set of supported constructs, but it also restricts the places in which these constructs can be used. The idea is based on Description Logic Programs [DLP] — a logic obtained by intersecting description logics with rule-based languages.
The entities of OWL 2 RL are exactly as in OWL 2. Furthermore, OWL 2 EL supports the owl:Thing and owl:Nothing predefined classes; however, it does not support the predefined object and data properties owl:TopObjectProperty, owl:BottomObjectProperty, owl:TopDataProperty, and owl:BottomDataProperty. Finally, it supports the following datatypes:
The following predefined OWL 2 datatypes MUST NOT be used in OWL 2 RL: owl:realPlus, xsd:double, xsd:float, xsd:nonPositiveInteger, xsd:positiveInteger, xsd:negativeInteger, xsd:long, xsd:int, xsd:short, xsd:byte, xsd:unsignedLong, xsd:unsignedInt, xsd:unsignedShort, xsd:unsignedByte, xsd:language, and xsd:boolean.
Property expressions in OWL 2 RL are identical to the property expressions in OWL 2 [OWL 2 Specification].
There are three types of class expressions in OWL 2 RL. The subClassExpression production defines the class expressions that can occur in the antecedents of implications; such class expressions can, for example, occur as subclass expressions in a SubClassOf axiom. The superClassExpressions production defines the classes that can occur in the consequents of implications; such class expressions can, for example, occur as superclass expressions in a SubClassOf axiom. Finally, the equivClassExpressions production defines the classes that can occur in an EquivalentClasses axiom.
zeroOrOne := '0' |
'1'
subClassExpression :=
Class other
than owl:Thing |
'OneOf' '(' Individual { Individual } ')'
'IntersectionOf' '(' subClassExpression subClassExpression { subClassExpression } ')' |
'UnionOf' '(' subClassExpression subClassExpression { subClassExpression } ')' |
'SomeValuesFrom' '(' ObjectPropertyExpression subClassExpression ')' |
'SomeValuesFrom' '(' DataPropertyExpression { DataPropertyExpression } DataRange ')' |
'HasValue' '(' ObjectPropertyExpression Individual ')' |
'HasValue' '(' DataPropertyExpression Literal ')'
superClassExpression :=
Class |
'IntersectionOf' '(' subClassExpression superClassExpression { superClassExpression } ')' |
'AllValuesFrom' '(' ObjectPropertyExpression superClassExpression ')' |
'AllValuesFrom' '(' DataPropertyExpression { DataPropertyExpression } DataRange ')' |
'MaxCardinality' '(' zeroOrOne ObjectPropertyExpression [ subClassExpression ] ')' |
'MaxCardinality' '(' zeroOrOne DataPropertyExpression [ DataRange ] ')' |
'HasValue' '(' ObjectPropertyExpression Individual ')' |
'HasValue' '(' DataPropertyExpression Literal ')'
equivClassExpression :=
Class other
than owl:Thing |
'IntersectionOf' '(' equivClassExpression equivClassExpression { equivClassExpression } ')' |
'HasValue' '(' ObjectPropertyExpression Individual ')' |
'HasValue' '(' DataPropertyExpression Literal ')'
A data range expression is restricted in OWL 2 RL to the predefined datatypes admitted in OWL 2 RL.
DataRange := Datatype
OWL 2 RL redefines all of [OWL 2 Specification] that refer to ClassExpression. In particular, it restricts various class axioms to use the appropriate form of class expressions (i.e., one of subClassExpression, superClassExpression, or equivClassExpression), and it disallows the DisjointUnion axiom.
ClassAxiom := SubClassOf | EquivalentClasses | DisjointClasses
SubClassOf := 'SubClassOf'
'(' { annotation } subClassExpression superClassExpression ')'
EquivalentClasses :=
'EquivalentClasses' '(' { annotation } equivClassExpression equivClassExpression { equivClassExpression } ')'
DisjointClasses :=
'DisjointClasses' '(' { annotation
} subClassExpression subClassExpression { subClassExpression } ')'
OWL 2 RL axioms about property expressions are as in OWL 2, the only difference being that property domain and range axioms are restricted to the appropriate form of class expressions.
ObjectPropertyDomain :=
'PropertyDomain' '(' { annotation
} ObjectPropertyExpression
superClassExpression ')'
ObjectPropertyRange :=
'PropertyRange' '(' { annotation }
ObjectPropertyExpression
superClassExpression ')'
DataPropertyDomain :=
'PropertyDomain' '(' { annotation
} DataPropertyExpression
superClassExpression ')'
OWL 2 RL restricts the positive assertions to a particular type of classes, and it disallows negative property assertions. Equality and inequality between individuals and positive assertions are the same as in OWL 2.
ClassAssertion :=
'ClassAssertion' '(' { annotation
} Individual superClassExpression ')'
Assertion := SameIndividual | DifferentIndividuals | ClassAssertion | ObjectPropertyAssertion | DataPropertyAssertion
Keys are redefined in OWL 2 RL to allow for correct type of class expression in the axiom.
HasKey := 'HasKey' '(' { annotation } subClassExpression ObjectPropertyExpression | DataPropertyExpression { ObjectPropertyExpression | DataPropertyExpression } ')'
All other axioms in OWL 2 RL are defined as in OWL 2.
This section presents a partial axiomatization of the OWL 2 RDF-Based Semantics in the form of first-order (material) implications; we will call this axiomatization the OWL 2 RL/RDF rules. These rules provide a useful starting point for practical implementation using rule-based technologies.
The rules are given as universally quantified first-order implications over a ternary predicate T. This predicate represents a generalization of RDF triples in which bnodes and literals are allowed in all positions (similar to the partial generalization in pD* [pD*] and to generalized RDF triples in RIF [RIF]); thus, T(s, p, o) represents a generalized RDF triple with the subject s, predicate p, and the object o. Variables in the implications are preceded with the question mark. The propositional symbol false is a special symbol denoting contradiction: if it is derived, then the initial RDF graph was inconsistent.
Many conditions contain atoms that match to the list construct of RDF. In order to simplify the presentation of the rules, LIST[h, e1, ..., en] is used as an abbreviation for the conjunction of triples shown in Table 2, where z2, ..., zn are fresh variables that do not occur anywhere where the abbreviation is used.
T(h, rdf:first, e1) | T(h, rdf:rest, z2) |
T(z2, rdf:first, e2) | T(z2, rdf:rest, z3) |
... | ... |
T(zn, rdf:first, en) | T(zn, rdf:rest, rdf:nil) |
The axiomatization is split into several tables for easier navigation. Table 3 axiomatizes the semantics of equality. In particular, it defines the equality relation on resources owl:sameAs as being reflexive, symmetric, and transitive, and it axiomatizes the standard replacement properties of equality for it.
If | then | |
---|---|---|
T(?s, ?p, ?o) |
T(?s, owl:sameAs, ?s) T(?p, owl:sameAs, ?p) T(?o, owl:sameAs, ?o) |
|
T(?x, owl:sameAs, ?y) | T(?y, owl:sameAs, ?x) | |
T(?x, owl:sameAs, ?y) T(?y, owl:sameAs, ?z) |
T(?x, owl:sameAs, ?z) | |
T(?s, owl:sameAs, ?s') T(?s, ?p, ?o) |
T(?s', ?p, ?o) | |
T(?p, owl:sameAs, ?p') T(?s, ?p, ?o) |
T(?s, ?p', ?o) | |
T(?o, owl:sameAs, ?o') T(?s, ?p, ?o) |
T(?s, ?p, ?o') | |
T(?x, owl:sameAs, ?y) T(?x, owl:differentFrom, ?y) |
false | |
T(?yi,
owl:sameAs, ?yj) T(?x, rdf:type, owl:AllDifferent) LIST[?x, ?y1, ..., ?yn] |
false | for each 1 ≤ i < j ≤ n |
Table 4 specifies the semantic conditions on axioms about properties.
If | then | |
---|---|---|
T(?p, rdfs:domain, ?c) T(?x, ?p, ?y) |
T(?x, rdf:type, ?c) | |
T(?p, rdfs:range, ?c) T(?x, ?p, ?y) |
T(?y, rdf:type, ?c) | |
T(?p, rdf:type, owl:FunctionalProperty) T(?x, ?p, ?y1) T(?x, ?p, ?y2) |
T(?y1, owl:sameAs, ?y2) | |
T(?p, rdf:type,
owl:InverseFunctionalProperty) T(?x1, ?p, ?y) T(?x2, ?p, ?y) |
T(?x1, owl:sameAs, ?x2) | |
T(?p, rdf:type, owl:ReflexiveProperty) T(?x, ?y, ?z) |
T(?x, ?p, ?x) T(?y, ?p, ?y) T(?z, ?p, ?z) |
|
T(?p, rdf:type, owl:IrreflexiveProperty) T(?x, ?p, ?x) |
false | |
T(?p, rdf:type, owl:SymmetricProperty) T(?x, ?p, ?y) |
T(?y, ?p, ?x) | |
T(?p, rdf:type, owl:AsymmetricProperty) T(?x, ?p, ?y) T(?y, ?p, ?x) |
false | |
T(?p, rdf:type, owl:TransitiveProperty) T(?x, ?p, ?y) T(?y, ?p, ?z) |
T(?x, ?p, ?z) | |
T(?p1,
rdfs:subPropertyOf, ?p2) T(?x, ?p1, ?y) |
T(?x, ?p2, ?y) | |
T(?sc, owl:propertyChain, ?x) LIST[?x, ?p1, ..., ?pn] T(?sc, rdfs:subPropertyOf, ?p) T(?u1, ?p1, ?u2) T(?u2, ?p2, ?u3) ... T(?un, ?pn, ?un+1) |
T(?u1, ?p, ?un+1) | |
T(?p1,
owl:equivalentProperty, ?p2) T(?x, ?p1, ?y) |
T(?x, ?p2, ?y) | |
T(?p1,
owl:equivalentProperty, ?p2) T(?x, ?p2, ?y) |
T(?x, ?p1, ?y) | |
T(?p1,
owl:propertyDisjointWith, ?p2) T(?x, ?p1, ?y) T(?x, ?p2, ?y) |
false | |
T(?z, rdf:type, owl:AllDisjointProperties) LIST[?z, ?p1, ..., ?pn] T(?x, ?pi, ?y) T(?x, ?pj, ?y) |
false | for each 1 ≤ i < j ≤ n |
T(?p1,
owl:inverseOf, ?p2) T(?x, ?p1, ?y) |
T(?y, ?p2, ?x) | |
T(?p1,
owl:inverseOf, ?p2) T(?x, ?p2, ?y) |
T(?y, ?p1, ?x) | |
T(?c, owl:hasKey, ?u) LIST[?u, ?p1, ..., ?pn] T(?x, rdf:type, ?c) T(?x, ?p1, ?z1) ... T(?x, ?pn, ?zn) T(?y, rdf:type, ?c) T(?y, ?p1, ?z1) ... T(?y, ?pn, ?zn) |
T(?x, owl:sameAs, ?y) |
Table 5 specifies the semantic conditions on classes.
If | then | |
---|---|---|
T(?c, owl:intersectionOf, ?x) LIST[?x, ?c1, ..., ?cn] T(?y, rdf:type, ?c1) T(?y, rdf:type, ?c2) ... T(?y, rdf:type, ?cn) |
T(?y, rdf:type, ?c) | |
T(?c, owl:intersectionOf, ?x) LIST[?x, ?c1, ..., ?cn] T(?y, rdf:type, ?c) |
T(?y,
rdf:type, ?c1) T(?y, rdf:type, ?c2) ... T(?y, rdf:type, ?cn) |
|
T(?c, owl:unionOf, ?x) LIST[?x, ?c1, ..., ?cn] T(?y, rdf:type, ?ci) |
T(?y, rdf:type, ?c) | for each 1 ≤ i ≤ n |
T(?x, owl:someValuesFrom, ?y) T(?x, owl:onProperty, ?p) T(?u, ?p, ?v) T(?v, rdf:type, ?y) |
T(?u, rdf:type, ?x) | |
T(?x, owl:allValuesFrom, ?y) T(?x, owl:onProperty, ?p) T(?u, rdf:type, ?x) T(?u, ?p, ?v) |
T(?v, rdf:type, ?y) | |
T(?x, owl:hasValue, ?y) T(?x, owl:onProperty, ?p) T(?u, rdf:type, ?x) |
T(?u, ?p, ?y) | |
T(?x, owl:hasValue, ?y) T(?x, owl:onProperty, ?p) T(?u, ?p, ?y) |
T(?u, rdf:type, ?x) | |
T(?x, owl:maxCardinality,
"0"^^xsd:nonNegativeInteger) T(?x, owl:onProperty, ?p) T(?u, ?p, ?y) T(?u, rdf:type, ?x) |
false | |
T(?x, owl:maxCardinality,
"1"^^xsd:nonNegativeInteger) T(?x, owl:onProperty, ?p) T(?u, ?p, ?y1) T(?u, ?p, ?y2) T(?u, rdf:type, ?x) |
T(?y1, owl:sameAs, ?y2) | |
T(?c, owl:oneOf, ?x) LIST[?x, ?y1, ..., ?yn] |
T(?yi, rdf:type, ?c) | for each 1 ≤ i ≤ n |
Table 6 specifies the semantic conditions on class axioms.
If | then | |
---|---|---|
T(?c1,
rdfs:subClassOf, ?c2) T(?x, rdf:type, ?c1) |
T(?x, rdf:type, ?c2) | |
T(?c1,
owl:equivalentClass, ?c2) T(?x, rdf:type, ?c1) |
T(?x, rdf:type, ?c2) | |
T(?c1,
owl:equivalentClass, ?c2) T(?x, rdf:type, ?c2) |
T(?x, rdf:type, ?c1) | |
T(?c1,
owl:disjointWith, ?c2) T(?x, rdf:type, ?c1) T(?x, rdf:type, ?c2) |
false | |
T(?y, rdf:type, owl:AllDisjointClasses) LIST[?y, ?c1, ..., ?cn] T(?x, rdf:type, ?ci) T(?x, rdf:type, ?cj) |
false | for each 1 ≤ i < j ≤ n |
Table 7 specifies the semantics of datatype literals.
If | then | |
---|---|---|
true | T(lt, rdf:type, dt) | for each literal lt and each datatype
dt supported in OWL 2 RL such that the data value of lt is contained in the value space of dt |
true | T(lt1, owl:sameAs, lt2) | for all literals lt1 and lt2 with the same data value |
true | T(lt1, owl:differentFrom, lt2) | for all literals lt1 and lt2 with different data values |
T(lt, rdf:type, dt) | false | for each literal lt and each datatype
dt supported in OWL 2 RL such that the data value of lt is not contained in the value space of dt |
Table 8 specifies the semantic restrictions on the vocabulary used to define the schema.
If | then |
---|---|
T(?c, rdf:type, owl:Class) | T(?c, rdfs:subClassOf, ?c) T(?c, owl:equivalentClass, ?c) |
T(?c1,
rdfs:subClassOf, ?c2) T(?c2, rdfs:subClassOf, ?c3) |
T(?c1, rdfs:subClassOf, ?c3) |
T(?c1, owl:equivalentClass, ?c2) | T(?c1,
rdfs:subClassOf, ?c2) T(?c2, rdfs:subClassOf, ?c1) |
T(?p, rdf:type, owl:ObjectProperty) | T(?p, rdfs:subPropertyOf, ?p) T(?p, owl:equivalentProperty, ?p) |
T(?p, rdf:type, owl:DatatypeProperty) | T(?p, rdfs:subPropertyOf, ?p) T(?p, owl:equivalentProperty, ?p) |
T(?p1,
rdfs:subPropertyOf, ?p2) T(?p2, rdfs:subPropertyOf, ?p3) |
T(?p1, rdfs:subPropertyOf, ?p3) |
T(?p1, owl:equivalentProperty, ?p2) | T(?p1,
rdfs:subPropertyOf, ?p2) T(?p2, rdfs:subPropertyOf, ?p1) |
T(?p, rdfs:domain, ?c1) T(?c1, rdfs:subClassOf, ?c2) |
T(?p, rdfs:domain, ?c2) |
T(?p2, rdfs:domain, ?c) T(?p1, rdfs:subPropertyOf, ?p2) |
T(?p1, rdfs:domain, ?c) |
T(?p, rdfs:range, ?c1) T(?c1, rdfs:subClassOf, ?c2) |
T(?p, rdfs:range, ?c2) |
T(?p2, rdfs:range, ?c) T(?p1, rdfs:subPropertyOf, ?p2) |
T(?p1, rdfs:range, ?c) |
T(?c1, owl:hasValue, ?i) T(?c1, owl:onProperty, ?p1) T(?c2, owl:hasValue, ?i) T(?c2, owl:onProperty, ?p2) T(?p1, rdfs:subPropertyOf, ?p2) |
T(?c1, rdfs:subClassOf, ?c2) |
T(?c1,
owl:someValuesFrom, ?y1) T(?c1, owl:onProperty, ?p) T(?c2, owl:someValuesFrom, ?y2) T(?c2, owl:onProperty, ?p) T(?y1, rdfs:subClassOf, ?y2) |
T(?c1, rdfs:subClassOf, ?c2) |
T(?c1,
owl:someValuesFrom, ?y) T(?c1, owl:onProperty, ?p1) T(?c2, owl:someValuesFrom, ?y) T(?c2, owl:onProperty, ?p2) T(?p1, rdfs:subPropertyOf, ?p2) |
T(?c1, rdfs:subClassOf, ?c2) |
T(?c1,
owl:allValuesFrom, ?y1) T(?c1, owl:onProperty, ?p) T(?c2, owl:allValuesFrom, ?y2) T(?c2, owl:onProperty, ?p) T(?y1, rdfs:subClassOf, ?y2) |
T(?c1, rdfs:subClassOf, ?c2) |
T(?c1,
owl:allValuesFrom, ?y) T(?c1, owl:onProperty, ?p1) T(?c2, owl:allValuesFrom, ?y) T(?c2, owl:onProperty, ?p2) T(?p1, rdfs:subPropertyOf, ?p2) |
T(?c2, rdfs:subClassOf, ?c1) |
T(?c, owl:intersectionOf, ?x) LIST[?x, ?c1, ..., ?cn] |
T(?c, rdfs:subClassOf, ?c1) T(?c, rdfs:subClassOf, ?c2) ... T(?c, rdfs:subClassOf, ?cn) |
T(?c, owl:unionOf, ?x) LIST[?x, ?c1, ..., ?cn] |
T(?c1, rdfs:subClassOf, ?c) T(?c2, rdfs:subClassOf, ?c) ... T(?cn, rdfs:subClassOf, ?c) |
Note that the rules relating to rdfs:domain and rdfs:range reflect the IFF semantic conditions of the OWL 2 RDF-Based semantics [OWL 2 RDF-Based Semantics] rather than the weaker ONLY-IF semantics of RDFS [RDF Semantics].
OWL 2 RL/RDF rules include neither the axiomatic triples and entailment rules of RDF and RDFS [RDF Semantics] nor the axiomatic triples for the relevant OWL vocabulary [OWL 2 RDF-Based Semantics], as these might cause performance problems in practice. An OWL 2 RL/RDF implementation MAY include these triples and entailment rules as necessary without invalidating the conformance requirements for OWL 2 RL [Conformance].
Theorem 1. Let R be the OWL 2 RL/RDF rules as defined above; and let O1 and O2 be OWL 2 RL ontologies in both of which no URI is used for more than one type of entity (i.e., no URIs is used both as, say, a class and an individual), and where all axioms in O2 are assertions of the following form with a, a1, ..., an named individuals:
Furthermore, let RDF(O1) and RDF(O2) be translations of O1 and O2, respetively, into RDF graphs as specified in the OWL 2 Mapping to RDF Graphs [OWL 2 RDF Mapping]; and let FO(RDF(O1)) and FO(RDF(O2)) be the translation of these graphs into first-order theories in which triples are represented using the T predicate — that is, T(s, p, o) represents an RDF triple with the subject s, predicate p, and the object o. Then, O1 entails O2 under the OWL 2 RDF-Based semantics [OWL 2 RDF-Based Semantics] if and only if FO(RDF(O1)) ∪ R entails FO(RDF(O2)) under the standard first-order semantics.
This section describes the computational complexity of important reasoning problems in the described profiles.
Note that in languages that are propositionally closed (i.e., that provide, either implicitly or explicitly, conjunction, union and negation of class descriptions), such as OWL 2, the problems of ontology consistency, class expression satisfiability, class expression subsumption and instance checking can be reduced to each other in polynomial time. None of the described profiles, however, is propositionally closed, so these reasoning problems thus can have different complexity and require different algorithmic solutions.
This section describes the computational complexity of the most relevant reasoning problems of the languages defined in this document. The reasoning problems considered here are the following:
The problem of computing the class subsumption relationship for all the classes in a given ontology is often called classification.
When evaluating the complexity, the following parameters will be considered:
Table 8 summarizes the known complexity results for OWL 2, OWL 1 DL, OWL 2 EL, OWL 2 QL, and OWL 2 RL. Whenever the complexity for a given problem is described as "Open", * denotes that the problem's decidability is still an open question; if * is omitted, then the problem is known to be decidable but precise complexity bounds have not yet been established.
Language | Reasoning Problems | Taxonomic Complexity | Data Complexity | Query Complexity | Combined Complexity |
---|---|---|---|---|---|
OWL 2 DL | Ontology Consistency, Class Expression
Satisfiability, Class Expression Subsumption, Instance Checking |
2NEXPTIME-complete | Open (NP-Hard) |
Not Applicable | 2NEXPTIME-complete |
Conjunctive Query Answering | Open* | Open* | Open* | Open* | |
OWL 1 DL | Ontology Consistency, Class Expression
Satisfiability, Class Expression Subsumption, Instance Checking |
NEXPTIME-complete | Open (NP-Hard) |
Not Applicable | NEXPTIME-complete |
Conjunctive Query Answering | Open* | Open* | Open* | Open* | |
Ontology Consistency, Class Expression
Satisfiability, Class Expression Subsumption, Instance Checking |
PTIME-complete | PTIME-complete | Not Applicable | PTIME-complete | |
Conjunctive Query Answering | PTIME-complete | PTIME-complete | NP-complete | PSPACE-complete | |
Ontology Consistency, Class Expression
Satisfiability, Class Expression Subsumption, Instance Checking, |
In PTIME | In LOGSPACE | Not Applicable | In PTIME | |
Conjunctive Query Answering | In PTIME | In LOGSPACE | NP-complete | NP-complete | |
Ontology Consistency, Class Expression
Satisfiability, Class Expression Subsumption, Instance Checking |
PTIME-complete | PTIME-complete | Not Applicable | PTIME-complete | |
Conjunctive Query Answering | PTIME-complete | PTIME-complete | NP-complete | NP-complete |
A wealth of information about these and other complexity results can be found in the Description Logic Handbook [DL Handbook] and by using the Description Logic Complexity Navigator.