Skip to main content

Schema Validation and Evolution for Graph Databases

  • Conference paper
  • First Online:
Conceptual Modeling (ER 2019)

Abstract

Despite the maturity of commercial graph databases, little consensus has been reached so far on the standardization of data definition languages (DDLs) for property graphs (PG). Discussion on the characteristics of PG schemas is ongoing in many standardization and community groups. Although some basic aspects of a schema are already present in most commercial graph databases, full support is missing allowing to constraint property graphs with more or less flexibility.

In this paper, we show how schema validation can be enforced through homomorphisms between PG schemas and PG instances by leveraging a concise schema DDL inspired by Cypher syntax. We also briefly discuss PG schema evolution that relies on graph rewriting operations allowing to consider both prescriptive and descriptive schemas.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://www.gqlstandards.org/.

  2. 2.

    http://www.opencypher.org/.

  3. 3.

    https://s3.amazonaws.com/artifacts.opencypher.org/openCypher9.pdf.

  4. 4.

    The complete PG schema encoding of LDBC SNB is reported in [4].

  5. 5.

    https://github.com/Kappa-Dev/ReGraph.

References

  1. Angles, R., et al.: G-CORE: a core for future graph query languages. In: SIGMOD, pp. 1421–1432 (2018)

    Google Scholar 

  2. Bernstein, P.A., Melnik, S.: Model management 2.0: manipulating richer mappings. In: SIGMOD, pp. 1–12 (2007)

    Google Scholar 

  3. Bonifati, A., Fletcher, G., Voigt, H., Yakovets, N.: Querying Graphs. Synthesis Lectures on Data Management. Morgan & Claypool Publishers, San Rafael (2018)

    MATH  Google Scholar 

  4. Bonifati, A., et al.: Schema validation and evolution for graph databases. CoRR arXiv:1902.06427 (2019)

  5. Corradini, A., Heindel, T., Hermann, F., König, B.: Sesqui-pushout rewriting. In: Corradini, A., Ehrig, H., Montanari, U., Ribeiro, L., Rozenberg, G. (eds.) ICGT 2006. LNCS, vol. 4178, pp. 30–45. Springer, Heidelberg (2006). https://doi.org/10.1007/11841883_4

    Chapter  Google Scholar 

  6. Curino, C., Moon, H.J., Zaniolo, C.: Graceful database schema evolution: the PRISM workbench. PVLDB 1(1), 761–772 (2008)

    Google Scholar 

  7. Domínguez, E., Lloret, J., Rubio, A.L., Zapata, M.A.: MeDEA: a database evolution architecture with traceability. DKE 65(3), 419–441 (2008)

    Article  Google Scholar 

  8. Erling, O., et al.: The LDBC social network benchmark: interactive workload. In: SIGMOD, pp. 619–630 (2015)

    Google Scholar 

  9. Harmer, R., Oshurko, E.: Knowledge representation and update in hierarchies of graphs. In: Guerra, E., Orejas, F. (eds.) ICGT 2019. LNCS, vol. 11629, pp. 141–158. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-23611-3_9

    Chapter  Google Scholar 

  10. Hartung, M., Terwilliger, J.F., Rahm, E.: Recent advances in schema and ontology evolution. In: Schema Matching and Mapping, pp. 149–190 (2011)

    Google Scholar 

  11. Herrmann, K., Voigt, H., Pedersen, T.B., Lehner, W.: Multi-schema-version data management: data independence in the twenty-first century. VLDB J. 27(4), 547–571 (2018)

    Article  Google Scholar 

  12. Hofmann, M., Pierce, B.C., Wagner, D.: Symmetric lenses. In: POPL (2011)

    Google Scholar 

  13. Kharlamov, E., Zheleznyakov, D., Calvanese, D.: Capturing model-based ontology evolution at the instance level: the case of DL-Lite. J. Comput. Syst. Sci. 79(6), 835–872 (2013)

    Article  MathSciNet  Google Scholar 

  14. Knublauch, H., Kontokostas, D.: Shapes Constraint Language (SHACL). W3C Recommendation 20 July 2017

    Google Scholar 

  15. Königs, A., Schürr, A.: Tool integration with triple graph grammars - a survey. Electron. Notes Theoret. Comput. Sci. 148(1), 113–150 (2006)

    Article  Google Scholar 

  16. Ong, K.W., Papakonstantinou, Y., Vernoux, R.: The SQL++ semi-structured data model and query language: a capabilities survey of SQL-on-hadoop, NoSQL and NewSQL databases. CoRR arXiv:1405.3631 (2014)

  17. Rahm, E., Bernstein, P.A.: An online bibliography on schema evolution. SIGMOD Rec. 35(4), 30–31 (2006)

    Article  Google Scholar 

  18. Roddick, J.F.: SQL/SE - a query language extension for databases supporting schema evolution. SIGMOD Rec. 21(3), 10–16 (1992)

    Article  Google Scholar 

  19. Schürr, A.: Specification of graph translators with triple graph grammars. In: Workshop on Graph-Theoretic Concepts in Computer Science, pp. 151–163 (1994)

    Google Scholar 

Download references

Acknowledgements

We would like to thank Petra Selmer (Neo4j) for her careful proof reading and useful feedback. This work was partially funded by a grant from the Fédération Informatique de Lyon.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Angela Bonifati .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Bonifati, A., Furniss, P., Green, A., Harmer, R., Oshurko, E., Voigt, H. (2019). Schema Validation and Evolution for Graph Databases. In: Laender, A., Pernici, B., Lim, EP., de Oliveira, J. (eds) Conceptual Modeling. ER 2019. Lecture Notes in Computer Science(), vol 11788. Springer, Cham. https://doi.org/10.1007/978-3-030-33223-5_37

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-33223-5_37

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-33222-8

  • Online ISBN: 978-3-030-33223-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics