Skip to main content
Log in

Answering Fuzzy Conjunctive Queries Over Finitely Valued Fuzzy Ontologies

  • Original Article
  • Published:
Journal on Data Semantics

Abstract

Fuzzy Description Logics (DLs) provide a means for representing vague knowledge about an application domain. In this paper, we study fuzzy extensions of conjunctive queries (CQs) over the DL \({\mathcal {SROIQ}}\) based on finite chains of degrees of truth. To answer such queries, we extend a well-known technique that reduces the fuzzy ontology to a classical one, and use classical DL reasoners as a black box. We improve the complexity of previous reduction techniques for finitely valued fuzzy DLs, which allows us to prove tight complexity results for answering certain kinds of fuzzy CQs. We conclude with an experimental evaluation of a prototype implementation, showing the feasibility of our approach.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2

Similar content being viewed by others

Notes

  1. http://geneontology.org/.

  2. http://ihtsdo.org/snomed-ct/.

  3. http://www.w3.org/TR/owl2-overview/.

  4. In [41], queries are defined that allow for grouping, aggregation, and ranking. Although we do not consider such queries here, we generalize our basic queries in Sect. 4.3.

  5. Where \((r_1r_2)^\mathcal {I} (x,z):= \sup _{y\in \Delta ^\mathcal {I}}r_1^\mathcal {I} (x,y)\otimes r_2^\mathcal {I} (y,z)\) (cf. Table 3).

  6. Possibly new equality atoms \(a\approx b\) introduced by the instantiation can be connected with a multiplication to the score of the original query (see Example 3).

  7. http://webdiis.unizar.es/~fbobillo/delorean.

  8. PAGOdA version from 23rd of April 2015 commit id: 30b5afef93 in https://github.com/yujiaoz/PAGOdA.

  9. http://swat.cse.lehigh.edu/projects/lubm/.

  10. Note that for answering fuzzy CQs instead of threshold CQs, the runtime will increase by an exponential factor, depending on the number of atoms in the fuzzy CQ.

