<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Hangzhou, China
$ lu.zhou@tigergraph.com (L. Zhou); jay.yu@tigergraph.com (J. Yu)</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>RDF2TG: Towards Supporting RDF in TigerGraph Property Graph Database System</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Lu Zhou</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jay Yu</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Innovation and Development Center, Tigergraph, Inc.</institution>
          ,
          <addr-line>3636 Nobel Dr. Suite 100 San Diego, CA 92122</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0002</lpage>
      <abstract>
        <p>Graph data technology adopters often face the challenge of choosing between flexible knowledge representation and reasoning on Resource Description Framework (RDF) and large-scale data processing performance on Property Graph (PG) models. In this paper, we propose a generic method to bring the best of both worlds together by supporting RDF data in TigerGraph, a massive parallel distributed native property graph database system. This method relies on a generic schema with mapping rules for loading RDF data while preserving the flexibility of the original RDF graphs. We use LDBC Semantic Publishing Benchmark (SPB) to demonstrate how this mechanism maps RDF data and SPARQL queries into TigerGraph and GSQL.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;RDF Knowledge Graph</kwd>
        <kwd>Tigergraph Property Graph</kwd>
        <kwd>SPARQL</kwd>
        <kwd>GSQL</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
    </sec>
    <sec id="sec-2">
      <title>2. RDF to PG Graph Mapping</title>
      <p>We design a generic schema in TigerGraph to import RDF graphs3 based on mapping rules.
Figure 2 demonstrates an example graph after mapping two RDF triples depicted in Figure 1. There
are four types of vertex: ClassInstance, ObjectPropertyInstance, DatatypePropertyInstance, and
ValueInstance, and four types of directed edge: hasObjectPropertyInstance, hasObjectInstance,
hasDatatypeProperyInstance, and hasValueInstance. ValueInstance has three properties (value,
datatype, langTag), while other vertices have one property (uri). To evaluate the efectiveness of
the schema and mapping rules, we utilize the LDBC SPB benchmark to generate an RDF graph
with about 32 million triples. We load the RDF data into TigerGraph and result in a PG with
about 39.8 million vertices and 127.1 million edges.</p>
    </sec>
    <sec id="sec-3">
      <title>3. SPARQL to GSQL Translation</title>
      <p>LDBC SPB Benchmark provides two types of queries - basic and advanced. Basic queries
contain search, aggregate, geo-spatial, full-text search, and time-range, while advanced ones add
analytical, drill-down, and faceted search. For this phase of the project, we manually translate
36 SPARQL to GSQL queries and verify the results are equivalent. We conduct a preliminary
evaluation of query performance in TigerGraph. The results are promising and comparable
to running the same benchmark on an RDF graph database using the same environmental
configuration, without any optimization on the database engine level.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion and Future Work</title>
      <p>In conclusion, we proposed a method to map RDF data and SPARQL queries to TigerGraph.
Preliminary results from applying it to the LDBC SPB benchmark are promising. Codes to
migrate RDF graphs to TigerGraph, mapping rules, queries, and performance are accessible
in the GitHub repository.4 We still have a few areas to expand our approach to cover more
RDF features like blank nodes, named graphs, RDFS and OWL reasoning, as well as advanced
SPARQL query capabilities to construct new graphs and perform updates. We will generalize
the manual SPARQL to GSQL translation rules to automatically support no-code/low-code RDF
data and query in TigerGraph.</p>
      <p>3Supports RDF 1.1 with RDF Schema (RDFS) and Web Ontology Language (OWL).
4https://github.com/kbzhoulu/ldbc_spb_tigergraph</p>
    </sec>
  </body>
  <back>
    <ref-list />
  </back>
</article>