Abstract
The use of graph databases has grown over the years, creating the need to use many of the features available in relational databases. Several of these features are already in use, but since graph databases are still in a development phase, many concepts supported in relational databases are still not supported in graph databases. Neo4j supports data entry of various types that can be associated with nodes. However, in the node creation phase it is not possible to specify the property data type. The aim of this paper is to demonstrate how assigning data types to each property can be implemented. Also, it is demonstrated how to check whether a particular data is of the correct type. For that purpose, the change of the syntax used for creating nodes is proposed, and a trigger that would check the correctness of the entered data types for certain attributes is defined.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Buneman, P., Davidson, B.S., Fernandez, M., Suciu, D.: Adding structure to unstructured dana. In: ICDT 1997: Proceedings of the 6th International Conference on Database Theory, pp. 336–350 (1996). https://repository.upenn.edu/cgi/viewcontent.cgi?referer=&httpsredir=1&article=1038&context=db_research
Chiboucas, T. [tony.chiboucas]: The syntax for creating constraints was designed with future extensibility in mind. [Comment on the online forum post Data type of a property]. Neo4j forum, August 2018. https://community.neo4j.com/t/data-type-of-a-property/1309/9
Engle, R.D.: A methodology for evaluating relational and NoSQL databases for small-scale storage and retrieval (2018)
Finné, M.: Added CREATE/DROP CONSTRAINT syntax in Cypher [Github commit] (2013). https://github.com/neo4j/neo4j/commit/49ae8fcb64a3470421736609d54cbf0104a66a8a
Guia, J., Gonçalves Soares, V., Bernardino, J.: Graph databases: Neo4j analysis. In: Proceedings of the 19th International Conference on Enterprise Information Systems - Volume 3: ICEIS, pp. 351–356 (2017). ISBN 978-989-758-247-9; ISSN 2184-4992. https://doi.org/10.5220/0006356003510356
Maleković, M., Rabuzin, K.: Uvod u baze podataka, Udžbenik Sveučilišta u Zagrebu, Varaždin (2016)
Maleković, M., Rabuzin, K., Šestak, M.: Graph Databases - are they really so new. Int. J. Adv. Sci. Eng. Technol. 4(4), 8–12 (2016). https://urn.nsk.hr/urn:nbn:hr:211:997990
Neo4j: Expressions (2021). https://neo4j.com/docs/cypher-manual/current/syntax/expressions/. Accessed 19 Feb 2022
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 Springer Nature Switzerland AG
About this paper
Cite this paper
Rabuzin, K., Cerjan, M., Križanić, S. (2022). Supporting Data Types in Neo4j. In: Chiusano, S., et al. New Trends in Database and Information Systems. ADBIS 2022. Communications in Computer and Information Science, vol 1652. Springer, Cham. https://doi.org/10.1007/978-3-031-15743-1_42
Download citation
DOI: https://doi.org/10.1007/978-3-031-15743-1_42
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-15742-4
Online ISBN: 978-3-031-15743-1
eBook Packages: Computer ScienceComputer Science (R0)