References

  1. Baader F, Borgwardt S, Peñaloza R (2015) On the decidability status of fuzzy \({\cal ALC}\) with general concept inclusions. Journal of Philosophical Logic 44(2):117–146. doi:10.1007/s10992-014-9329-3

    Article  MathSciNet  MATH  Google Scholar 

  2. Bobillo F (2015) The impact of crispness in fuzzy tractable ontologies: The case of fuzzy OWL 2 EL. IEEE Transactions on Fuzzy Systems doi:10.1109/TFUZZ.2015.2505329. In press

  3. Bobillo F, Delgado M, Gómez-Romero J (2008) Optimizing the crisp representation of the fuzzy Description Logic \({\cal SROIQ\it }\). In: Uncertainty Reasoning for the Semantic Web I, pp. 189–206. Springer

  4. Bobillo F, Delgado M, Gómez-Romero J (2009) Crisp representations and reasoning for fuzzy ontologies. International Journal of Uncertainty, Fuzziness and Knowledge-Based Systems 17(4):501–530. doi:10.1142/S0218488509006121

    Article  MathSciNet  MATH  Google Scholar 

  5. Bobillo F, Delgado M, Gómez-Romero J (2012) DeLorean: A reasoner for fuzzy OWL 2. Expert Systems with Applications 39(1):258–272. doi:10.1016/j.eswa.2011.07.016

    Article  Google Scholar 

  6. Bobillo F, Delgado M, Gómez-Romero J (2013) Reasoning in fuzzy OWL 2 with DeLorean. In: Bobillo F, da Costa PCG, d’Amato C, Fanizzi N, Laskey K, Laskey K, Lukasiewicz T,  Nickles M, Pool M (eds.) Uncertainty Reasoning for the Semantic Web II, Lecture Notes in Computer Science, vol. 7123, pp. 119–138. Springer doi:10.1007/978-3-642-35975-0-7

  7. Bobillo F, Delgado M, Gómez-Romero J, Straccia U (2009) Fuzzy Description Logics under Gödel semantics. International Journal of Approximate Reasoning 50(3):494–514

    Article  MathSciNet  MATH  Google Scholar 

  8. Bobillo F, Delgado M, Gómez-Romero J, Straccia U (2012) Joining Gödel and Zadeh fuzzy logics in fuzzy description logics. International Journal of Uncertainty, Fuzziness and Knowledge-Based Systems 20(4):475–508. doi:10.1142/S0218488512500249

    Article  MathSciNet  MATH  Google Scholar 

  9. Bobillo F, Delgado M, Sanchez-Sanchez JC (2013) Parallel algorithms for fuzzy ontology reasoning. IEEE Transactions on Fuzzy Systems 21(4):775–781. doi:10.1109/TFUZZ.2012.2230266

    Article  Google Scholar 

  10. Bobillo F, Straccia U (2011) Reasoning with the finitely many-valued Łukasiewicz fuzzy Description Logic \({\cal SROIQ}\). Information Sciences 181(4):758–778

    Article  MathSciNet  MATH  Google Scholar 

  11. Bobillo F, Straccia U (2013) Finite fuzzy Description Logics and crisp representations. In: Uncertainty Reasoning for the Semantic Web II, pp. 99–118. Springer

  12. Borgwardt S, Distel F, Peñaloza R (2015) The limits of decidability in fuzzy description logics with general concept inclusions. Artificial Intelligence 218:23–55. doi:10.1016/j.artint.2014.09.001

    Article  MathSciNet  MATH  Google Scholar 

  13. Borgwardt S, Peñaloza R (2013) The complexity of lattice-based fuzzy description logics. Journal on Data Semantics 2(1):1–19

    Article  Google Scholar 

  14. Borgwardt S, Peñaloza R (2014) Consistency reasoning in lattice-based fuzzy description logics. International Journal of Approximate Reasoning 55(9):1917–1938. doi:10.1016/j.ijar.2013.07.006

    Article  MathSciNet  MATH  Google Scholar 

  15. Calvanese D, De Giacomo G, Lenzerini M (1998) On the decidability of query containment under constraints. In: Proceedings of the seventeenth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, pp. 149–158. ACM

  16. Calvanese D, Eiter T, Ortiz, M (2009) Regular path queries in expressive description logics with nominals. In: Boutilier C (ed.) Proc. of the 21st Int. Joint Conf. on Artificial Intelligence (IJCAI’09), pp. 714–720. AAAI Press. http://ijcai.org/papers09/Papers/IJCAI09-124.pdf

  17. Cheng J, Ma Z, Zhang F, Wang X (2009) Deciding query entailment for fuzzy \({\cal SHIN\it }\) ontologies. In: Proceedings of the 4th Asian Conference on The Semantic Web, ASWC ’09, pp. 120–134. Springer

  18. Cheng J, Ma Z, Zhang F, Wang X (2009) Deciding query entailment in fuzzy Description Logic knowledge bases. In: Database and Expert Systems Applications, pp. 830–837. Springer

  19. Cimiano P, Haase P, Ji Q, Mailis T, Stamou G, Stoilos G, Tran DT, Tzouvaras V (2008) Reasoning with large A-Boxes in fuzzy Description Logics using DL reasoners: an experimental evaluation. In: Proceedings of the ESWC Workshop on Advancing Reasoning on the Web: Scalability and Commonsense

  20. Eiter T, Lutz C, Ortiz M, Šimkus M (2009) Query answering in description logics with transitive roles. In: Boutilier C (ed.) Proc. of the 21st Int. Joint Conf. on Artificial Intelligence (IJCAI’09), pp. 759–764. AAAI Press . http://ijcai.org/papers09/Papers/IJCAI09-131.pdf

  21. Glimm B, Horrocks I, Motik B, Stoilos G, Wang Z (2014) HermiT: An OWL 2 reasoner. Journal of Automated Reasoning 53(3):245–269

    Article  MATH  Google Scholar 

  22. Glimm B, Horrocks I, Sattler U (2008) Unions of conjunctive queries in \({\cal SHOQ\it }\). In: Brewka G, Lang J (eds.) Proc. of the 11th Int. Conf. on Principles of Knowledge Representation and Reasoning (KR’08), pp. 252–262. AAAI Press. http://www.aaai.org/Library/KR/2008/kr08-025.php

  23. Guo Y, Pan Z, Heflin J (2005) LUBM: A benchmark for OWL knowledge base systems. Web Semantics: Science, Services and Agents on the World Wide Web 3(2):158–182

    Article  Google Scholar 

  24. Gutiérrez-Basulto V, Ibañez-García Y, Kontchakov R, Kostylev EV (2013) Conjunctive queries with negation over DL-Lite: A closer look. In: Faber W, Lembo D (eds.) Proc. of the 7th Int. Conf. on Web Reasoning and Rule Systems (RR’13), Lecture Notes in Computer Science, vol. 7994, pp. 109–122. Springer-Verlag doi:10.1007/978-3-642-39666-3_9

  25. Horrocks I, Kutz O, Sattler U (2006) The even more irresistible \({\cal SROIQ\it }\). In: Proc. of the 10th International Conference of Knowledge Representation and Reasoning (KR-2006), 6, pp. 57–67

  26. Li Y, Xu B, Lu J, Kang D, Wang P (2005) A family of extended fuzzy Description Logics. In: Computer Software and Applications Conference, vol. 1, pp. 221–226. IEEE

  27. Lutz C (2008) The complexity of conjunctive query answering in expressive description logics. In: Proc. of the 4th Int. Joint Conf. on Automated Reasoning (IJCAR’08), Lecture Notes in Artificial Intelligence, vol. 5195, pp. 179–193. Springer-Verlag doi:10.1007/978-3-540-71070-7_16

  28. Mailis T, Peñaloza R, Turhan AY (2014) Conjunctive query answering in finitely-valued fuzzy description logics. In: Kontchakov R, Mugnier ML (eds.) Proceedings of the 8th International Conference on Web Reasoning and Rule Systems (RR 2014), vol. 8741, pp. 124–139. Springer

  29. Mailis T, Stoilos G, Stamou G (2010) Expressive reasoning with Horn rules and fuzzy Description Logics. Knowledge and Information Systems 25(1):105–136

    Article  Google Scholar 

  30. Straccia, U.: Foundations of Fuzzy Logic and Semantic Web Languages. CRC Press, UK (2013)

  31. Möller R, Neuenstadt C, Özçep ÖL, Wandelt S (2013) Advances in accessing big data with expressive ontologies. In: Timm IJ, Thimm M (eds.) KI 2013: Advances in Artificial Intelligence - 36th Annual German Conference on AI, Koblenz, Germany, September 16-20, 2013. Proceedings, Lecture Notes in Computer Science, vol. 8077, pp. 118–129. Springer (2013)

  32. Pan, J.Z., Stamou, G.B., Stoilos, G., Thomas, E.: Expressive querying over fuzzy DL-Lite ontologies. In: 20th International Workshop on Description Logics (2007)

  33. Rosati R (2007) The limits of querying ontologies. In: Schwentick T, Suciu D (eds.) Proc. of the 11th Int. Conf. on Database Theory (ICDT’07), Lecture Notes in Computer Science, vol. 4353, pp. 164–178. Springer-Verlag (2007). doi:10.1007/11965893_12

  34. Rudolph S, Krötzsch M, Hitzler P (2008) Cheap Boolean role constructors for description logics. In: Hölldobler S, Lutz C,  Wansing H (eds.) Proceedings of the 11th European Conference on Logics in Artificial Intelligence (JELIA’08), Lecture Notes in Computer Science, vol. 5293, pp. 362–374. Springer doi:10.1007/978-3-540-87803-2_30

  35. Simou N, Stoilos G, Tzouvaras V, Stamou GB, Kollias SD (2008) Storing and querying fuzzy knowledge in the Semantic Web. In: 7th International Workshop on Uncertainty Reasoning For the Semantic Web. Karlsruhe, Germany

  36. Stoilos G, Stamou GB (2007) Extending fuzzy description logics for the semantic web. In: Golbreich C, Kalyanpur A, Parsia B (eds.) Proc. of the 3rd Int. Workshop on OWL: Experiences and Directions (OWLED’07), CEUR Workshop Proceedings, vol. 258 http://ceur-ws.org/Vol-258/paper12.pdf

  37. Straccia U (2004) Transforming fuzzy description logics into classical description logics. In: Proc. of the 9th Eur. Conf. on Logics in Artificial Intelligence (JELIA’04), pp. 385–399. Springer

  38. Straccia U (2006) Answering vague queries in fuzzy DL-Lite. In: Proceedings of the 11th International Conference on Information Processing and Management of Uncertainty in Knowledge-Based Systems,(IPMU-06), pp. 2238–2245

  39. Straccia U (2006) Towards top-\(k\) query answering in Description Logics: the case of DL-Lite. In: Logics in Artificial Intelligence, Lecture Notes in Computer Science, pp. 439–451. Springer

  40. Straccia U (2013) Foundations of Fuzzy Logic and Semantic Web Languages. CRC Press, USA

    MATH  Google Scholar 

  41. Straccia U (2014) On the top-k retrieval problem for ontology-based access to databases. In: Flexible Approaches in Data, Information and Knowledge Management, pp. 95–114. Springer

  42. Zhou Y, Grau BC, Nenov Y, Horrocks I (2015) PAGOdA: Pay-as-you-go ABox reasoning. In: Calvanese D, Konev B (eds.) Proceedings of the 28th International Workshop on Description Logics., CEUR Workshop Proceedings, vol. 1350. CEUR-WS.org

  43. Zhou Y, Nenov Y, Grau BC, Horrocks I (2014) Pay-as-you-go OWL query answering using a triple store. In: Proc. of the 28th AAAI Conf. on Artificial Intelligence (AAAI’14), pp. 1142–1148. AAAI Press (2014). http://www.aaai.org/ocs/index.php/AAAI/AAAI14/paper/view/8232

