Abstract
We investigate the data exchange from relational databases to RDF graphs inspired by R2RML with the addition of target shape schemas capturing fragments of SHACL and ShEx. We study the problems of consistency i.e., checking that every source instance admits a solution, and certain query answering i.e., finding answers present in every solution. We identify the class of constructive relational to RDF data exchange that uses IRI constructors and full tgds (with no existential variables) in its source to target dependencies. We show that the consistency problem is coNP-complete. We introduce the notion of universal simulation solution that allows to compute certain query answers to any class of queries that is robust under simulation. One such class are nested regular expressions (NREs) that are forward i.e., do not use the inverse operation. Using universal simulation solution renders tractable the computation of certain answers to forward NREs (data-complexity).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
This was called absolute consistency in [9].
References
Abiteboul, S., Hull, R., Vianu, V.: Foundations of Databases. Addison-Wesley, Boston (1995)
Amano, S., David, C., Libkin, L., Murlak, F.: XML schema mappings: data exchange and metadata management. J. ACM 61(2), 12:1–12:48 (2014)
Arenas, M., Barceló, P., Reutter, J.L.: Query languages for data exchange: beyond unions of conjunctive queries. Theory Comput. Syst. 49(2), 489–564 (2011)
Arenas, M., Bertails, A., Prud’hommeaux, E., Sequeda, J.: A direct mapping of relational data to RDF. W3C Recomm. 27, 1–11 (2012)
Arenas, M., Libkin, L.: XML data exchange: consistency and query answering. J. ACM 55(2), 7:1–7:72 (2008)
Auer, S., Feigenbaum, L., Miranker, D., Fogarolli, A., Sequeda, J.: Use cases and requirements for mapping relational databases to RDF, W3C (2010)
Barceló, P., Pérez, J., Reutter, J.L.: Schema mappings and data exchange for graph databases. In: International Conference on Database Theory (ICDT), pp. 189–200 (2013)
Bienvenu, M., Ortiz, M., Simkus, M.: Regular path queries in lightweight description logics: complexity and algorithms. J. Artif. Intell. Res. 53, 315–374 (2015)
Bojańczyk, M., Kołodziejczyk, L.A., Murlak, F.: Solutions in XML data exchange. J. Comput. Syst. Sci. 79(6), 785–815 (2013)
Boneva, I., Bonifati, A., Ciucanu, R.: Graph data exchange with target constraints. In: EDBT/ICDT Workshops (GraphQ), pp. 171–176 (2015)
Boneva, I., Labra Gayo, J.E., Prud’hommeaux, E.G.: Semantics and validation of shapes schemas for RDF. In: International Semantic Web Conference (ISWC), pp. 104–120 (2017)
Boneva, I., Lozano, J., Staworko, S.: Relational to RDF data exchange in presence of a shape expression schema. In: Alberto Mendelzon International Workshop (AMW) (2018)
Boneva, I., Lozano, J., Staworko, S.: ShERML: mapping relational data to RDF. In: ISWC Satellite Tracks, pp. 213–216 (2019)
Boneva, I., Staworko, S., Lozano, J.: Consistency and certain answers in relational to RDF data exchange with shape constraints. Technical report. arXiv:2003.13831, April 2020
Calì, A., Gottlob, G., Lukasiewicz, T.: A general datalog-based framework for tractable query answering over ontologies. J. Web Semant. 14, 57–83 (2012)
Calvanese, D., Eiter, T., Ortiz, M.: Answering regular path queries in expressive description logics via alternating tree-automata. Inf. Comput. 237, 12–55 (2014)
Corman, J., Reutter, J.L., Savkovic, O.: Semantics and validation of recursive SHACL. In: International Semantic Web Conference, pp. 318–336 (2018)
Das, S., Sundara, S., Cyganiak, R.: R2RML: RDB to RDF mapping language. W3C Recomm. (2011). https://www.w3.org/TR/r2rml/
Fagin, R., Kolaitis, P.G., Miller, R.J., Popa, L.: Data exchange: semantics and query answering. Theoret. Comput. Sci. 336, 89–124 (2005)
Heyvaert, P., De Meester, B., Dimou, A., Verborgh, R.: Declarative rules for Linked Data generation at your fingertips! In: The Semantic Web: ESWC Satellite Events, pp. 213–217, June 2018
Imieliński, T., Lipski Jr., W.: Incomplete information in relational databases. J. ACM 31(4), 761–791 (1984)
Knublauch, H., Kontokostas, D.: Shapes constraint language (SHACL). W3C Recomm. (2017). https://www.w3.org/TR/shacl/
Labra Gayo, J.E., Prud’hommeaux, E., Boneva, I., Kontokostas, D.: Validating RDF Data. Synthesis Lectures on the Semantic Web: Theory and Technology (2017)
Libkin, L.: Elements of Finite Model Theory. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-662-07003-1
Michel, F., Montagnat, J., Faron Zucker, C.: A survey of RDB to RDF translation approaches and tools. Technical report, University Sophia Antipolis (2013)
Pérez, J., Arenas, M., Gutierrez, C.: nSPARQL: a navigational language for RDF. J. Web Semant. 8(4), 255–270 (2010)
Prud’hommeaux, E., Boneva, I., Emilio, J.L.G., Kellogg, G.: Shape expressions language 2.1. W3C Draft (2018)
Staworko, S., Boneva, I., Labra Gayo, J.E., Hym, S., Prud’hommeaux, E.G., Solbrig, H.R.: Complexity and expressiveness of ShEx for RDF. In: International Conference on Database Theory (ICDT), pp. 195–211 (2015)
Staworko, S., Wieczorek, P.: Containment of shape expression schemas for RDF. In: ACM Symposium on Principles of Database Systems (PODS), pp. 303–319 (2019)
Tzitzikas, Y., Lantzaki, C., Zeginis, D.: Blank node matching and RDF/S comparison functions. In: International Semantic Web Conference (ISWC), pp. 591–607 (2012)
Villazón, B., Hausenblas, M.: R2RML and direct mapping test cases. W3C (2012)
W3C: RDF validation workshop report: practical assurances for quality RDF data (2013)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this paper
Cite this paper
Boneva, I., Staworko, S., Lozano, J. (2020). Consistency and Certain Answers in Relational to RDF Data Exchange with Shape Constraints. In: Darmont, J., Novikov, B., Wrembel, R. (eds) New Trends in Databases and Information Systems. ADBIS 2020. Communications in Computer and Information Science, vol 1259. Springer, Cham. https://doi.org/10.1007/978-3-030-54623-6_9
Download citation
DOI: https://doi.org/10.1007/978-3-030-54623-6_9
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-54622-9
Online ISBN: 978-3-030-54623-6
eBook Packages: Computer ScienceComputer Science (R0)