You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where INDI is a unique id for an individual and FAMI is a unique id for a family group the consists of 0..2 'parent' and 0..n 'has_child'.
So for example:
db.get({subject: 'I0169', predicate: 'child_of'}) returns the family group where 'I0169' is a child, say 'F0917'
db.get({subject: 'F0917', predicate: 'has_child'}) returns all the children of 'F0917'
db.get({subject: 'F0917', predicate: 'parent'}) returns the parents of this family group
db.get({subject: 'I0169', predicate: 'marriage'}) returns the family group id for each marriage of 'I0169'
I'm looking to get 3 things from the graph:
list of descendants of an INDI
list of ancestors of an INDI
the shortest path relationship from INDI_A to INDI_B
for ancestor and descendants list if would be nice to also get the level that each result is at so level is incremented/decremented as you move up/down through the tree.
The text was updated successfully, but these errors were encountered:
I have family tree data in a levelgraph structured like:
where INDI is a unique id for an individual and FAMI is a unique id for a family group the consists of 0..2 'parent' and 0..n 'has_child'.
So for example:
db.get({subject: 'I0169', predicate: 'child_of'}) returns the family group where 'I0169' is a child, say 'F0917'
db.get({subject: 'F0917', predicate: 'has_child'}) returns all the children of 'F0917'
db.get({subject: 'F0917', predicate: 'parent'}) returns the parents of this family group
db.get({subject: 'I0169', predicate: 'marriage'}) returns the family group id for each marriage of 'I0169'
I'm looking to get 3 things from the graph:
for ancestor and descendants list if would be nice to also get the level that each result is at so level is incremented/decremented as you move up/down through the tree.
The text was updated successfully, but these errors were encountered: