Towards an Integrated Graph Algebra for Graph Pattern Matching with Gremlin

  • Harsh Thakkar
  • Dharmen Punjani
  • Sören Auer
  • Maria-Esther Vidal
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 10438)

Abstract

Graph data management has revealed beneficial characteristics in terms of flexibility and scalability by differently balancing between query expressivity and schema flexibility. This has resulted into an rapid developing new task specific graph systems, query languages and data models, such as property graphs, key-value, wide column, resource description framework (RDF), etc. Present day graph query languages are focused towards flexible graph pattern matching (aka sub-graph matching), where as graph computing frameworks aim towards providing fast parallel (distributed) execution of instructions. The consequence of this rapid growth in the variety of graph based data management systems has resulted in a lack of standardization. Gremlin, a graph traversal language and machine, provides a common platform for supporting any graph computing system (such as an OLTP graph database or OLAP graph processors). We present a formalization of graph pattern matching for Gremlin queries. We also study, discuss and consolidate various existing graph algebra operators into an integrated graph algebra.

Keywords

Graph pattern matching Graph traversal Graph query algebra 

References

  1. 1.
    Angles, R., Arenas, M., et al.: Foundations of modern graph query languages. arXiv preprint arXiv:1610.06264 (2016)
  2. 2.
    Angles, R., Gutierrez, C.: The multiset semantics of SPARQL patterns. In: Groth, P., Simperl, E., Gray, A., Sabou, M., Krötzsch, M., Lecue, F., Flöck, F., Gil, Y. (eds.) ISWC 2016. LNCS, vol. 9981, pp. 20–36. Springer, Cham (2016). doi:10.1007/978-3-319-46523-4_2 CrossRefGoogle Scholar
  3. 3.
    Cyganiak, R.: A relational algebra for SPARQL. Digital Media Systems Laboratory HP Laboratories Bristol. HPL-2005-170, vol. 35 (2005)Google Scholar
  4. 4.
    Hölsch, J., Grossniklaus, M.: An algebra and equivalences to transform graph patterns in neo4j. In: EDBT/ICDT 2016 Workshops: EDBT Workshop on Querying Graph Structured Data (GraphQ) (2016)Google Scholar
  5. 5.
    Krause, C., Johannsen, D., Deeb, R., Sattler, K.-U., Knacker, D., Niadzelka, A.: An SQL-based query language and engine for graph pattern matching. In: Echahed, R., Minas, M. (eds.) ICGT 2016. LNCS, vol. 9761, pp. 153–169. Springer, Cham (2016). doi:10.1007/978-3-319-40530-8_10 CrossRefGoogle Scholar
  6. 6.
    Li, C., Chang, K.C.-C., et al.: RankSQL: query algebra and optimization for relational top-k queries. In: Proceedings of the 2005 ACM SIGMOD International Conference on Management of Data. ACM (2005)Google Scholar
  7. 7.
    Marton, G.S.J.: Formalizing opencypher graph queries in relational algebra. Published online on FTSRG archive (2017)Google Scholar
  8. 8.
    Pérez, J., Arenas, M., Gutierrez, C.: Semantics and complexity of SPARQL. In: Cruz, I., Decker, S., Allemang, D., Preist, C., Schwabe, D., Mika, P., Uschold, M., Aroyo, L.M. (eds.) ISWC 2006. LNCS, vol. 4273, pp. 30–43. Springer, Heidelberg (2006). doi:10.1007/11926078_3 CrossRefGoogle Scholar
  9. 9.
    Prud, E., et al.: SPARQL query language for RDF. Citeulike Online Archive (2006)Google Scholar
  10. 10.
    Rodriguez, M.A.: The gremlin graph traversal machine and language (invited talk). In: Proceedings of the 15th Symposium on Database Programming Languages, Pittsburgh, PA, USA (2015)Google Scholar
  11. 11.
    Rodriguez, M.A., Neubauer, P.: The graph traversal pattern. In: Graph Data Management Techniques and Applications. IGI Global (2011)Google Scholar
  12. 12.
    Rodriguez, M.A., Neubauer, P.: A path algebra for multi-relational graphs. In: Workshops Proceedings of the 27th International Conference on Data Engineering, ICDE 2011 (2011)Google Scholar
  13. 13.
    Thakkar, H.: Towards an open extensible framework for empirical benchmarking of data management solutions: LITMUS. In: Blomqvist, E., Maynard, D., Gangemi, A., Hoekstra, R., Hitzler, P., Hartig, O. (eds.) ESWC 2017. LNCS, vol. 10250, pp. 256–266. Springer, Cham (2017). doi:10.1007/978-3-319-58451-5_20 CrossRefGoogle Scholar
  14. 14.
    van Rest, O., Hong, S., et al.: PGQL: a property graph query language. In: Proceedings of the Fourth International Workshop on Graph Data Management Experiences and Systems. ACM (2016)Google Scholar

Copyright information

© Springer International Publishing AG 2017

Authors and Affiliations

  • Harsh Thakkar
    • 1
  • Dharmen Punjani
    • 2
  • Sören Auer
    • 1
    • 3
  • Maria-Esther Vidal
    • 1
  1. 1.University of BonnBonnGermany
  2. 2.National and Kapodistrian University of AthensAthensGreece
  3. 3.Fraunhofer Institute for Intelligent Analysis and Information Systems (IAIS)Sankt AugustinGermany

Personalised recommendations