-
Notifications
You must be signed in to change notification settings - Fork 1
Basic Family Use Case
Matthew O. Smith edited this page Mar 13, 2014
·
8 revisions
The most basic functionality as it applies to a family includes:
- Create a pedigree chart
- Get the family group sheet data for an individual
Basic assumptions
- A parent can have 0 or more children
- A child can have 0 or more Parents. The :order attribute determines which is the father (0) and mother (1). Other values are supported but have no semantic meaning.
- All edges will have a :preferred flag that will indicate the default path through the graph.
A pedigree chart requires an Individual i
and returns a seq of Individuals. The first element is the "father" and the second is the mother. If either of them is not known, a nil will be in that place. If more elements are returned, they are ignored.
The gremlin query will be something like: g.v(i).inE('child').outV('birth').outE('parent')