Download references

Acknowledgments

This work was partially supported by the German Research Foundation (DFG) under the research Grant BA 1122/17-1 (FuzzyDL), the Collaborative Research Center 912 “Highly Adaptive Energy-Efficient Computing,” and the Cluster of Excellence “Center for Advancing Electronics Dresden”; it was developed while R. Peñaloza was affiliated with TU Dresden and the Center for Advancing Electronics Dresden, Germany. We also want to thank Fernando Bobillo for providing us with a binary of the DeLorean system, and the anonymous reviewers for their valuable comments on earlier drafts of this paper.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Stefan Borgwardt.

Appendices

Appendix

Proof of Theorem 12

Table 7 depicts the reduction rules for transforming a \({\mathscr {C}}\)-\({\mathcal {SROIN}}\) ontology \(\mathcal {O}\) into a classical \({\mathcal {SROIN}}\) ontology \(\mathcal {O} _\mathsf {c} \). In this table, we use the notation

$$\begin{aligned} {\ominus ^-}(d) := \max \{d'\in {\mathscr {C}} \mid \ominus d'\geqslant d\}. \end{aligned}$$

Likewise, we define \({\otimes ^-}(d)\) as the set of all pairs \((d_1,d_2)\in {\mathscr {C}} ^2\) that satisfy \(d_1\otimes d_2\geqslant d\) and are minimal w.r.t. the component-wise ordering on \({\mathscr {C}} ^2\). This means that all elements of \({\otimes ^-}(d)\) are incomparable, i.e., for all \((d_1,d_2),(d_1',d_2')\in {\otimes ^-}(d)\) we have either \(d_1>d_1'\) and \(d_2<d_2'\) or vice versa. The set \({\oplus ^-}(d)\) is defined analogously. For the implication, we need a slightly different definition, characterizing all pairs of elements whose implication does not exceed a specified value d. More precisely, we define \({\Rightarrow ^-}(d)\) as the set of all \((d_1,d_2)\in {\mathscr {C}} ^2\) satisfying \(d_1\Rightarrow d_2<d\), and minimize here w.r.t. the first component and maximize w.r.t. the second component since \(\Rightarrow \) is antitone in the first argument and monotone in the second argument.

Table 7 Mapping of concepts, roles, and axioms to classical \({\mathcal {SROIN}}\)

