<!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 />
    <article-meta>
      <title-group>
        <article-title>Key-Value vs Graph-based data lakes for realizing Digital Twin systems (Poster)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Daniel Pérez-Porras</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Paula Muñoz</string-name>
          <email>paulam@uma.es</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Javier Troya</string-name>
          <email>av@uma.es</email>
          <email>jtroya@uma.es</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Antonio Vallecillo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Digital twins</institution>
          ,
          <addr-line>Data Lake, NoSQL databases, Graph databases</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>ITIS Software. University of Málaga</institution>
          ,
          <country country="ES">Spain</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Usually</institution>
          ,
          <addr-line>these</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <abstract>
        <p>A Digital Twin (DT) is a comprehensive digital representation of an actual system, service or product (the Physical Twin, PT), synchronized at a specified frequency and ifdelity [ 1]. The digital twin includes the properties, condition and behavior of the physical entity through models and data, and is continuously updated with real-time data about the PT performance, maintenance, and health status throughout its entire lifetime [2]. The exchange of data between the digital and the physical twins takes place through bi-directional data connections. Additionally, a DT system can also comprise a set of services that permit exploiting the data exchanged by the two twins [3].</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>1. Introduction
France</p>
      <p>
        Alternative solutions use time series databases, such as InfluxDB or TimescaleDB, and
even define temporal models for handing them at a higher level of abstraction [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. While
very eficient for querying time-sensitive information, these solutions are not optimal for
implementing more general queries, needed when eficient data analysis is required.
      </p>
      <p>
        In this work we explore the use of Graph databases [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] to store and query the information
handled in data lakes. Graph databases use graph structures to perform semantic queries;
they store the information as nodes, edges, and properties. Examples of Graph databases
include Neo4j, ArangoDB or OrientDB, to name a few. They all count with specialized
query languages such as Gremlin, Cypher, SPARQL, or GraphQL.
      </p>
      <p>We have implemented a data lake using Neo4j, and evaluated its performance and
expressiveness against our previous implementation with Redis. As expected, Neo4j allows
easy specification of more complex queries using its Cypher query language. The same
queries in Redis require the addition of ad-hoc records with the corresponding key-value
mappings if the queries were not contemplated beforehand in the Redis record structure.
Interestingly, the additional queries forced by these new records introduce a performance
penalty that makes Neo4j’s response times better than those of Redis. Furthermore, the
response times obtained for simple queries in Redis are not very diferent from those
of Neo4j. All this makes Neo4j appear to be a better solution than Redis for realizing
data lakes. The description of the tests carried out and their results are availble from
https://github.com/atenearesearchgroup/dt-graph-database. As future work, we are defining
a benchmark with diferent types of queries that will be used to compare implementations
of data lakes using diferent technologies, including time series databases, too. We hope
that our evaluation will help to shed some light on the advantages and limitations of each
solution, and to identify situations where one type of solution outperforms the other.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Digital</given-names>
            <surname>Twin</surname>
          </string-name>
          <string-name>
            <surname>Consortium</surname>
          </string-name>
          , Glossary of digital twins, https://www.digitaltwinconsortium. org/glossary/index.htm,
          <year>2021</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>F.</given-names>
            <surname>Bordeleau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Combemale</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Eramo</surname>
          </string-name>
          , M. van den Brand, M. Wimmer,
          <article-title>Towards model-driven digital twin engineering: Current opportunities and future challenges</article-title>
          ,
          <source>in: Proc. of ICSMM'20</source>
          , volume
          <volume>1262</volume>
          <source>of CCIS</source>
          , Springer,
          <year>2020</year>
          , pp.
          <fpage>43</fpage>
          -
          <lpage>54</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>F.</given-names>
            <surname>Tao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , A. Liu,
          <string-name>
            <given-names>A. Y. C.</given-names>
            <surname>Nee</surname>
          </string-name>
          ,
          <article-title>Digital twin in industry: State-of-the-art</article-title>
          ,
          <source>IEEE Trans. Ind. Informatics</source>
          <volume>15</volume>
          (
          <year>2019</year>
          )
          <fpage>2405</fpage>
          -
          <lpage>2415</lpage>
          .
          <source>doi:1 0 . 1 1 0 9 / T I I . 2 0</source>
          <volume>1 8 . 2 8 7 3 1 8 6 .</volume>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Grieves</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Vickers</surname>
          </string-name>
          , Digital Twin: Mitigating Unpredictable,
          <source>Undesirable Emergent Behavior in Complex Systems</source>
          , Springer,
          <year>2017</year>
          , pp.
          <fpage>85</fpage>
          -
          <lpage>113</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>R.</given-names>
            <surname>Hai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Quix</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Jarke</surname>
          </string-name>
          ,
          <article-title>Data lake concept and systems: a survey</article-title>
          ,
          <source>CoRR abs/2106</source>
          .09592 (
          <year>2021</year>
          ).
          <article-title>a r X i v : 2 1 0 6 . 0 9 5 9 2</article-title>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>P.</given-names>
            <surname>Muñoz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Troya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Vallecillo</surname>
          </string-name>
          ,
          <article-title>Using UML and OCL Models to Realize High-Level Digital Twins</article-title>
          ,
          <source>in: Proc. of ModDiT2021@MODELS'21</source>
          , IEEE,
          <year>2021</year>
          , pp.
          <fpage>212</fpage>
          -
          <lpage>220</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>A.</given-names>
            <surname>Mazak</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Wolny</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gómez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Cabot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Wimmer</surname>
          </string-name>
          , G. Kappel,
          <article-title>Temporal models on time series databases</article-title>
          ,
          <source>J. Object Technol</source>
          .
          <volume>19</volume>
          (
          <year>2020</year>
          ) 3:
          <fpage>1</fpage>
          -
          <lpage>15</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>I.</given-names>
            <surname>Robinson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Webber</surname>
          </string-name>
          , E. Eifrem, Graph Databases:
          <article-title>New Opportunities for Connected Data, 2 ed</article-title>
          .,
          <string-name>
            <surname>O'Reilly Media</surname>
          </string-name>
          , Inc.,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>