How to model timeseries data in property graph?

There will be a lot of data tied to time points (e.g. some measurement at some moment of time). We want to detect anomalies (some abnormal sets of values) in that data by using graph algorithms.
What can be suitable way to represent such kind of data in that case in neo4j?

Mark Needham wrote about time trees about 2 years ago:

I remember vaguely that there's also a chapter about representing time in one of the free PDFs from O'Reilly that you can obtain from neo4j which also boils down to using time trees.

Temporal values is a time-specific type of property on nodes and relationships and as such more concerned with formatting issues, time zones etc., so this might not be your first choice.

If entity-state-model is something to consider depends on how you model the measurements in general. My guess is that it might not apply since the measurements are more 'atomic' in nature and don't demand changing "state of relationships". So time trees is probably the way to go.

I found it very helpful to model a set of prototype data and see if the model lends itself to the kind of queries/information I want to retrieve from it.

Hope that helps,
best regards,

1 Like