This application claims priority under 35 U.S.C. §119 to European Patent Application No. 14176027.2 filed on Jul. 7, 2014, the entire content of which is hereby incorporated by reference.
The invention relates to a new computer-implemented method and apparatus for computing the concept materialization of an ontology.
Metadata is widely used to describe data volumes across their different structures and sources for the purpose of meaningful processing. As metadata is considered all kinds of formal description including concept and rule languages (such as UML, ORM, logic, RuleML, etc.) that express knowledge about the plurality of data elements which, at least in parts, can be mapped to an ontology language such as, but not limited to, the Resource Description Framework Schema (RDFS) or the profiles of the Web Ontology Language (OWL). Meaningful processing relates to all tasks that take entailments into account that are implied by the accompanied metadata (aka reasoning) within computation of, but not limited to, answers of type queries.
Within a typical business setting data is stored in databases and any semantic information system has to utilize some sort of reasoning to enable content-aware data processing. The reasoning systems for large volumes of data basically follow three approaches:
Query rewriting or backward-chaining approaches answer a query by compiling metadata (query-relevant knowledge) into a (typically SQL) query for execution by the database engine. This technique is commonly called ontology based data access (OBDA). A suitable metadata language that supports this approach is OWL 2 QL.
Materialization or forward-chaining techniques pre-compute all entailments upfront, independent of any queries. After pre-computation it is sufficient to evaluate queries over the materialized data to obtain all entailed results. Hence in this context, materialized data means precomputed data and materialization refers to the precomputation of all entailments. OWL 2 RL is an ontology language that is sound and complete in this respect.
Combined approaches follow a mixed strategy where some of the entailments are materialized in advance or on demand while others are triggered by queries and computed just for the purpose of a particular query.
With increasing data volumes existing technical solutions of the aforementioned approaches are unable to meet practical requirements in terms of metadata expressivity, performance, storage space, or memory. To name a few: Query rewriting is limited to rewriteable and less expressive metadata languages and requires sophisticated query-optimizations to work well in practice. Straightforward full materialization easily ends up in time and space consuming pre-processing that typically has to be repeated when data changes. Combined approaches need to be adjusted and tuned for each case of application in advance.
The present technology relates to the field of Description Logics (DL) so that common DL terminology is used throughout the description as follows: ABox (the data), refers to the aggregate of data elements called individuals, in terms of asserted or inferred concept assertions (also called types) as well as role assertions. Role assertions express a directed relationship that relates one individual (the source) with a second individual (the target) with respect to a particular role. TBox refers to the aggregate of schema axioms about concepts and roles (the metadata).
U.S. Pat. No. 7,904,401 presents a method and apparatus, including computer program products, for scalable ontology reasoning. A method of generating a summarized ontology includes, according to U.S. Pat. No. 7,904,401, loading an ontology from a store, eliminating relationships in the ontology, the eliminating relationships including an insertion of new relationships that simplify the ontology, eliminating individuals in the ontology, the eliminating individuals including insertion of new individuals to simplify the ontology, eliminating concepts in the ontology including insertion of new concepts to simplify the ontology, and generating the summarized ontology from the eliminating relationships, eliminating individuals and eliminating concepts. U.S. Pat. No. 7,904,401 does not perform materialization.
Fokoue, Kershenbaum, Ma, Schonberg, and Srinivas: “The summary ABox: Cutting ontologies down to size”, in. Proc. of the 5th Int. Semantic Web Conference (ISWC 2006), Vol. 4273 LNCS, p. 343-356, Springer, 2006, presents an approach that merges similar individuals to obtain a compressed, so-called summary ABox, which is then used for (refutation-based) consistency checking. The approach is similar and closely related to the approach of U.S. Pat. No. 7,904,401. The technique is based on the observation that individuals with the same asserted types are likely to have the same entailed types. Since merging in Fokoue et al. is only based on asserted concepts, the resulting summary ABox might be inconsistent even if the original ABox is consistent w.r.t. the TBox. To remedy this, justifications, according to Kalyanpur at al: “Finding all justifications of OWL DL entailments”, in. Proc. of the 6th Int. Semantic Web Conference (ISWC 2007), Vol. 4825 LNCS, p. 267-280, Springer, 2007, are used to decide which merges caused the inconsistency and to refine the summary accordingly. Justification-based refinements are also necessary for query answering since Fokoue at al. and U.S. Pat. No. 7,904,401 do not perform query answering based on materialization but perform reasoning at query time. Such computation of justifications is very resource intensive, requiring significant processing and memory resources, and furthermore slows down the process of query answering. The computation of all justifications is typically part of the exponential Reiter's search according to U.S. Pat. No. 7,904,401. For large ABoxes, such as those which are used in the evaluation section below, the calculation of justifications according to U.S. Pat. No. 7,904,401 and also Fokoue et al., despite possible optimizations, may even be impossible on ordinary computer hardware, such as the one used in the evaluation section below, due to resource shortage. It is thus desirable to avoid the creation of a possibly inconsistent summary ABox in the first place and thus also to avoid the step of computing justifications altogether.
Wandelt and Möller present in “Towards ABox modularization of semi-expressive description logics”, Journal of Applied Ontology, 7(2):133-167, 2012, a technique for refutation-based instance retrieval over SHI ontologies based on modularization. As an optimization, this approach groups individuals into equivalence classes based on the asserted types of an individual, its successors, predecessors and the asserted types of the successors and predecessors. The assertions that define the equivalence class of an individual are used for finding sound entailments. For checking entailments that cannot be read-off from these assertions, it might be necessary to fall-back to (refutation-based) reasoning over the (possibly large) ABox module for the individual. This fall-back is however undesirable, since it requires in certain cases the processing on the basis of the original ABox, which would nullify the effect of possible improvements in terms of resource savings possibly achieved by the grouping of individuals.
Wandelt and Müller present in “Sound and Complete SHI Instance Retrieval for 1 Billion ABox Assertions”, Workshop on Scalable Semantic Web Systems, pp. 75-89, 2011, a technique for refutation-based instance checking over SHI ontologies based on modularization. The method relies on ABox modules called individual islands that are built for each individual using a syntactical splittability check based on the TBox information. Each individual island is a subset of the original ABox that contains at least all ABox facts necessary to compute all entailed concept memberships for this individual. It is sound and complete to use the island of an individual to check all its concept memberships instead of the original ABox. However, for exhaustive concept materialization of the ABox, the islands of all individual must be built and checked separately. Therefore individual islands provide no advantage in terms of a size reduction with respect to individuals or assertions. Yet, if two or more individuals have similar (isomorphic) islands, one could apply the results of the concept materialization for the first individual to the others instead of processing the individual islands of the other individuals. Unfortunately the similarity test between individual islands, which may consist of substantial parts of the ABox, can be too computationally intensive to be practicable since it is a graph isomorphy problem for which no polynomial algorithm is known for the general case as of today. Wandelt and Möller in “Sound and Complete SHI Instance Retrieval for 1 Billion ABox Assertions” therefore defined an approximation of the individual islands called one-step nodes, grouping individuals into equivalence classes based on the asserted types of an individual, its successors, predecessors and the asserted types of the successors and predecessors. The assertions that define these equivalence classes are then used for computing sound entailments for their member individuals. However, this approximation is only complete if the one-step node is splittable, wherein splittability implies that the island of this individual is included in the one-step node, what can only be the case for very small islands. In each case where the one-step node is not splittable, the equivalence classes have to be discarded and the bigger island of each individual must be used. Moreover, the approach of Wandelt and Möller is not compatible with the use of nominals which are widely used in real-world ontologies. Individual islands and splittability depend on the TBox. As soon as a concept assertion for an individual can possibly be used to infer new assertions for second individual that is not a “neighbor”, the one step node for the second individual is not splittable. Hence, the bigger the TBox, i.e. the more complex the ontology, the lower the chance that the one step node is splittable.
The presented innovation uses a compression technique called “ABox abstraction and refinement” that may significantly reduce time, memory, and computing resources for reasoning and in particular for computing and outputting the materialization of an ABox. The terms “materialized” and “materialization” in the following refer to concept materialized and concept materialization, i.e. computation of all entailed concepts of all individuals (or equivalently all instances of every concept), respectively, as given by the semantic interpretation of ontologies formally defined in the subsection on “Preliminaries” in the section “Detailed description”. The terms “abstract ABox” and “compressed ABox” are used interchangeably in the following.
According to one embodiment, there is provided a computer-implemented method for computing a concept materialization of an ontology O, wherein O is a formal explicit description of concepts and roles in a domain of discourse comprising: an ABox A, referring to data elements, called individuals, in terms of asserted or inferred concept assertions, and role assertions, expressing a directed relationship that relates one individual, called source, with a second individual, called target, with respect to a particular role, and a TBox T, referring to schema axioms about concepts and roles, the computer-implemented method comprising the following steps: (1) building an ABox B, being a compressed representation of ABox A, based on equivalence classes of individuals in ABox A, wherein individuals fall into the same equivalence class if they are asserted to the same concepts and if they are the source of the same roles and if they are target of the same roles, wherein the ABox B contains for each equivalence class E a fresh individual I with the same concept assertions as the individuals in E, and for each role Rj for which the individuals in E appear as source in a role assertion for Rj, a corresponding fresh individual IRj and a role assertion for role Rj with I as source and IRj as target, and for each role Rk for which the individuals in E appear as target in a role assertion for Rk, a corresponding fresh individual IRk and a role assertion for role Rk with IRk as source and I as target; (2) materializing all entailed concept assertions of ABox B with respect to TBox T of the ontology O using ontology reasoning; (3) extending ABox A by adding, if not already included, assertions to obtain ABox A′ so that ABox A′ includes for all equivalence classes E: (i) concept assertions for all individuals of E corresponding to entailed concept assertions for fresh individual I in ABox B representing equivalence class E; (ii) concept assertions for all individuals in ABox A which are source respectively target of a role assertion with role R corresponding entailed concept assertions in ABox B for an individual that is source respectively target of role assertioftwith role R and an individual I in ABox B representing equivalence class E; (4) if new assertions are added by the extending in step (3) repeat from step (1), wherein ABox A should be the extended ABox A′ provided by step (3); wherein the transformed ontology O′ is obtained from O by replacing the original ABox A with the final extended ABox A′, being a materialized version of the original input ABox A.
Thereby the fresh individuals are individuals that do not occur in the ABox A for which the abstraction is computed and the fresh individuals constitute the individuals of ABox B.
This method has the effect that materialization of the ontology can be performed without computing steps that have very high computing resource requirements such as, e.g., the computing of justifications in U.S. Pat. No. 7,904,401 and Fokoue et al.
This method has the further effect that the utilized ontology reasoning component deals exclusively with an ontology comprising a compressed ABox and thus the reasoning requires less computing and memory resources to compute the materialization of the ABox. The amount of reduction in storage and processing requirements for the utilized ontology reasoning component due to the method according to the present invention will become apparent and are documented in the evaluation section below.
In one embodiment, the ontology O uses Description Logic DL as the formal knowledge representation language, which is preferably a Horn ALCHOI description logic fragment.
This has the effect and advantage that the description logic is very expressive thus enabling the efficient representation and reasoning over complex concepts and roles in a domain of discourse.
In one embodiment, step (2) of the method uses a normalized version T′ of TBox T, wherein TBox T′ is obtained by normalizing TBox T′ by introducing new concepts to T as replacement for complex concept expressions in T′ as well as by adding axioms to T designed to preserve the entailments of T.
Thereby, complex concept expressions are concepts defined using quantificators and roles.
The normalization of the TBox has the effect that all axioms of the normalized TBox T′ have the aforementioned normalized form under which the above method for materialization of an ontology O is guaranteed to be complete, which means that the materialization includes all atomic concept assertions that are entailed by the ontology O. The completeness is guaranteed under the further assumption that the TBox of the ontology is expressed in a Horn equivalent form. The completeness proof is provided below in the section on completeness.
The Horn ALCHOI normal form required by the abstraction refinement process to guarantee completeness adds the following restrictions to the Horn ALCHOI normal form:
no existential restriction expressions are allowed in the sub-concepts of concept inclusion axioms
no complex concept expression are allowed in the universal restriction expressions in the super-concepts of concept inclusion axioms.
The conversion of a Horn ALCHOI ontology to the Horn ALCHOI normal form can be achieved (for instance) by the following steps:
first each concept expression in the ontology is replaced by its negation normal form, this form being obtained by well-known transformations pushing the negations down into the sub-expressions until the negation only applies to atomic concepts,
then the following transformations are applied repeatedly to all concept inclusion axioms in the ontology (including the concept inclusion axioms modified and added by these transformations) until none is applicable:
each existential restriction expression with role expression R and concept expression C in the sub-concept of an axiom is replaced by a fresh atomic concept XC and a new concept inclusion axiom stating the inclusion of concept expression C into an universal restriction with role expression inverse of R and concept expression XC is added to the ontology.
each universal restriction expression with role expression R and non-atomic concept expression D in the super-concept of an axiom is replaced by an universal restriction with role R and a fresh atomic concept YD and a new concept inclusion axiom stating the inclusion of atomic concept YD into concept expression D is added to the ontology.
In one embodiment, all concept assertions for concepts introduced during the normalizing are removed from the final extended ABox A′ in order to obtain a materialized ABox of the original ontology with the original non-normalized TBox.
In one embodiment, the accessing and storing of individuals, concept and role assertions of ABox A and its extensions is performed by a database.
This has the effect and advantage that the main memory is available for the computation of the materialization of the compressed ABox and therefore allows the materialization of bigger ontologies with the given limited amount of computing and memory resources of ordinary computer hardware, as shown by in the evaluation section below.
In one embodiment, a computer program comprising computer program code is provided which, when being executed on a computer, enables said computer to carry out the method according to an embodiment described previously.
In one embodiment, there is provided a data structure representing an ABox B corresponding to a compressed representation of ABox A being generated by the method of computing a concept materialization of an ontology O according to one of claims 1 to 5.
In one embodiment, there is provided an apparatus for computing a concept materialization of an ontology O, wherein O is a formal explicit description of concepts and roles in a domain of discourse comprising: an ABox A, referring to data elements, called individuals, in terms of asserted or inferred concept assertions, and role assertions, expressing a directed relationship that relates one individual with a second individual with respect to a particular role, and a TBox T, referring to schema axioms about concepts and roles, the apparatus comprising: (1) means for building an abstraction, ABox B, of ABox A, being a compressed representation of ABox A, based on equivalence classes of individuals in ABox A, wherein individuals fall into the same equivalence class if they are asserted to the same concepts and if they are the source of the same roles and if they are target of the same roles, wherein the ABox B contains for each equivalence class E: a fresh individual I with the same concept assertions as the individuals in E, and for each role Rj for which the individuals in E appear as source in a role assertion for Rj, a corresponding fresh individual IRj and a role assertion for role Rj with I as source and IRj as target, and for each role Rk for which the individuals in E appear as target in a role assertion for Rk, a corresponding fresh individual IRk and a role assertion for role Rk with IRk as source and I as target; (2) means for materializing all entailed concept assertions of ABox B with respect to TBox T of the ontology O using ontology reasoning, (3) means for extending ABox A, by adding, if not already included, assertions to obtain ABox A′ so that ABox A′ includes for all equivalence classes E: (i) concept assertions for all individuals of E corresponding to entailed concept assertions for fresh individual I in ABox B representing equivalence class E; (ii) concept assertions for all individuals in ABox A which are source respectively target of a role assertion with role R corresponding entailed concept assertions in ABox B for an individual that is source respectively target of role assertion with role R and an individual I in ABox B representing equivalence class E; (4) means for controlling iterative refinement such that, if new assertions are added by the means for extending, the operation proceeds such that it repeats from the building of an abstraction, wherein ABox A should be the extended ABox A′ provided by the means for extending; wherein the transformed ontology O′ is obtained from O by replacing the original ABox A with the final extended ABox A′, being a materialized version of the original input ABox A.
In one embodiment, there is provided an apparatus as described previously, further comprising means for carrying out the method described above.
The invention provides methods and an apparatus for building and refining a smaller, compressed representation of an ABox, called abstract ABox, for the purpose of efficient computation of all entailed concepts of all individuals. This computation service is typically called materialization or realization and is key for efficient (conjunctive) query answering.
Furthermore, step 100 is provided for building of an abstract representation B of an ABox A based on the equivalence classes defined by the individuals in A that are asserted to the same concepts and source of the same roles and target of the same roles. B contains for each equivalence class E in A a fresh individual I asserted to exactly the same concepts as the individuals in E and, for each role for which the individuals in E are asserted as source (resp. target), a role assertion with I as source (resp. target) and a further fresh individual as target (resp. source). Step 100 can be understood as a compression, where ABox A is an original ABox and abstract ABox B is the compressed version thereof. For this reason, the abstract ABox B will be referred to also as compressed ABox B in the following. As will be apparent later in the description, the reasoning on the compressed ABox B can be more efficient than reasoning on the original ABox A due to the smaller size and also due to the simpler structure of ABox B.
Furthermore, a component 20 for storing and accessing individuals, concept and role assertions of an abstract ABox B is given, wherein this component, due to its reduced size compared to the ABox component 10, may typically be stored in an in-memory data structure, which typically allows much faster data access than a database that is not fully stored in memory. The latency of data access to an ABox component is very critical for efficient reasoning and in particular materialization of that ABox.
In some embodiments, a normalization step 60 provides the building of a normalized version of a TBox T, being stored in a TBox component 30. The normalization replaces particular complex concept expressions in the original axioms and may add new simple axioms designed to preserve the original entailments. This normalization step can be required to ensure the completeness of the realization using abstraction refinement. A proof that the abstraction refinement according to the present invention is complete is given further below in the section on completeness.
In some embodiments, a step 200 provides computing the entailed concepts of the abstract ABox B wrt. the normalized TBox utilizing ontology reasoning 210. The ontology reasoning 210 can be implemented using any system which is sound and complete for the description language used to express the ABox B and the normalized TBox. In particular, the reasoning component, also called reasoner, used for reasoning on the compressed ABox B can be the same as the reasoner used for reasoning on the original ABox A, which in turn can be any standard reasoning system with the aforementioned properties. It should be mentioned, that the application of a reasoning component on an ontology typically incurs memory requirements that may be significantly higher than the size of the input ontology, in particular the input ABox. It is not uncommon that, although an input ABox A may fit into main memory, reasoning over said ABox A may be impossible due to additional memory requirements of the reasoner, wherein the additional memory requirements may in some cases be multiple times the size of the input ontology. Thus, in the present invention, the compression, i.e. size reduction, of an ABox A to its compressed ABox B may not only have the effect that the ABox B may be stored entirely in main memory but also that reasoning over the ontology with compressed ABox B is possible in main memory, when it was not possible for the ontology with original ABox A.
In some embodiments, a step 300 provides the extension of the ABox A as follows: (i) the entailed concept assertions for an individual I in ABox B representing an equivalence class E result in the same concept assertions for all individuals of E in ABox A and (ii) the entailed concept assertions in ABox B for an individual that is source (resp. target) of a role assertion with an individual I in ABox B representing an equivalence class E of ABox A result in the same concept assertions for all individuals in ABox A which are source (resp. target) of a similar role assertion with an individual of E. Concepts include original concepts of TBox T as well as fresh concepts introduced by the normalization. Step 300 can be understood as a decompression step as follows: The results of the ontology reasoning step, which are e.g. the entailed concept assertions in ABox B, are fed back and integrated into the original ABox A as described in steps (i) and (ii) above, thus creating a fully materialized ABox A in a stepwise iterative procedure which is further described in the following.
The terminology “compression” and “decompression” is used to emphasize the size reduction achieved when creating an abstract ABox B from an original ABox A. The terminology does however not mean the compressed ABox B may be used as a full replacement of ABox A as perhaps in lossless compression procedures. This is not the case here, since ABox A is kept and enhanced (step 300) and the abstract ABox B is mainly used to facilitate efficient reasoning and to efficiently compute the materialization of original ABox A.
In some embodiment, it is checked whether new assertions have been added to ABox A in the step performed by step 300 and a decision is taken to repeat the abstraction building by restarting from the step 200 if new assertions have been added. Otherwise, a fixed point in the iterative procedure is reached and the extended ABox A is a fully materialized version of the original input ABox A wrt. the normalized TBox.
This iterative procedure leads to the following results: The original ABox A is materialized in iterative steps as described in step 200 and extended to include new concept assertions as described in step 300.
In some embodiments, a step 500 is provided which removes all concept assertions of concepts introduced by the normalization 60. After removal the extended ABox A is a fully materialized version of the original input ABox A wrt. original input TBox T.
An important property of the present invention is that the materialized ABox is complete wrt. OWL 2 direct semantics for all parts of metadata descriptions that can be mapped into the DL Horn ALCHOI. The proof of this property is provided below.
Another important property of the present invention is that the number of individuals in the abstraction is always bounded exponentially in the number of different concepts and roles and linearly in the size of the input ABox; hence the abstraction is relatively small when the number of individuals is much larger than the number of concepts.
The approach to computing materialization in data repositories that utilize ontologies as metadata description can be extended to more expressive description logic fragments that include, for instance, role chains, functional roles, equivalence or distinctness of individuals, etc.
First, the syntax and semantics of the Description Logic (DL) ALCHOI is defined, which is the ontology language considered for presenting and illustrating the examples given in the following description. It should be noted that the present invention is not limited to the Horn ALCHOI description logic fragment and that the invention may be practiced in the context of other description logic languages as well. The syntax of ALCHOI is defined using a vocabulary (signature) consisting of countably infinite disjoint sets NC of concept names, NO of nominals, NR of role names, and NI of individual names. Note that concepts are called classes and roles are called properties in OWL. Complex concepts and axioms are defined recursively in
An interpretation I=(AI,.I) consists of a non-empty set ΔI, the domain of I, and an interpretation function .I that assigns to each A∈NC a subset AI⊂ΔI, to each o∈NO a singleton subset oI⊂ΔI, ∥iI∥=1, to each R∈NR a binary relation RI⊂ΔI×ΔI, and to each a∈NI an element aI⊂ΔI. This assignment is extended to complex concepts as shown in
Some definitions do not present nominals as primitive symbols, but use a special nominal constructor {a} with individual a (in this case, {a}I={aI}). Such ontologies can be easily converted to the above described representation by renaming every nominal a with the corresponding nominal symbol oa and adding a concept assertion oa (a). This transformation is a conservative extension, i.e., it preserves all original entailments.
In order to (syntactically) characterize individuals that yield the same consequences, structure-preserving transformations of ABoxes are described in the following.
Let A and B be two ABoxes and h: ind(A)→ind(B) a mapping from the individuals in A to individuals in B. h is extended to axioms in a straightforward way: h(C(a))=C(h(a)), h(R(a,b))=R(h(a),h(b)), and h(α)=αfor other axioms α. h is a homomorphism (from A to B) if h(A) c⊂B. An individual a in A is homomorphic to an individual b in B if there exists a homomorphism h from A to B such that h(a)=b; in addition, if b is homomorphic to a, then a and b are bi-homomorphic.
Consider the ABox A={R (a, a), R (a, b), R (b,b)}. Then the mappings h1={ab, bb} and h2={aa,ba} are homomorphisms from A to A. Since h1(a)=b and h2(b)=a, the individuals a and b are bi-homomorphic. Note that there is no isomorphism h from A to A (a bijective homomorphism such that its inverse is also a homomorphism) such that h(a)=b or h(b)=a.
It is easy to show that entailed axioms are preserved under homomorphisms between ABoxes. In particular, bi-homomorphic individuals are instances of the same concepts.
Let h: ind(A)→ind(B) be a homomorphism between ABoxes A and B. Then for every TBox T and every axiom α,A∪Tα implies BÅTh(α).
Suppose that A∪Tα. Then h(A∪T)=h(α). Since h(A∪T)=h(A)∪h(T)=h(A)∪T⊂B∪T, by monotonicity we obtain B∪Th(α).
If individuals a and b in an ABox A are bi-homomorphic, then, for every TBox T and every concept C,A∪TC(a) holds if and only if A∪TC(b).
If an ABox does not have role assertions, the bi-homomorphic individuals in an ABox are exactly those that have the same concepts in the assertions. Hence, bi-homomorphic individuals can be identified by just looking at their types—the set of concepts of which the individual is an (asserted) instance. Clearly, the number of different types, and hence the maximal number of individuals that are not bi-homomorphic to each other is at most exponential in the number of different concepts used in the ABox. With role assertions, however, it cannot be determined whether individuals are bi-homomorphic by just looking at their assertions. In fact, the number of non-bi-homomorphic individuals can be arbitrary large even if just one role is used in role assertions and there are no concept assertions.
Consider an ABox A={R(ai-1, ai)|1<i≦n}. It can be easily shown that the only homomorphism h: ind(A)→ind(A) from A to A is the identity h={aiai|1≦i≦n}, i.e., no different individuals in A are bi-homomorphic to each other. In fact, it is easy to find a TBox T with which all individuals in A entail different sets of assertions. Indeed, take T={TA1, Ai-1∀R.Ai, 1<i≦n}. Then A∪TAj (ai) holds if and only if 1≦j≦i≦n.
From Example 2 one can see that with many role assertions, an ABox is less likely to have many bi-homomorphic individuals. Note from Corollary 1 that if two individuals are bi-homomorphic, then they entail the same assertions w.r.t. every TBox. Clearly, this property is too strong for the purpose at hand, as it is necessary to deal with just one given TBox. It can be that many (non-bi-homomorphic) individuals are still materialized in the same way, because the number of different concept names used in the TBox is bounded. To take this into account, a different approach is proposed as follows: Instead of partitioning the individuals in the ABox in equivalence classes according to the isomorphism relation (which might be already too fine-grained for the TBox), one starts with an approximation to this relation, which makes more individuals equivalent. As soon as entailed assertions are obtained using a reasoner that distinguish elements within the same equivalence class, this approximation can be refined and the process is repeated until the fixpoint is reached.
Let A be an ABox. The type of an individual a (w.r.t. A) is a triple tp(a)=(tp↓(a), tp→,(a), tp←(a)) where tp↓(a)={C|C(a)∈A}, tp→(a)={R|∃b:R(a, b)∈A}, and tp←(a)={S|∃c: S(c, a)∈A}. Such type is also called abstract type.
Intuitively, the type of an individual is obtained by considering all assertions in which this individual occurs in the ABox, and ignoring all other individuals in these assertions. Note that bi-homomorphic individuals have the same types, so the relation between individuals of the same types is an approximation to the isomorphism relation.
If the ABox is compressed by simply merging all individuals with the same type into one, unexpected entailments can be obtained, even if all individuals are bi-homomorphic. This is problematic, since it may lead to incorrect conclusions as illustrated on the following example:
Consider the following ABox A={R(a, b), R(b, a)}. Clearly, a and b are bi-homomorphic in A. Let B={R(a, a)} be obtained from A by replacing individual b with a, and let T={TBC, ∃R.BC}. This TBox specifies that all individuals belong to concept B or concept C (first assertion) and that all individuals that have an R-successor in B belong to concept C (second assertion). It is easy to check that B∪T C(a), but A∪TC(a). This result is unexpected in the sense that C(a) is entailed by the new ontology B∪T but not by the original ontology A∪T.
To resolve this problem, one could follow the summary ABox approach according to Fokoue at al. or U.S. Pat. No. 7,904,401 B2 and compute justifications for entailed assertions to determine which individuals should not be merged. As described above, such procedure may incur very high requirements on computational and memory resources in the hardware, especially for large ABoxes. The present technology however is different and has been designed due to limitations of hardware resources in ordinary computer hardware, such as the one used in the evaluation section below. The present technology has been designed with the goal in mind to avoid such computationally expensive and memory intense operations. Hence, instead of merging all individuals with the same type into one, every individual type in the abstract ABox is realized. With abstract ABoxes defined as follows, one can guarantee that assertions that are entailed for the representative individuals also hold for the original individuals, so that the problem illustrated by Example 3 above does not arise any longer.
The abstraction of an ABox A is an ABox B=∪a∈ind(A)Btp(a), where for each type tp=(tp↓, tp43 , tp←), Btp is defined as Btp={C(xtp|C∈tp↓}∪{R(xtp, ytpR)|R∈tp→}∪{S(ztpS, xtp)|S∈tp←}, where xtp, ytpR, and ztpS are fresh distinguished abstract individuals.
Intuitively, the abstraction of an ABox is a disjoint union of small ABoxes witnessing each individual type realized in the ABox.
Consider the ABox A={A(a), A(d), R(a, b), R(a, e), R(b, c), R(b, e), R(c, a), R(d, c), R(e, d)}. It holds tp(b)=tp(c)=tp(e)=tp1=(Ø, {R}, {R}) and tp(a)=tp(d)=tp2=({A}, {R}, {R}). The abstraction of A is B=Btp
The following lemma shows the soundness of concept assertions derived from the abstraction.
Let A be an ABox, B its abstraction, and T a TBox. Then, for every type tp=(tp↓, tp→, tp←), every a ∈ ind(A) with tp(a)=tp w.r.t. A, and every concept C:
1. B∪TC (xtp) implies A∪TC (a),
2. B∪TC(ytpR) and R(a,b)∈A implies A∪TC(b), and
3. B∪TC (ztpS) and S(c, a)∈A implies A∪TC(c).
Consider all mappings h: ind(B)→ind(A) such that:
h(xtp)={z∈ind(A)|tp(a)=tp}
h(ytpR)={b|R(h(xtp), b)∈A}
h(ztpS)={c|S(c,h(xtp)∈A}.
Clearly, h(B⊂A for every such mapping h. Furthermore, for every a∈ind(A), every R(a, b)∈A and every S(a, b)∈A, there exists h with h(xtp)=a, h(ytpR)=b, and h(ztpS)=c for tp=tp(a). Hence, claims (1)-(3) follow by Lemma 1.
Note that the individuals from an ABox A may correspond to several abstract individuals in the ABox abstraction B: each individual a corresponds to the abstract individual xtp for tp=tp(a). In addition, if R(b,a)∈A or S(a,b)∈A for some individual b, then b also corresponds to ytpR and ztpS respectively for tp=tp(b). The additional individuals ytpR and ztpS are introduced intentionally to refine the initial abstraction when new assertions of abstract individuals are derived, which in turn, can be used to derive new assertions of individuals in A. Specifically, it can be assumed that all entailed atomic assertions have been materialized for the abstract ABox B w.r.t. the TBox using a reasoner. The computation of the reasoner while performing the materialization can be particularly efficient, since the materialization computed by the reasoner occurs over fresh individuals corresponding to abstractions, which each may stand for multiple original individuals. By handling a single fresh individual, the reasoner thus performs work that would have otherwise, i.e. without the abstraction, have to be done multiple times for each original individual. The savings enabled by the abstraction may even be more than the reduction in the amount of individuals achieved by the abstraction, since the computational complexity of a reasoner is typically super-linear in the amount of individuals, concepts, and rules to reason about.
Moreover, the compressed ABox consists by construction of small disconnected partitions (one for each equivalence class). When considered as a graph, each partition has a star-like structure with the individual representing the equivalence class in the center and incoming (respectively outgoing) edges that are labelled with roles that are pairwise distinct. In addition to the aforementioned size reduction, these disconnected simple structures limit the possibilities of inference propagation and thus reduces the complexity of the task of the reasoning component.
In the worst case of very heterogeneous individuals of an ABox, the compressed ABox may be larger (in terms of the number of individuals) than the original ABox. As with almost all compression techniques they become more effective the more homogeneous their input. As an example, data compression following Run-Length-Encoding, RLE, which is widely known as highly effective compression technique, and which is for example described in U.S. Pat. No. 4,207,599, may cause an expansion in data size in the worst case scenario, which is rarely encountered in practice. In the real world the number of concepts and roles is much smaller than the number of individuals which restricts the heterogeneity of the ABox and leads to very good compression rates, as demonstrated in the section on implementation and evaluation below. By Lemma 2, the corresponding assertions must also be entailed in the original ABox A. In particular, by case (1), the new assertions computed for the individual xtp, also hold for every individual a in A with tp(a)=tp. If all such assertions are added to the original ABox A, these individuals would still have the same types, so even by building a new abstraction for the extended ABox, one would not derive new assertions for the abstraction. On the other hand, if one adds the new assertion according to cases (2) and (3) of Lemma 2, different assertions may be obtained for individuals that previously had the same types. Indeed, if R(a,b)∈A, and a new assertion A(b) has been derived using case (2) of the lemma, then it is not necessary that a similar assertion A(b′) will be derived for every b′ with tp(b′)=tp(b), because it is not necessarily the case that there exists R (a′,b′)∈A with tp(a′)=tp(a), for which this case also applies. Hence, adding the newly derived assertions using Lemma 2 may refine the types of the original individuals and, in turn, result in a new abstraction, for which new assertions can be derived once again.
The above suggests the following materialization procedure based on abstraction refinement. Given an ontology O=A∪T the procedure is:
1. Build an abstraction B of A according to Definition 3.
2. Materialize B∪T using a reasoner.
3. Extend A with the newly derived assertions according to Lemma 2.
4. Repeat from Step 2 in case new assertions have been added to A in Step 3.
In order to efficiently extend A with newly derived assertions (Step 2) in a straightforward way, the individuals of each type are memorized by maintaining a data structure that keeps reference for each type tp to all of its individuals tp(a) in A when building the abstraction B. With such kind of reference, individual updates in A of case (1) in Lemma 2 are done while iterating over the individual references of a type. Note however, this is for efficiency only since one can alternatively recompute the types of each individual in A each time before extending A as part of Step 3. Updates caused by the cases (2) and (3) of Lemma 2 require a two step approach. First the respective individuals a are obtained by direct type reference followed by a lookup of the respective role successors/predecessors (referred to as b resp. c in Lemma 2) in A for an update.
Let AI be the ABox A from Example 4 and T={A∀R. B, B∀R−. A} a TBox. Let BI be the abstraction A of AI=A computed in Example 4 (see
Example 5 illustrates an interesting case where concept assertions are propagated back and forth via role assertions.
The abstraction refinement procedure terminates since after every iteration except the last one, new atomic assertions must be added to A, and there is a bounded number of such assertions. Specifically, the number of iterations is at most ∥ind(O)∥×∥con(O)∥. The number of realized individual types in every ABox A, and hence the size of every abstract ABox B, is at most exponential in the number of different concepts and roles in O.
One of the differences between the present technology and the teachings of Wandelt and Möller is the above process of iterative refinements for equivalence classes. Wandelt and Möller do not describe such iterative refinement but instead propose to fall back to refutation-based reasoning over the possibly large original ABox. Hence in such case, the approach of Wandelt and Möller does not result in any efficiency gain.
The refinement in the present invention is based on semantic criteria, i.e., in the refinement process, an equivalence class is refined only when individuals are semantically distinguishable, which is determined by a reasoner. The refinement may occur, as described here within, in several iterative steps. In contrast, Wandelt and Möller, apart from not having a refinement step altogether, perform the aggregation of individuals to modules only on the basis of syntactic criteria. For example Wandelt and Moller differentiate, when building abstractions, possibly different types of individuals in successor or predecessors roles when determining equivalence classes of individuals. This is not done by the approach according to the present invention. Thus, it could occur that Wandelt and Möller may not combine two individuals into the same abstraction due to some syntactic difference in the occurrence of the individual in concepts and assertions, whereas the approach according to the present invention would at first combine these individuals in the same class and leave these individuals in the same equivalence class if a reasoner cannot distinguish the two on a semantic basis. Thus, the approach according to the present invention may lead to a higher compression rate for the abstract ABox, with the effect that the storage and processing requirements can be reduced.
The procedure sketched in the preceeding section has been implemented in Java. The system relies on a graph database to store the ABoxes and uses an external OWL reasoner for materializing the abstractions.
It can be shown that in typical ontologies with large ABoxes at least within the ALCHOI fragment the number of realized types of the concept materialized ontologies and, consequently, the size of the abstract ABoxes is small and pays off in terms of materialization runtime and resource consumption. Furthermore, it has been analyzed whether it is indeed the case that real-world ontologies have moderately nesting definitions that do not require many refinement steps, where a refinement step is the process of refining the individual types.
For the evaluation ontologies with large ABoxes have been used.
Gazetteer is from the NCBO BioPortal, Coburn is a large bio ontology from the Phenoscape project. Biocaster is the ontology about public health. CNRKB is collected from the Semantic Web portal dedicated to ontology design patterns. LUBM and UOBM refer to the Lehigh University Benchmark and the University Ontology Benchmark. LUBM n (UOBM n) denotes the data set for n universities. Robert is the family ontology of Robert Stevens, which is artificially created to test all features of OWL 2 DL. It has a sophisticated TBox as well as a very diverse and highly connected but small ABox, which is hard for the abstraction-refinement procedure. Although the proposed approach does not target this kind of ontology, it deliberately serves as a worst case example. Other ontologies are collected from various sources, e.g. Financial is from the SEMINTEC project, Food is from a project by the Food and Agriculture Organization. Gazetteer is genuinely within Horn ALEO and the remaining ontologies have been converted to Horn ALCHOI by elimination of not supported axioms. Note that the increase of normalized concepts (AN) in comparison to the original concepts (A) in
In general, the abstract ABoxes are significantly smaller than the original ones and the ontologies can be materialized with few refinement steps except for the Robert ontology. For ontologies with simple TBoxes, which contain mostly atomic concept inclusions, domains and ranges for roles, and conjunctions, only one refinement step is required. This is the case since any concept assertion derived for a successor or predecessor of an abstract individual is also derived for the individual itself. LUBM and UOBM additionally contain universal quantifications, e.g. Department ⊂∀headOf−.Chair (rewritten from ∃headOf.DepartmentChair) but these axioms do not create long propagations of concept assertions over roles. For LUBM, many individuals have similar types and can be grouped into equivalence classes. This results in an extremely good compression with abstractions of nearly constant size for arbitrarily many LUBM universities. For instance, the final abstractions are just 0.38% (for LUBM 1) and 0.003% (for LUBM 100) of the size of the original ABox. This and the fact that no refinement is needed (i.e. concepts are not propagated over chains of successors or predecessors) also explains that other related approaches like SHER and Wandelt's and Moller's approach show a very good performance for in particular LUBM. UOBM, in contrast, also contains nominals and the individuals are more connected than in LUBM. Thus, UOBM requires one more refinement step compared to LUBM. For the Robert ontology, not surprisingly, the abstract ABoxes are even larger than the original ABox. In this ontology, individuals are intendedly defined to be distinguished, e.g. each individual represents a concrete person in Robert's family. Therefore, there are not many individuals of the same asserted types. On the other hand, because of complex and long nested concept definitions in the TBox, e.g. ThirdCousin≡Person∃hasParent. (∃hasParent. (Person∃hasParent.Person∃isSiblingOf (Person♯∃isParentOf. (Person∃isParentOf. (Person∃isParentOf.Person))))) the procedure requires six refinement steps for materialization.
The qualitative performance evaluation confirms the correlation between the size of abstract ABoxes and the total time for the materialization. For an absolute rating the respective materialization times of the original ABoxes has been compared with the overall runtime of the prototypical system using the well-known, Java-based OWL 2 reasoner HermiT (http://www.hermit-reasoner.com) for the original ABoxes as well as external reasoning component (cf. reasoning component 210 in
Lemma 2 guarantees that at every point of the iteration, the abstraction refinement procedure adds only entailed assertions to the ABox A. In other words, the procedure is sound. However, in the general case the described procedure is not complete, i.e., does not compute all entailed atomic assertions, as demonstrated by the following example.
Considering the ABox A={A(a), R(a, b), B(b)} and the TBox T={B⊂ CD, ∃R.C⊂C, AC⊂∀R.D}. It holds that A∪T|=D(b). Computing the materialization using abstraction provides tp(a)=({A}, {R}, Ø) and tp(b)=({B}, Ø, {R}). Therefore B=Btp(a)Btp(b), where Btp(a)={A(xtp(a){R(Xtp(a), ytp(a)R)} and Btp(b){B(Xtp(b)), R(ytp(b)R, xtp(b))}. B∪T does not entail any new atomic concept assertions. Hence, the procedure terminates after the first iteration without producing the entailment A∪T|=D(b).
The primary reason why the method does not work in this example is that the abstraction breaks the ABox into disconnected parts, which cannot communicate the non-deterministic choices, e.g., for the disjunction CD. The only communication between ABoxes happens through the entailment of new assertions. If the ontology language does not allow such non-deterministic constructors, it is possible to obtain a complete procedure. While the results on the previous sections hold for ALCHOI in general (and even extensions thereof), ontologies in this section are restricted to a Horn fragment of ALCHOI: Definition 4 (Horn ALCHOI) An ALCHOI ontology O is Horn if, for every concept assertion D(a) and every axiom CD, the concepts C and D satisfy, respectively, the following grammar definitions:
C(i)::=T|⊥|A|o|C1C2|C1C2|┌R.C. (1)
D(i)::=T|⊥|A|o|D1D2|∃R.D|∀F.D|C. (2)
Intuitively, negations and universal restrictions should not occur negatively, and disjunctions should not occur positively. In the following TBox axioms are allowed that are equivalent to Horn axioms. For example, A∀R.⊥⊂∀S.(BC) is not Horn according to Definition, but is equivalent to the Horn axiom A∃R.T⊂∃S.(BC).
It is a well-known property of Horn languages that every consistent Horn ontology has a so-called canonical model that entails exactly the consequences entailed by the ontology.
For the purpose of the paper, a weaker version of this property is required that speaks only about entailment of atomic concept assertions.
Every consistent Horn ALCHOI ontology 0 has a model I such that I|=A(a) implies O |=A(a) for every atomic concept assertion A(a) with a ∈ ind(O) and A∈con(O).
Theorem 1 can be proved using the property that Horn ALCHOI models are closed under direct products. Then a canonical model is obtained from the direct product of models refuting (finitely many) atomic non-types.
In a first step it is shown that Horn ALCHOI models are closed under direct products. Definition 5 (Direct product of Interpretations). The direct product of interpretations I1=(ΔI1, I1) and I2=(ΔI2, I2) is an interpretation I1×I2=(ΔI1xI2, .I1x12) where ΔI1xI2=ΔI1×ΔI2, AI1×AI2 for A∈NC, oI1xI2={(oI1, oI2)} for o∈NO, RI1xI2{(d1, d2, e1, e2)|(d1, e1)∈RI
Note from Definition 5 that I1×I2|=A(a) if and only if I1|=A(a) and I2|=A(a) for every atomic concept assertion A(a).
Let O be a Horn ALCHOI ontology. Then I1|=O and I2|=O implies I1×I2=O.
Proof First, it is proven by induction that for each C and D defined respectively by (1) and (2), there is CI1xI2⊂CI1xCI2 and DI1×DI2⊂DI1xI2. Cases for T, ⊥, A, o are trivial.
Case C=C1C2. There is CI1xI2=(C1C2)I1xI2=C1I
Case C=C1C2. There is CI1xI2=(C1C2)I1xI2=C1I
Case C=∃R.E. Let d1,d2∈(∃R.E)I
It can be proven that I1×I2O by showing that, for every α∈O, I1×I2α.
This completes the proof of Lemma 3.
Let Φ={A(a)|OA(a), a∈ind(O), A∈con(O)} be the set of atomic concept assertions over the signature of O not entailed by O. Clearly, Φ is a finite set, and for each αi∈Φ, 1≦i≦n=∥Φ∥, one can choose a model IiO such that Iiαi. Let I=I1×(I2× . . . ×(In-1×In)) (if n=1 it is set that I=I1). Then, by Lemma 3, IO. Furthermore, for every A(a)=αi∈Φ, it is that IA(a) since Iiαi. Therefore, if IA(a) for some a∈ind(O) and A∈con(O), then A(a)∉Φ which can only be if OA(a). Hence I is as required by Theorem 1.
Before formulating of the completeness result, there is one small technical problem that needs to be solved as illustrated in the following example.
Consider A={A(a), B(b), R(a, b)} and T={A∃R.B}, which consist of Horn axioms. Clearly, A∪TC(a). A realizes two different individual types: tp(a)=tp1=({A}, {R}, ∅) and tp(b)=tp2=({B}, ∅, {R}), so the abstraction B=Btp
In order to see how to fix this problem, note that Btp
Example 7 suggests that to achieve completeness, it is required to represent existential restrictions on the left hand side of the axioms using new atomic concepts. Note that ∃R.BX is equivalent to B∀R−. X. Thus it is required that there are no existential restrictions on the left hand side of concept inclusions, and all universal restrictions on the right have only atomic concepts as fillers.
Horn ALCHOI axioms D(a) and CD are in normal form if they satisfy the following grammar definitions:
C(i)::=T|⊥|A|o|C1C2|C1C2 (3)
D(i):: =T|⊥|A|o|D1D2|∃R.D|∀R.A|C (4)
Intuitively, in addition to the constraints for Horn ALCHOI ontologies given by (1) and (2) of Definition 4, negative occurrences of existential restrictions are not allowed, and (positive) occurrences of universal restrictions can only have concept names as fillers. It is easy to convert axioms to such a normal form using the well-known structural transformation. Specifically, one can repeatedly replace every existential restriction ∃R.C in (1) with a fresh concept name X and add a new axiom C∀R−.X. Likewise, one can replace every universal restriction ∀R.D in (2) with ∀R.Y for a fresh concept name Y and add an axiom YD. As with Horn axioms, it is required for the axioms in the TBox to be syntactically in the normal form. It is sufficient that they are equivalent to axioms in the normal form the reasoner will still produce the same result. For example, an axiom ∃R.(A1A2)B1B2 can be left untouched because it is equivalent to an axiom A1A2∀R−.B1∀R−.B2 in normal form. Note that the axiom A∀R.BC in T from Example is not equivalent to the pair of axioms ∀R.BX, AXC in T because the latter axioms contain a new symbol X. In fact, A∃R.BC is not equivalent to any axiom(s) in normal form.
The completeness result follows as described in the following:
Theorem 2
Let O=A∪T be a normalized Horn ALCHOI ontology and B the abstraction of A. O is concept materialized if, for every type tp=(tp↓, tp→, tp←), every individual a∈ind(A) with tp(a)=tp, and every atomic concept A, it is that:
(1) B∪T=A(xtp) implies A(a)∈A,
(2) B∪TA(ytpR) and R(a,b)∈A implies A(b)∈A, and
(3) B∪TA(ztpS) and S(c, a)∈A implies A(c)∈A.
To prove Theorem 2, the abstraction B of A is extended with new role assertions R(xtp(a), xtp(b)) for every R(a, b)∈A. Let denote this extended abstract ABox by B′. Since, for every C(a)∈A, it's also the case that C∈tp↓(a) and, thus, C(xtp(a))∈B⊂B′, the mapping h: ind(A)→ind(B′) defined by h(a)=xtp(a) is a homomorphism from A to B′. Therefore, by Lemma 1, if A∪TA(a), then B′∪TA(xtp( a)). The key part of the proof is to demonstrate that in this case also B∪TA(xtp(a)). That is, the extended abstract ABox B′ does not entail new atomic concept assertions compared to B. It follows then that A(a)∈A by condition (1) of the theorem. This implies that O is concept materialized.
To prove that B′ entails the same atomic concept assertions as B, the remaining conditions (2) and (3) of Theorem 2 are used and the canonical model property formulated in Theorem 1. Note that since new role assertions of the form R(xtp(a), xtp(b)) are added to B′ only if R(a, b)∈A, there is R∈tp→(a) and R∈tp←(b) by Definition 2. Therefore, there are already role assertions R(xtp(a), ytp(a)R)∈B and likewise R(ztp(b)R, xtp(b))∈B for the same role R. Furthermore, by condition (2) of Theorem 2, if B∪TA(ytp(a)R), then since R(a, b)∈A, there is A(b)∈A, and thus A(xtp(b))∈B. Likewise, by condition (3), if B∪TA(ztp(b)R), then A(xtp(a))∈B. The following lemma shows that with these properties for B, after adding the new role assertion R(xtp(a), xtp(b)) to B, no new atomic concept assertions can be entailed.
Let O be a normalized Horn ALCHOI ontology such that {R(x1, y1), R(z2, x2)}⊂O for some x1, y1, z2, x2, and R. Further, assume that for every concept name A there is:
(1) OA(y1) implies OA(x2), and
(2) OA(z2) implies OA(x1).
Finally, let O′=O∪{R(x1, x2)}. Then for every concept name A and every individual a, there is O′A(a) implies OA(a).
Suppose that O′A(a). It can be shown that OA(a). If O is inconsistent then this holds trivially. Otherwise, there exists a model Z of O satisfying Theorem 1. From I one cane construct an interpretation I′ such that
ΔI′=ΔI
It can be proven that I′O′, which implies I′A(a) since O′A(a), and thus IA(a) by definition of I′, from which OA(a) follows since I satisfies Theorem. First, by induction it can be proven that for each C and D defined respectively by (3) and (4), there is CI=CI′ and DI⊂DI′. Cases for T, ⊥, A, o are trivial.
Two subcases are considered: ORS or ORS−.
It remains to show that I′O′, where O′=O∪{R(x1,x2)}. Since IO, for every CD∈O there is CT′=CI⊂DI⊂DI′, for every D(a)∈O there is aI′=aI∈DI⊂DI′, and for every R(a,b)∈O there is aI′,bI′=aI,bI∈RI⊂RI′. Finally, The definition of I′ ensures that for every role inclusion SP∈O there is SI′⊂PI′, and that I′R(x1,x2). Thus I′O′.
By repeatedly applying Lemma 4 for each x1=xtp(a), y1=ytp(a)R, x2=xt(b), z2=ztp(b)R and R such that R(a,b)∈A, it is obtained that B′ entails only those atomic assertions that are entailed by By, which completes the proof of Theorem 2.
This section contains theoretical statistical results about the ABox size reduction one can expect when using the abstraction and refinement procedure for concept materialization of ALCHOI ontologies. Given a TBox and a finite set of individuals, we consider all possible random ABoxes (consisting of assertions for these individuals using the concept and roles occurring in the TBox) in order to:
Given a TBox T and a finite set of individual names AI⊂NI, we consider all the possible ABoxes A using only concept and role names occurring in T and individual names of AI (i.e. such that con(A)⊂con(T), rol(A)⊂rol(T) and ind(A)⊂AI). The abstract ABox B of an ABox A uses a fresh individual xt (not occurring in the original ontology) for each abstract type t it defines, as well as fresh individuals yzR and/or ztR for the type and role combinations occurring in B. The abstract ABox B B consists only of assertions of the form C(xt), R(xt, ytR) or R(ztR, xt), hence each assertion in B involves an xt individual.
The abstraction and refinement procedure is complete for concept materialization for ontologies having a Horn normal form equivalent. Having made no assumption about T, a normalization step might be necessary. This step may introduce new atomic concepts for some existential or universal concept expressions in T, hence B may contain more concept assertion for a single individual than A. We note Tn the normalized version of T that will be used with the abstract ABoxes B. Remark: con(Tn)⊃con(T) and rol(Tn)=rol(T).
For readability, we will use the following notation:
The vocabulary of the original ontology allows A·I distinct class assertions of the form C(a) and R·I2 distinct role assertions of the form R(a, b). Therefore the maximum size of the original ABox A is:
maxA=R·I2+A·I
The vocabulary of the abstract ontology allows An distinct class assertions of the form C(xt) and there are (by construction) at most 2 role assertions per abstract type xt and role R, one of the form R(xt, y1R) and one of the form R(ztR, xt). Therefore the maximum size of the abstract ABox B is:
An·X+2·R·X=(An+2·R)·X
As there is at most one abstract type per individual, we have: X≦I. Therefore the size of the abstract ABox B is at most:
maxB=(An+2·R)·I
Remark: Note that this expression only depends on the TBox and the number of considered individuals.
If an ABox A contains more than maxB assertions, then the corresponding abstract ABox B will be smaller.
∥A∥>maxB∥A∥>∥B∥
Remark: Even if an A has less than maxB assertions, B may be smaller.
∥A∥<maxB∥A∥<∥B∥
An original ABox A may contain between 0 to maxA assertions out of the maxA possible assertions. The number of possibilities for choosing k elements from n being given by
the total number of possible original ABoxes is:
Using the binomial theorem:
with n=maxA and x=y=1, we get the number of possible distinct ABoxes:
numA=2maxA=2R·I
Building on the previous observations, the number of original ABoxes with less than maxB assertions is:
There is no closed formula for this general partial sum of the binomial coefficient:
but we can compute an upper bound. We first note that:
So we have:
Multiplying
we get:
and using the binomial theorem:
with n k, x=n and y=1 we obtain:
In our case n=maxA and k=maxB. So we get the following upper bound for the number of ABoxes that may be smaller than their abstraction:
numA<B≦(maxA+1)max
Using the values and bounds from this section as well as the result from the previous section, we can state that the proportion of ABoxes smaller than their abstraction is lower than:
Remark: This proportion tends exponentially towards 0 with the number of individuals in the ontology as soon as 2R·I+A>(R·I2+A·I+1)A
Building on the formula used to count the possible original ABoxes, we can state that the sum of the sizes of all the possible ABoxes is:
From the binomial theorem:
by setting y=1 and differentiating with respect to x, we get:
with x=1 we obtain:
In our case n=maxA, so the sum of the sizes of all the possible ABoxes is:
sumA=(maxA)·2max
Using the number of original ABoxes, we get the following average size:
By dividing the maximum size of the abstract ABox B by the average size of the original ABox A, we get an upper bound for the average ration between the sizes of the two ABoxes. This allows us to compute a lower bound for the size reduction achieved by the abstraction:
Remark: As awaited, the size reduction increases with the number of individuals.
The table in
Number | Date | Country | Kind |
---|---|---|---|
14176027 | Jul 2014 | EP | regional |
Number | Name | Date | Kind |
---|---|---|---|
7716214 | Li | May 2010 | B2 |
7823120 | Kazakov | Oct 2010 | B2 |
7904401 | Dolby | Mar 2011 | B2 |
20070180424 | Kazakov | Aug 2007 | A1 |
20120278273 | Fang | Nov 2012 | A1 |
20160004965 | Liebig | Jan 2016 | A1 |
Number | Date | Country |
---|---|---|
103380426 | Oct 2013 | CN |
Entry |
---|
LiteMat: A scalable, cost-efficient inference encoding scheme for large RDF graphs Olivier Cure; Hubert Naacke; Tendry Randriamalala; Bernd Amann Big Data (Big Data), 2015 IEEE International Conference on Year: 2015 pp. 1823-1830, DOI: 10.1109/BigData.2015.7363955 IEEE Conference Publications. |
Dolby, Julian et al., “Scalable highly expressive reasoned (SHER),” Web Semantics: Science, Services and Agents on the World Wide Web, 7 (2009), 2009, pp. 357-361, Document XP026781943. |
Fokoue, Achille et al., “The Summary Abox: Cutting Ontologies Down to Size,” Proceedings of the 5th International Semantic Web Conference, 2006, Springer, vol. 4273, pp. 343-356, Document XP002733164. |
Kolovski, Vladimir et al., “Optimizing Enterprise-Scale OWL 2 RL Reasoning in a Relational Database System,” The Semantic Web—ISWC 2010, Part I, LNCS 6496, 2010, pp. 436-452, Document XP019159311. |
Wandelt, Sebastian et al., “Towards ABox Modularization of semi-expressive Description Logics,” Applied Ontology, 0 (2012) 1-0, IOS Press, 2012, pp. 1-33, Document XP055155770. |
Extended European Search Report in corresponding European Application No. 14176027.2, dated Dec. 15, 2014, 11 pages. |
Number | Date | Country | |
---|---|---|---|
20160004965 A1 | Jan 2016 | US |