I have a system that is run by an organization to implement a certain function, thus I have the relationship:
Organization → Function → System
but sometimes the function remains unknown, in which case I want to bind the system directly to the organization:
Organization → System
how do I write this kind of thing?
the System contains attributes that are used for creating these relationships e.g.
create (s:System {id: 'x', Organization: 'MST', Function: 'CM'})
or
create (s:System {id: 'x', Organization: 'MST'})
which means I can find the nodes like this:
match (s:System), (o:Organization {Code: s.Organization})
optional match (f:Function {Code: s.Function})
...but how do I create the relationship?