Note that all expressions of the form \(>d\) in Table 7 are well defined since we have \(d<1\) in all such cases. In particular, it holds that \({\ominus ^-}(d)<1\) whenever \(d>0\), and \(d_2<1\) for all \((d_1,d_2)\in {\Rightarrow ^-}(d)\). We can now prove Theorem 12. In the following, let \(\mathcal {O}\) be an arbitrary (not necessarily normalized) ontology in \({\mathscr {C}}\)-\({\mathcal {SROIN}}\), and \(\mathcal {O} _\mathsf {c} \) be its reduced form according to Table 7.

1.1 Soundness

Consider first a classical model \(\mathcal {J}\) of \(\mathcal {O} _\mathsf {c} \). We construct a fuzzy interpretation \(\mathcal {I}\), with the goal of showing that \(\mathcal {I}\) is a model of \(\mathcal {O}\), as follows (for all \(x,y\in \Delta ^{\mathcal {J}}\), \(a\in \mathsf{N_I} \), \(A\in \mathsf{N_C} \), \(r\in \mathsf{N_R} \), and \(d\in {\mathscr {C}} \)):

$$\begin{aligned}&\Delta ^{\mathcal {I}} :=\Delta ^{\mathcal {J}} \\&a^\mathcal {I}:=a^\mathcal {J} \\&A^{\mathcal {I}}\left( x\right) :=\max \big \{ {d}\mid x\in A_{\geqslant {d}}^{\mathcal {J}}\big \} \\&r^{\mathcal {I}}\left( x,y\right) :=\max \big \{ {d}\mid (x,y)\in r_{\geqslant {d}}^{\mathcal {J}}\big \} \end{aligned}$$

To show that \(\mathcal {I} \) is a model of \(\mathcal {O} \), we first prove the following proposition:

Proposition 19

Let C be a concept, r a role, \(x,y\in \Delta ^\mathcal {I} \), and \(d\in {\mathscr {C}} _>0\). Then, we have

$$\begin{aligned}&{C}^{\mathcal {I}}\left( x\right) \geqslant {d} \text { iff } x\in \rho \left( C,\geqslant {d}\right) ^\mathcal {J} \text { and}\\&{r}^{\mathcal {I}}\left( x,y\right) \geqslant {d} \text { iff } (x,y)\in \rho \left( r,\geqslant {d}\right) ^{\mathcal {J}}. \end{aligned}$$

Proof

For role names r, the claim holds by the construction of \(r^\mathcal {I} \) and the fact that \(r_{\geqslant d_{\mathrm{next}}}\sqsubseteq r_{\geqslant d}\) is contained in \(\mathcal {O} _\mathsf {c} \) for every \(d\in {\mathscr {C}} _{<1}\). For the universal role u, the equivalence trivially holds since we have that \((x,y)\in u^\mathcal {J} \) and \(u^\mathcal {I} (x,y)=1\). Finally, for inverse roles it is an immediate consequence of the facts that \((r^{-})^\mathcal {I} (x,y)=\) \(r^\mathcal {I} (y,x)\), and \((x,y)\in (r_{\geqslant d}^-)^\mathcal {J} \) iff \((y,x)\in r_{\geqslant d}^\mathcal {J} \).

The rest of the proposition is proved by induction on the structure of C. For concept names A, the equivalence holds by the definition of \(A^\mathcal {I} \) and the fact that \(A_{\geqslant d_{\mathrm{next}}}\sqsubseteq A_{\geqslant d}\) is in \(\mathcal {O} _\mathsf {c} \) for every \(d\in {\mathscr {C}} _{<1}\). For the induction step, we consider all possible concept constructors:

Top Concept: The proof for this case is an immediate consequence of the facts that \(\top ^\mathcal {I} (x)=1\), \(\rho (\top ,\geqslant d)=\top \), and \(\top ^\mathcal {J} =\Delta ^\mathcal {J} =\Delta ^\mathcal {I} \).

Bottom Concept: For bottom, we have \(\bot ^\mathcal {I} (x)=0\), \(\rho (\bot ,\geqslant d)=\bot \), and \(\bot ^\mathcal {J} =\emptyset \).

Concept Negation: We have that \(x \in \rho (\lnot C,\geqslant d)^\mathcal {J} \) holds if and only if \(x \notin \rho (C,>{\ominus ^-}(d))^\mathcal {J} \). By the induction hypothesis, this is equivalent to \(C^\mathcal {I} (x)\leqslant \max \{d'\in {\mathscr {C}} \mid \ominus d'\geqslant d\}\). Since \(\ominus \) is antitone, this is finally equivalent to \((\lnot C)^\mathcal {I} (x)=\ominus C^\mathcal {I} (x)\geqslant d\).

Concept Conjunction: If \(C_1^\mathcal {I} (x)\otimes C_2^\mathcal {I} (x)\geqslant {d}\), then by the definition of \({\otimes ^-}(d)\) there is at least one pair \((d_1,d_2)\in {\otimes ^-}(d)\) such that \(C_1^\mathcal {I} (x)\geqslant d_1\) and \(C_2^\mathcal {I} (x)\geqslant d_2\). Since \(d>0\), we also know that \(d_1>0\) and \(d_2>0\). Thus, by the induction hypothesis we have

$$\begin{aligned} x\in \big (\rho (C_1,\geqslant {d_1})\sqcap \rho (C_2,\geqslant {d_2})\big )^\mathcal {J} \subseteq \rho (C_1\sqcap C_2,\geqslant d)^\mathcal {J}. \end{aligned}$$

