How to create a event logs system

9 views
Skip to first unread message

Iam Miedia

unread,
Jan 5, 2018, 1:06:30 PM1/5/18
to Neo4j
Hi all !

I'm quite new.. I'm looking to do an event logs system with 
multiple "cycles" (a cycle is a chain of events), composed of events (each events can have 7 fixed types), each event has 4 contexts too.

I want to be able to create a structure mapping this 'system', in a graph database.


Question 1: How to specify several cycles ?
I want to be able to have a different cycles : Cycle 1, Cycle 2..etc with events, but can be created later Events (type 1 to 7).
 
Actually I created this :
create (Type3:Type3_name {context1: "John Doe", context2: "blah blah", context3: "127.0.0.1", context4: "email"})
create (Type4:Type4_name {context1: "", context2: "some characteristics", context3: "127.0.0.1", context4: ""})

thus I created 2 events (1 Type3 and 1 Type 4) from the same Cycle of events.
How to map/create this "cycle" of events, i.e to know that the events are part of the same cycle ?

Later I want to be able to create other events that are part of other cycles...


Question 2: to be able to ask complex questions :
- Give me all Cycles where events have these context3 equal X..
- Give me all Cycles where there are a suite of event of type 2 having context2 = X and context3 = Y


Question 3: Graph all the things !




ASCII art :
-----------
>
>                              Cycle 1                                      Cycle 2 Cycle 3 
> *******             ********* *********
>
>                                  context1   
>                                         |
>                    context2--Event type 1--context3
>                                         |
>                                  context4
>
>                                  .
>
>                                     context1
>                                          |
>                    context2--Event type 2--context3
>                                         |
>                                     context4

Thanks in advance.

Kind Regards !

Reply all
Reply to author
Forward
0 new messages