[Paper Review] On Directly Mapping Relational Databases to RDF and OWL (Extended Version)
This paper presents a direct mapping from relational databases to RDF and OWL that preserves information and query semantics, even with null values. It proves the mapping is monotonic and information/query-preserving, but shows monotonicity inherently prevents semantic preservation; thus, it introduces a non-monotonic alternative that achieves full semantic preservation by leveraging epistemic operators in an extended OWL.
Mapping relational databases to RDF is a fundamental problem for the development of the Semantic Web. We present a solution, inspired by draft methods defined by the W3C where relational databases are directly mapped to RDF and OWL. Given a relational database schema and its integrity constraints, this direct mapping produces an OWL ontology, which, provides the basis for generating RDF instances. The semantics of this mapping is defined using Datalog. Two fundamental properties are information preservation and query preservation. We prove that our mapping satisfies both conditions, even for relational databases that contain null values. We also consider two desirable properties: monotonicity and semantics preservation. We prove that our mapping is monotone and also prove that no monotone mapping, including ours, is semantic preserving. We realize that monotonicity is an obstacle for semantic preservation and thus present a non-monotone direct mapping that is semantics preserving.
Motivation & Objective
- To develop a direct, automatic mapping from relational databases to RDF and OWL that preserves data and query semantics.
- To analyze fundamental properties—information preservation, query preservation, monotonicity, and semantics preservation—under null value handling.
- To resolve the conflict between monotonicity and semantic preservation in OWL-based mappings.
- To present a non-monotonic direct mapping that achieves full semantic preservation despite OWL's limitations.
- To explore the feasibility of monotonic semantic preservation via an extended OWL with epistemic operators.
Proposed method
- The mapping is defined using Datalog semantics to formally specify how relational schema and instances are translated into OWL DL and RDF.
- Each relation is mapped to a class, attributes to properties, and tuples to RDF resources with property assertions.
- Null values are explicitly modeled using a special NULL symbol and handled via Datalog rules that respect standard SQL null semantics.
- The approach uses a formal relational algebra with nulls to define query equivalence and ensure query preservation.
- Monotonicity is enforced by ensuring updates do not require reprocessing the entire schema, enabling incremental updates.
- A non-monotonic variant is introduced by encoding foreign key constraints as explicit logical assertions, enabling semantic validation.
Experimental results
Research questions
- RQ1Can a direct mapping from relational databases to RDF and OWL preserve information and query semantics even when null values are present?
- RQ2Is it possible to achieve both monotonicity and semantic preservation in a direct mapping under OWL semantics?
- RQ3Why does monotonicity prevent semantic preservation in OWL-based mappings?
- RQ4What is the minimal extension to OWL that allows a monotonic, semantics-preserving direct mapping?
- RQ5Can a non-monotonic direct mapping achieve full semantic preservation while maintaining information and query preservation?
Key findings
- The proposed direct mapping is information preserving and query preserving even in the presence of null values, ensuring lossless reconstruction and equivalent query results.
- The mapping is monotonic, enabling efficient incremental updates without full recomputation.
- Monotonicity and semantic preservation are incompatible in standard OWL due to the lack of constraint-aware reasoning beyond satisfiability testing.
- No monotone direct mapping can be semantics preserving when foreign keys are considered, as OWL cannot encode foreign key violations directly.
- A non-monotonic direct mapping is constructed that is both semantics preserving and query preserving, overcoming the limitations of monotonic approaches.
- The paper suggests that extending OWL with epistemic operators could enable a monotonic, semantics-preserving direct mapping, though this remains a theoretical possibility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.