Conversely, suppose that \(x\in (\rho (C_1,\geqslant d_1)\sqcap \rho (C_2,\geqslant d_2))^\mathcal {J} \) holds for some \((d_1,d_2)\in {\otimes ^-}(d)\). Then, by induction hypothesis, \(C_1^\mathcal {I} (x)\geqslant {d_1}\) and \(C_2^\mathcal {I} (x)\geqslant {d_2}\). Because of the monotonicity of \(\otimes \) we then get that \(C_1^\mathcal {I} (x)\otimes C_2^\mathcal {I} (x)\geqslant d_1\otimes d_2\geqslant d\), as we wanted to show.

The proof for disjunction is similar to the proof for conjunction.

Existential Restriction: Suppose that \((\exists r. C)^\mathcal {I} (x)\geqslant {d}\). Since \({\mathscr {C}}\) is finite, there must exist some \(y\in \Delta ^\mathcal {I} \) with \(r^\mathcal {I} (x,y)\otimes C^\mathcal {I} (y)\geqslant {d}\). We have \(r^\mathcal {I} (x,y)\geqslant {d_1}\) and \(C^\mathcal {I} (y)\geqslant {d_2}\) for some \(({d_1},{d_2})\in {\otimes ^-}(d)\). By induction, we get \((x,y)\in \rho (r,\geqslant {d_1})^\mathcal {J} \) and \(y\in \rho (C,\geqslant {d_2})^\mathcal {J} \). Therefore,

$$\begin{aligned} x \in \big (\exists \rho (r,\geqslant {d_1}).\rho (C,\geqslant {d_2}) \big )^\mathcal {J} \subseteq \rho (\exists r .C, \geqslant {d})^\mathcal {J}. \end{aligned}$$

Conversely, suppose that \(x\in (\exists \rho (r,\geqslant {d_1}).\rho (C,\geqslant {d_2}))^\mathcal {J} \) for some pair \(({d_1},{d_2})\in {\otimes ^-}(d)\). Thus, there exists y with \((x,y)\in \rho (r,\geqslant {d_1})^\mathcal {J} \) and \(y \in \rho (C,\geqslant {d_2})^\mathcal {J} \). By induction, we have that \(r^\mathcal {I} (x,y)\geqslant d_1\) and \(C^\mathcal {I} (y)\geqslant d_2\), and therefore

$$\begin{aligned} (\exists r.C)^\mathcal {I} (x) \geqslant r^\mathcal {I} (x,y)\otimes C^\mathcal {I} (y) \geqslant d_1\otimes d_2 \geqslant d. \end{aligned}$$

Universal Restriction: If \((\forall r.C)^\mathcal {I} (x)\geqslant d\), then for all \(y\in \Delta ^\mathcal {I} \) we have \(\big (r^\mathcal {I} (x,y)\Rightarrow C^\mathcal {I} (y)\big )\geqslant {d}\). Consider any \(y\in \Delta ^\mathcal {I} \) and \((d_1,d_2)\in {\Rightarrow ^-}(d)\) with \(r^\mathcal {I} (x,y)\geqslant d_1\). If \(C^\mathcal {I} (y)\leqslant d_2\), then we immediately get that

$$\begin{aligned} r^\mathcal {I} (x,y)\Rightarrow C^\mathcal {I} (y) \leqslant d_1\Rightarrow d_2 < d, \end{aligned}$$

which contradicts our assumption. Thus, we must have \(C^\mathcal {I} (y)>d_2\), and hence \(x\in \big (\forall \rho (r,\geqslant d_1).\rho (C,>d_2)\big )^\mathcal {J} \) by the induction hypothesis (as \(d_1>0\)). As this argument applies to all pairs \((d_1,d_2)\in {\Rightarrow ^-}(d)\), we obtain \(x\in \rho (\forall r.C,\geqslant d)^\mathcal {J} \), as required.

For the opposite direction, assume that \((\forall r.C)^\mathcal {I} (x)<d\). Then there must be a \(y\in \Delta ^\mathcal {I} \) such that \(r^\mathcal {I} (x,y)\Rightarrow C^\mathcal {I} (y)<d\). By the definition of \({\Rightarrow ^-}(d)\), we can find a pair \((d_1,d_2)\in {\Rightarrow ^-}(d)\) with \(r^\mathcal {I} (x,y)\geqslant d_1\) and \(C^\mathcal {I} (y)\leqslant d_2\). Since \(d_1>0\), the induction hypothesis yields that \((x,y)\in \rho (r,\geqslant d_1)^\mathcal {J} \) and \(y\notin \rho (C,>d_2)^\mathcal {J} \). But then, this implies that \(x\notin \rho (\forall r.C,\geqslant d)^\mathcal {J} \).

Nominals: Consider the case where \(C=\{d_1/o_1,\ldots ,d_m/o_m\}\) such that \(o_1,\dots ,o_m\in \mathsf{N_I} \) and \(d_1,\ldots d_m\in {\mathscr {C}}_{>0} \). Then, \(C^\mathcal {I} (x)\geqslant {d}\) iff \(x=o_i^\mathcal {I} \) for some \(i\in \{1,\dots ,m\}\) with \(d_i\geqslant {d}\), which in turn is equivalent to

$$\begin{aligned} x \in \{o_i^\mathcal {I} \mid d_i\geqslant d,\ i\in \{1,\dots ,m\}\} = \rho (C,\geqslant {d})^\mathcal {J}. \end{aligned}$$

Unqualified Number Restrictions: The fact that \(({\ge }m\,r)^\mathcal {I} (x)\geqslant d\) is equivalent to the existence of m different elements \(y_1,\dots ,y_m\in \Delta ^\mathcal {I} \) such that \(r^\mathcal {I} (x,y_i)\geqslant d\) holds for all \(i\in \{1,\dots ,m\}\). This is in turn equivalent to the existence of such \(y_i\) with \((x,y_i)\in \rho (r,\geqslant d)^\mathcal {J} \) for all i, and hence to \(x\in ({\ge }m\,\rho (r,\geqslant d))^\mathcal {J} \).

