Skip to main content

Posts

Showing posts from March 13, 2024

Graph Database Data Modeling - ORDERED Sequences

Using graph databases, you may have a need for ORDERED SEQUENCES of data records... For example: ordered sequences of adverse events in clinical trials ordered sequences of text messages ordered sequences of chemical production steps ordered sequences of "content items" for a content management system   Good news : an open-source library exists for conveniently managing this data model in a Neo4j graph database (and in principle could be ported to other graph databases.)   This concept of ordered sequences of data nodes:   1) is hugely general : I gave them the name "(Ordered)  Collections " 2) can be tricky to implement fully (for example, to deal with multiple insertions in the middle) 3) fortunately, all is handled by this open-source library! 😁   => Here's the documentation => Here's the source code This article is part of a growing,  ongoing series  on Graph Databases and Neo4j A Simple Example The attached image is a simple example of a &quo