I'm trying to figure out how to build a graph of things, imagine the Graph Movie Database but where Movie was a variable (could be anything).
So of course if you use movies as the example, then you could have:
Tom Hanks ACTED_IN Forrest Gump
but that assumes you know the thing is a Movie and a relevant relationship in this case is "ACTED_IN".
How can you develop a model that would account for unknowns, so if tomorrow the 'thing' is CEOs, then you are prepared for a new Thing. Using a generic node and relationship like Tim Cook IS_CHILD_OF Apple
comes to mind but doesn't feel to be as performant.
And when developing for this, how do you track what the relationships will all be? E.g. if you did use a specific node type like "movie" and have a specific "ACTED_IN" then how do you avoid writing all of the possible relationships out by hand? E.g. if you use "IS_CHILD_OF" that's one relationship, but if you now need "IS_CEO_OF", "IS_EMPLOYEE_OF", etc. there could be hundreds of thousands.
Is there a name for this type of model?