The proof for unqualified at-most restrictions can be obtained by a combination of previous arguments for \({\ge }m\,r \) and \(\lnot C\).

Local Reflexivity: We have \((\exists r.\text {Self})^\mathcal {I} (x)\geqslant {d}\) iff \(r^\mathcal {I} (x,x)\geqslant {d}\), which is equivalent to \((x,x)\in \rho (r,\geqslant {d})^\mathcal {J} \), and to \(x\in (\exists \rho (r,{\geqslant {d}}).\text {Self})^\mathcal {J} \). \(\square \)

To finish the proof of the first direction of Theorem 12, it remains to show the following lemma.

Lemma 20

If \(\mathcal {J}\) is a classical model of \(\mathcal {O} _\mathsf {c} \), then \(\mathcal {I}\) is a fuzzy model of \(\mathcal {O}\).

Proof

We need to show that \(\mathcal {I}\) satisfies all axioms in \(\mathcal {O} \):

Concept Assertions: Suppose that \(\mathcal {O} \) contains the concept assertion \(C(a)\geqslant d\), and thus \(\mathcal {O} _\mathsf {c} \) contains the \(\rho (C,\geqslant {d})(a)\). Since \(\mathcal {J} \) is a model of \(\mathcal {O} _\mathsf {c} \), we have \(a^\mathcal {J} \in \rho (C,\geqslant d)^\mathcal {J} \), and by Proposition 19 that \(C^\mathcal {I} (a^\mathcal {I})\geqslant d\). Similarly, for an assertion \(C(a)\leqslant d\) in \(\mathcal {O}\), we have \(a^\mathcal {J} \notin \rho (C,>d)^\mathcal {J} \), and thus \(C^\mathcal {I} (a^\mathcal {I})\leqslant d\).

Other ABox Axioms: The proof for role assertions can be obtained by adapting the proof for concept assertions. Axioms of the form \(a\ne b\), \(a=b\) are trivially satisfied since \(\Delta ^\mathcal {I} =\Delta ^\mathcal {J} \) and for every individual \(a\in \mathsf{N_I} \) we have \(a^\mathcal {I} =a^\mathcal {J} \).

Concept Inclusions: Suppose that our ontology contains the concept inclusion \(\langle C\sqsubseteq D \geqslant d\rangle \) and assume that there is a \(x\in \Delta ^\mathcal {I} \) such that \(C^\mathcal {I} (x)\Rightarrow D^\mathcal {I} (x)<d\). Thus, there exists a pair \((d_1,d_2)\in {\Rightarrow ^-}(d)\) such that \(C^\mathcal {I} (x)\geqslant d_1\) and \(D^\mathcal {I} (x)\leqslant d_2\). Since \(d_1>0\), Proposition 19 yields \(x\in \rho (C,\geqslant d_1)^\mathcal {J} \) and \(x\notin \rho (D,>d_2)^\mathcal {J} \), which contradicts the fact that \(\mathcal {J}\) satisfies \(\rho (C,\geqslant d_1)\sqsubseteq \rho (D,>d_2)\).

Role Inclusions: Suppose that our ontology contains the role inclusion \(\langle r_1r_2\sqsubseteq r\geqslant d\rangle \) and it holds that

$$\begin{aligned} \big (r_1^\mathcal {I} (x,y)\otimes r_2^\mathcal {I} (y,z)\big ) \Rightarrow r^\mathcal {I} (x,z) < d, \end{aligned}$$

or equivalently,

$$\begin{aligned} r_1^\mathcal {I} (x,y)\Rightarrow \big (r_2^\mathcal {I} (y,z)\Rightarrow r^\mathcal {I} (x,z)\big ) < d, \end{aligned}$$

