Skip to main content
QUICK REVIEW

[论文解读] Bridging graph data models: RDF, RDF-star, and property graphs as directed acyclic graphs

Ewout Gelling, George Fletcher|arXiv (Cornell University)|Apr 25, 2023
Graph Theory and AlgorithmsComputer Science被引用 3
一句话总结

本文提出了语句图(Statement Graphs),一种统一的图数据模型,将RDF、RDF-star和属性图表示为有向无环图(DAG),实现了无缝互操作性。该模型形式化定义了三种模型之间的双向映射,并通过开源的1G Playground原型系统展示了其可行性,该系统基于统一的内存图数据库系统,支持使用SPARQL和Gremlin进行跨模型查询。

ABSTRACT

Graph database users today face a choice between two technology stacks: the Resource Description Framework (RDF), on one side, is a data model with built-in semantics that was originally developed by the W3C to exchange interconnected data on the Web; on the other side, Labeled Property Graphs (LPGs) are geared towards efficient graph processing and have strong roots in developer and engineering communities. The two models look at graphs from different abstraction layers (triples in RDF vs. edges connecting vertices with inlined properties in LPGs), expose - at least at the surface - distinct features, come with different query languages, and are embedded into their own software ecosystems. In this short paper, we introduce a novel unifying graph data model called Statement Graphs, which combines the traits of both RDF and LPG and achieves interoperability at different levels: it (a) provides the ability to manage RDF and LPG data as a single, interconnected graph, (b) supports querying over the integrated graph using any RDF or LPG query language, while (c) clearing the way for graph stack independent data exchange mechanisms and formats. We formalize our new model as directed acyclic graphs and sketch a system of bidirectional mappings between RDF, LPGs, and Statement Graphs. Our mappings implicitly define read query semantics for RDF and LPGs query languages over the unified data model, thus providing graph users with the flexibility to use the query language of their choice for their graph use cases. As a proof of concept for our ideas, we also present the 1G Playground; an in-memory DBMS built on the concepts of Statement Graphs, which facilitates storage of both RDF and LPG data, and allows for cross-model querying using both SPARQL and Gremlin.

研究动机与目标

  • 为解决RDF与带标签属性图(LPG)系统之间日益增长的互操作性需求,这些系统根植于不同的抽象层次和生态系统。
  • 在单一、一致的图模型下统一RDF、RDF-star和LPG数据模型,同时保留其各自特性,并支持共享查询与数据交换。
  • 通过有向无环图(DAG)为RDF、RDF-star和LPG之间的转换提供形式化基础,确保语义一致性与可扩展性。
  • 通过开源原型系统1G Playground,展示该统一方案的实际可行性,支持跨模型数据加载、查询与序列化。

提出的方法

  • 提出语句图作为统一的数据模型,将语句(三元组或带标签边)作为有向无环图中的第一类节点,实现RDF、RDF-star和LPG的共享表示。
  • 使用$IRI2label$、$label2IRI$、$IRI2prop$和$prop2IRI$等函数,形式化定义从RDF、RDF-star和LPG到语句图的双向映射,以处理IRI到标签及属性到IRI的转换。
  • 实现1G Playground作为内存数据库管理系统,维护一个中心化的语句图,并通过转换函数派生出独立的LPG和RDF存储,支持只读跨模型查询。
  • 通过一种新型统一的'1G'序列化格式支持数据交换,可通过 -og 标志访问,实现混合RDF与LPG数据的持久化存储与交换。
  • 重用现有查询引擎(RDF使用SPARQL,LPG使用Gremlin),通过将它们映射到统一的语句图,实现查询执行而无需开发定制引擎。
  • 采用客户端-服务器架构,通过REST端点支持数据加载、检索、查询与配置,兼容多种格式,包括N-Quads、Turtle和Graphson。

实验结果

研究问题

  • RQ1如何在单一图数据模型下,形式化统一RDF、RDF-star和带标签属性图,同时保留其独特的建模能力?
  • RQ2是否存在一种最小化、直观且形式化基础坚实的图模型,能够支持RDF、RDF-star和LPG之间的双向转换?
  • RQ3统一的图模型能否实现使用标准查询语言(如SPARQL和Gremlin)的透明跨模型查询?
  • RQ4将有向无环图作为统一多样化图数据模型的基础结构,其实际影响是什么?
  • RQ5如何通过共享序列化格式与原型系统,证明所提出统一方案的可行性与实用性?

主要发现

  • 所提出的语句图模型成功地将RDF、RDF-star和带标签属性图统一为基于有向无环图的单一、一致的数据模型,实现了共享表示与互操作性。
  • 通过翻译函数形式化定义了三种模型之间的双向映射,支持无损转换与跨数据模型的一致解释。
  • 1G Playground原型系统表明,使用标准查询语言进行跨模型数据加载、存储与查询是可行的,SPARQL与Gremlin查询可在统一图上执行。
  • 系统支持多种输入与输出格式,包括N-Quads、Turtle、Graphson以及一种新型统一的'1G'格式,支持灵活的数据交换。
  • 该架构维护从中心语句图派生出的独立LPG与RDF存储,确保与现有工具的向后兼容性,同时实现统一访问。
  • 该方法使用户能够使用其偏好的查询语言对混合的RDF与LPG数据进行查询,有效弥合了W3C语义网栈与现代图数据库生态系统之间的鸿沟。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。