I have created 24 nodes which represents different hours of the day and also all other nodes required for my use case.
I want to import data with time values and create a relationship from node (s1) to time (0am). The time values certainly differ, but I want that all time within a range be mapped to a specific hour let’s say between 0:00:00 to 0:59:59 be mapped to node labelled 0 hour as shown in the image displayed below.
My difficulty is creating that range of relationships.
Here is my data model:
LOAD CSV WITH HEADERS FROM 'file:/connections1.csv'AS line
WITH line, split(line.Date, "T") as tn
WITH line, tn, split(tn[1], ':') as tn2
My reason for explicitly modeling the connection node was to avoid the scenario where it would be difficult to query some information . For instance, in your proposed model, it appears that for multiple connections to different services on the same day, it will be difficult to identify which service a particular ->(hour)->(time)->(user) pattern is related to.