for some \(x,y,z\in \Delta ^\mathcal {I} \). Then, there exist \((d_1,d')\in {\Rightarrow ^-}(d)\) such that \(r_1^\mathcal {I} (x,y)\geqslant d_1\) and \(r_2^\mathcal {I} (y,z)\Rightarrow r^\mathcal {I} (x,z)\leqslant d'\). The latter implies the existence of \((d_2,d_3)\in {\Rightarrow ^-}(d'_{\mathrm{next}})\) with \(r_2^\mathcal {I} (y,z)\geqslant d_2\) and \(r^\mathcal {I} (x,z)\leqslant d_3\). Proposition 19 yields that \((x,y)\in \rho (r_1,\geqslant d_1)^\mathcal {J} \), \((y,z)\in \rho (r_2,\geqslant d_2)^\mathcal {J} \), and \((x,z)\notin \rho (r_3,>d_3)^\mathcal {J} \), which contradicts the fact that \(\mathcal {J}\) satisfies \(\rho (r_1,\geqslant d_1)\rho (r_2,\geqslant d_2)\sqsubseteq \rho (r,>d_3)\).

Disjoint Role Axioms: Suppose that our ontology contains the axiom \(\text {dis}(r_1,r_2)\). We show that for all \(x,y\in \Delta ^\mathcal {I} \), either \(r_1^\mathcal {I} (x,y)=0\) or \(r_2^\mathcal {I} (x,y)=0\). Since \(\mathcal {J}\) satisfies \(\mathcal {O} _\mathsf {c} \), \(\rho (r_1,>0)^\mathcal {J} \cap \rho (r_2,>0)^\mathcal {J} =\emptyset \). By Proposition 19, there can be no pair \(x,y\in \Delta ^\mathcal {I} \) such that \(r_1^\mathcal {I} (x,y)>0\) and \(r_2^\mathcal {I} (x,y)>0\), as we wanted to show.

The proofs for the other role axioms are similar.\(\square \)

1.2 Completeness

Conversely, we consider a fuzzy model \(\mathcal {I}\) of \(\mathcal {O}\), and define the classical interpretation \(\mathcal {J}\) as follows (for all \(x,y\in \Delta ^{\mathcal {I}}\), \(a\in \mathsf{N_I} \), \(A\in \mathsf{N_C} \), \(r\in \mathsf{N_R} \), and \(d\in {\mathscr {C}}_{>0} \)):

$$\begin{aligned}&\Delta ^{\mathcal {J}} := \Delta ^{\mathcal {I}} \\&a^\mathcal {J} \nonumber := a^\mathcal {I} \\&A_{\geqslant {d}}^{\mathcal {J}}:=\{x\mid A^{\mathcal {I}}\left( x\right) \geqslant d \}\\&r_{\geqslant {d}}^{\mathcal {J}} := \{(x,y)\mid r^{\mathcal {I}}\left( x,y\right) \geqslant d\} \end{aligned}$$

We again prove a connection similar to the one of Proposition 19.

Proposition 21

Let C be a concept, r a role, \(x,y\in \Delta ^\mathcal {I} \), and \(d\in {\mathscr {C}} _>0\). Then, we have

$$\begin{aligned}&x\in \rho \left( C,\geqslant {d}\right) ^\mathcal {J} \text { iff } {C}^{\mathcal {I}}\left( x\right) \geqslant {d} \ \text { and}\\&(x,y)\in \rho \left( r,\geqslant {d}\right) ^{\mathcal {J}}\text { iff } {r}^{\mathcal {I}}\left( x,y\right) \geqslant {d}. \end{aligned}$$

Proof

The proof is nearly the same as for Proposition 19, the only difference being the induction base cases. But it is easy to show the claim for concept and role names, given the definition of \(\mathcal {J}\).\(\square \)

Lemma 22

If \(\mathcal {I}\) is a fuzzy model of \(\mathcal {O}\), then \(\mathcal {J}\) is a classical model of \(\mathcal {O} _\mathsf {c} \).

Proof

We need to show that \(\mathcal {J}\) satisfies all axioms in \(\mathcal {O} _\mathsf {c} \):

Concept Assertions: Suppose that \(\mathcal {O} _\mathsf {c} \) contains the concept assertion \(\rho (C,\geqslant {d})(a)\). By the construction of \(\mathcal {O} _\mathsf {c} \), \(C(a)\geqslant d\) appears in \(\mathcal {O} \). Since \(\mathcal {I} \) is a model of \(\mathcal {O} \), we have \(C^\mathcal {I} (a)\geqslant d\), and by Proposition 21 we get \(a^\mathcal {J} \in \rho (C,\geqslant d)^\mathcal {J} \), as we wanted to show.

If \(\mathcal {O} _\mathsf {c} \) contains an assertion \(\lnot \rho (C,> {d})(a)\), then \(C(a)\leqslant d\) appears in \(\mathcal {O} \) and consequently \(C^\mathcal {I} (a)\leqslant d\). By Proposition 21, we have that \(a\not \in \rho (C,>d)^\mathcal {J} \), as we wanted to show.

Other ABox Axioms: The proof for role assertions can be obtained by adapting the proof for concept assertions. Axioms of the form \(a\ne b\), \(a=b\) are trivially satisfied since \(\Delta ^\mathcal {I} =\Delta ^\mathcal {J} \) and for every individual \(a\in \mathsf{N_I} \) we have \(a^\mathcal {I} =a^\mathcal {J} \).

Concept Inclusions: Suppose that our ontology contains a concept inclusion \(\rho (C,\geqslant d_1)\sqsubseteq \rho (D,>d_2)\) that is not satisfied. Thus, there exists some \(x\in \Delta ^\mathcal {J} \) such that \(x\in \rho (C,\geqslant d_1)^\mathcal {J} \) and \(x\not \in \rho (D,> d_2)^\mathcal {J} \) and, by Proposition 21, \(C^\mathcal {I} (x)\geqslant d_1\) and \(D^\mathcal {I} (x)\leqslant d_2\). By the construction of \(\mathcal {O} _\mathsf {c} \), we have \(\langle C\sqsubseteq D \geqslant d\rangle \) in \(\mathcal {O}\) and \((d_1\Rightarrow d_2)< d\) for some \(d\in {\mathscr {C}}_{>0} \). By the properties of \(\Rightarrow \), we get \(C^\mathcal {I} (x)\Rightarrow D^\mathcal {I} (x)\leqslant d_1\Rightarrow d_2<d\), which contradicts our assumption that \(\mathcal {I}\) is a model of \(\mathcal {O}\).

All concept inclusions of the form \(A_{\geqslant d_{\mathrm{next}}}\sqsubseteq A_{\geqslant d}\) are trivially satisfied by the construction of \(\mathcal {J} \).

Role Inclusions: Assume that a role inclusion

$$\begin{aligned} \rho (r_1,\geqslant d_1)\rho (r_2,\geqslant d_2)\sqsubseteq \rho (r,>d_3) \in \mathcal {O} _\mathsf {c} \end{aligned}$$

is violated, i.e., there are three elements \(x,y,z\in \Delta ^\mathcal {J} \) such that we have \((x,y)\in \rho (r_1,\geqslant d_1)^\mathcal {J} \), \((y,z)\in \rho (r_2,\geqslant d_2)^\mathcal {J} \), and \((x,z)\not \in \rho (r,> d_3)^\mathcal {J} \). Proposition 21 implies that:

$$\begin{aligned} r_1^\mathcal {I} (x,y)&\geqslant d_1,\quad&r_2^\mathcal {I} (y,z)&\geqslant d_2,\quad&r(x,z)&\leqslant d_3. \end{aligned}$$
(8)

By construction of \(\mathcal {O} _\mathsf {c} \), we have that \(\langle r_1r_2\sqsubseteq r\geqslant d\rangle \in \mathcal {O} \), \((d_1\Rightarrow d')<d\), and \((d_2\Rightarrow d_3)<d'_{\mathrm{next}}\) for some \(d,d'\in {\mathscr {C}}_{>0} \). We obtain

$$\begin{aligned} \big (d_1\Rightarrow (d_2\Rightarrow d_3)\big ) \leqslant (d_1\Rightarrow d') < d, \end{aligned}$$

and hence \(\big ((d_1\otimes d_2)\Rightarrow d_3\big ) < d\).

Along with (8) and the monotonicity and antitonicity properties of the operators \(\otimes \) and \(\Rightarrow \), this implies that

$$\begin{aligned} \left( \left( r_1^\mathcal {I} (x,y)\otimes r_2^\mathcal {I} (y,z)\right) \Rightarrow r^\mathcal {I} (x,z)\right) <d \end{aligned}$$

which is absurd since \(\mathcal {I} \) is a model of \(\mathcal {O} \) and \(\langle r_1r_2\sqsubseteq r\geqslant d\rangle \in \mathcal {O} \).

All role inclusions of the form \(r_{\geqslant d_{\mathrm{next}}}\sqsubseteq r_{\geqslant d}\) are trivially satisfied by the construction of \(\mathcal {J} \).

Disjoint Role Axioms: Suppose that \(\mathcal {O} _\mathsf {c} \) contains the disjoint role axiom \(\text {dis}(\rho (r_1,>0),\rho (r_2,>0))\). By construction of \(\mathcal {O} _\mathsf {c} \), we also have that \(\text {dis}(r_1,r_2)\in \mathcal {O} \), and therefore either \(r_1(x,y)=0\) or \(r_2(x,y)=0\) for all \(x,y\in \Delta ^\mathcal {I} \). Proposition 21 now implies that the axiom

$$\begin{aligned} \text {dis}(\rho (r_1,>0),\rho (r_2,>0)) \end{aligned}$$

is satisfied.

The proofs for the other role axioms are similar.\(\square \)

Proof of Lemma 13

To determine the size of \(\mathcal {O} _\mathsf {c} \) for a normalized \({\mathscr {C}}\)-\({\mathcal {SROIN}}\) ontology \(\mathcal {O}\), we start by analyzing the size of the sets \({\otimes ^-}(d)\), \({\oplus ^-}(d)\) and \({\Rightarrow ^-}(d)\) (defined in the beginning of the proof of Theorem 12). It is clear that for every \(d_1\in {\mathscr {C}} \) there can be at most one element \(d_2\in {\mathscr {C}} \) such that \((d_1,d_2)\) is contained in any of these sets. This is due to the minimization conditions in their definitions. Thus, the size of these sets is at most linear in the size of \({\mathscr {C}}\). Consequently, the size of any expression of the form \(\rho (C,\geqslant d)\), where C is a complex concept that contains only one concept constructor, is at most linear in the sizes of C and \({\mathscr {C}}\) (cf. Table 7).

Since \(\mathcal {O}\) is normalized, ABox axioms contain no complex concepts, and hence the size of \(\kappa (\alpha )\) for any such axiom \(\alpha \) is the same as the size of \(\alpha \).

Consider now a GCI \(\alpha :=\langle C\sqsubseteq D\geqslant d\rangle \) and its reduced form, containing a GCI \(\rho (C,\geqslant d_1)\sqsubseteq \rho (D,>d_2)\) for each pair \((d_1,d_2)\in {\Rightarrow ^-}(d)\). Since \(\alpha \) contains at most one concept constructor, the size of each reduced axiom is linear in the sizes of \(\alpha \) and \({\mathscr {C}}\). Moreover, there are at most linearly many such axioms (in the size of \({\mathscr {C}}\)), bringing the total size of \(\kappa (\alpha )\) to at most linear in the size of \(\alpha \) and quadratic in the size of \({\mathscr {C}}\).

Likewise, for a role inclusion \(\alpha :=\langle r_1r_2\sqsubseteq r\geqslant d\rangle \) the number of pairs \((d_1,d')\in {\Rightarrow ^-}(d)\) is linear in the size of \({\mathscr {C}}\), and for each of these pairs we additionally have to consider linearly many pairs of the form \((d_2,d_3)\in {\Rightarrow ^-}(d'_{\mathrm{next}})\). Thus, the same bounds are valid for role inclusions. The proof for the remaining role axioms is trivial.

In summary, the total size of \(\mathcal {O} _\mathsf {c} \) is bounded linearly in the size of \(\mathcal {O}\) and quadratically in the size of \({\mathscr {C}}\). \(\square \)

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Borgwardt, S., Mailis, T., Peñaloza, R. et al. Answering Fuzzy Conjunctive Queries Over Finitely Valued Fuzzy Ontologies. J Data Semant 5, 55–75 (2016). https://doi.org/10.1007/s13740-015-0055-y

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s13740-015-0055-y

Keywords

Navigation