Skip to main content
QUICK REVIEW

[Paper Review] Reconciliation of RDF* and Property Graphs

Olaf Hartig|arXiv (Cornell University)|Sep 11, 2014
Graph Theory and AlgorithmsComputer Science1 references33 citations
TL;DR

This paper formally reconciles Property Graphs and RDF* by defining a rigorous, system-independent transformation framework that enables bidirectional, lossless conversion between the two models. The key contribution is a formalization of Property Graphs and well-defined mappings using user-specified identity, label, and key mappings, enabling seamless interoperability between graph databases and RDF systems via standard query languages like SPARQL and Gremlin.

ABSTRACT

Both the notion of Property Graphs (PG) and the Resource Description Framework (RDF) are commonly used models for representing graph-shaped data. While there exist some system-specific solutions to convert data from one model to the other, these solutions are not entirely compatible with one another and none of them appears to be based on a formal foundation. In fact, for the PG model, there does not even exist a commonly agreed-upon formal definition. The aim of this document is to reconcile both models formally. To this end, the document proposes a formalization of the PG model and introduces well-defined transformations between PGs and RDF. As a result, the document provides a basis for the following two innovations: On one hand, by implementing the RDF-to-PG transformations defined in this document, PG-based systems can enable their users to load RDF data and make it accessible in a compatible, system-independent manner using, e.g., the graph traversal language Gremlin or the declarative graph query language Cypher. On the other hand, the PG-to-RDF transformation in this document enables RDF data management systems to support compatible, system-independent queries over the content of Property Graphs by using the standard RDF query language SPARQL. Additionally, this document represents a foundation for systematic research on relationships between the two models and between their query languages.

Motivation & Objective

  • To address the lack of a formal, standardized foundation for Property Graphs, which currently lack a universally agreed-upon definition.
  • To enable system-independent data exchange between Property Graph-based systems (e.g., Neo4j) and RDF systems (e.g., Virtuoso, Bigdata).
  • To support the use of standard query languages—SPARQL for RDF and Gremlin/Cypher for Property Graphs—on data transformed across models.
  • To provide a formal basis for systematic research on the relationships between the two models and their query languages.
  • To resolve the limitation of RDF in expressing statement-level metadata (e.g., certainty) in a user-friendly way, using the RDF* extension.

Proposed method

  • Proposes a formal model of Property Graphs as a tuple (V, E, src, tgt, lbl, P), where V is vertices, E is edges, and P is a partial function assigning properties to vertices and edges.
  • Introduces three user-specified mappings: vertex identity mapping (id), edge label mapping (lm), and property key mapping (km), to map internal identifiers to IRIs or blank nodes.
  • Defines an RDF* representation of a Property Graph using three disjoint sets: vertex properties (G_vp*), edge properties (G_ep*), and edge triples (G_en*), with triples using RDF* to represent edges as subjects.
  • Uses a value-to-literal mapping (vm) to convert arbitrary values into RDF literals, ensuring type safety and standardization.
  • Establishes a formal, injective transformation from a property-unique and edge-unique Property Graph to an RDF* graph, preserving all structural and semantic information.
  • Provides the inverse transformation from RDF* back to Property Graphs, ensuring bidirectional, lossless conversion under the same formal constraints.

Experimental results

Research questions

  • RQ1How can a formal, unambiguous definition of the Property Graph model be established to resolve its current lack of standardization?
  • RQ2What formal mappings are required to losslessly transform a Property Graph into an RDF* graph while preserving semantics and structure?
  • RQ3How can the resulting RDF* graph be queried using standard SPARQL, and how can the original Property Graph be reconstructed from it?
  • RQ4What is the formal relationship between the query languages of Property Graphs (e.g., Cypher, Gremlin) and SPARQL when applied to the same data after transformation?
  • RQ5How can statement-level metadata (e.g., certainty, provenance) in Property Graphs be formally represented and queried in RDF*?

Key findings

  • The paper successfully formalizes the Property Graph model, providing a precise, unambiguous definition that resolves prior ambiguity in its usage across systems.
  • The proposed transformation from Property Graphs to RDF* is lossless and bijective under the conditions of property-uniqueness and edge-uniqueness, ensuring full data fidelity.
  • The transformation enables full interoperability: RDF data can be loaded into Property Graph systems and queried via Gremlin or Cypher, and Property Graph data can be queried via SPARQL after transformation.
  • The use of RDF* allows for the native expression of statement-level metadata (e.g., edge certainty) in a way that is both semantically rich and queryable, overcoming a major limitation of standard RDF.
  • The formal framework supports systematic research into the equivalence, expressiveness, and query semantics of the two models and their respective query languages.
  • The approach is extensible and reusable, with user-defined mappings (id, lm, km) allowing for semantic alignment across heterogeneous data sources.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.