Manipulate genealogy GEDCOM files using Wolfram Language?

Thank you Ron, I will remind you in few months. Looking forward to seeing your work in action.
Best wishes,
Sorin

Hi Rob,
Any chance to get a beta version once you think it is ready testing? I have a GEDCOM file with about 320 entries…
Thank you,
Sorin

I’m very interested as well!

Hello Rob,
I’m very interested in your package as well. My GEDCOM is almost a thousand people. I’m very curious about what Mathematica can do for a GEDCOM file in terms of graphs and data computability.
Thank you very much!
Edson

Thanks for your interest!
I’ve been working on the package for the past few weekends: improving tree splitting and merging, making the function names consistent, debugging, and useful minor improvements (like clicking on a person or family in a FamilyTreeGraph and having it copied to the clipboard).
Most of this work was driven by the need for a “public” tree with enough detail to make it interesting for use in a Community post. I’ve settled on Teddy Roosevelt, the 26th US President, as the central figure. There is a publicly available family tree of the US Presidents in GEDCOM format, up to and including 42, Bill Clinton. It’s quite extensive (over 2000 individuals), and goes back to the 11th century. The tree surrounding Teddy Roosevelt that I extracted from the US Presidents tree has 57 individuals. I’m going to import it into Ancestry and link US Census data to the individuals, and then export it for use in the Community post. At that time the package will be made available from the Wolfram Cloud, and the Community post will act as a tutorial.

If you take a look at the video that @Ron Gove linked at the very beginning of this thread you can get a pretty good idea of the computability that can be achieved. I’m sure there is much that can be done.

I’m working on the Community post now, probably won’t be ready until next week (along with the package and some example GED files)

My package Genealogy.wl is live, and the accompanying Community post is here .

Amazing Rob! Thank you very much for doing this. I will experiment with my family tree right away…

I have finally settled in our new home and got my computer started up again after 5 homeless months. I now see that Robert Nachbar has posted his genealogy package. It looks very impressive. Makes what I’ve been doing look kind of sad.
I plan on taking a detailed look as time permits. However, i often find it difficult to understand programs written by myself, let alone others. I’ve attached a notebook with some of the programs I’ve been using to parse GED files from my Genealogy in Gramps. Since Gramps (and other programs like that) display all sorts of trees and relationships, i am focusing my work on looking at lines of descent. In my family, there are a lot of cousin marriages amongst the Mayflower descendants (of which i am), and i needed Mathematica to search these out. For example, i am descended from Stephen Hopkins in 8 ways. Locating these required increasing the recursion limit to 4000. Also, my Mathematica skills are rather limited and I’m sure others could write much better code.

Thanks for posting your code, Ron!

If all one is interested in is familial relationships, them simpler is better. I’ll admit, I take a while to get my head around the file parsing code of my package because it captures everything in the file and attempts to handle a GED file regardless of its source.

I have some cousin marriages in my family tree, also, and a pair of brothers marrying a pair of sisters. Viewing the tree in Ancestry does not make that obvious, whereas making a Graph in Mathematica certainly does.

For lines of descent, have you tried making a Graph and then using FindPath?

Let me know if you have any problems using my package, I’d be more than happy to help you out.

I thought about using FindPath but never did. On the other hand I thought it would be a good exercise to write my own path finding code. Originally I had a mess of Mathematica code with lots of Goto and Label. I since have been able to do a recursive program (LOD, in the notebook). It was quite a challenge. For some reason, Return stopped returning the answer when the recursions got too deep. Mathematica Stack Exchange was of no help here other than saying I should use Throw and Catch. I had no idea what those constructs would be good for when i first saw them. Turns out to have been exactly what i needed to get the code to function. FYI, I learned programming (machine language and Fortran) almost 60 years ago as an undergrad mathematics major. Our university computer was an IBM 1620 with 64,000 BITS of memory! So I am not well versed on modern coding techniques. But I love Mathematica and learn more about its capabilities every day.

Glad you found that Throw and Catch were just what you needed. I’ve seen similar “failure” of Return and now use Throw and Catch all the time.

Sounds like we’re of similar vintage. My first computing was done on the college’s IBM 1130 fifty years ago with 8K bytes and real cores. I have one box of punch cards left from that era! I learned FORTRAN G from the IBM reference manual. I eventually moved on to c in the 90s. I started using Mathematica in 1989, but didn’t get seduced until the mid 90s when I started doing genetic programming (John Koza’s extension of genetic algorithms).

Maybe this is a dumb question, but I ran

Get@CloudObject["https://www.wolframcloud.com/obj/r.b.nachbar/Published/Genealogy.wl"] 

and it did not get anything.

This is what I get with version 12.3:

In[52]:= Get@
 CloudObject[
  "https://www.wolframcloud.com/obj/r.b.nachbar/Published/Genealogy.wl"]

In[54]:= Names["Genealogy`*"]

Out[54]= {"Family", "FamilyDelete", "FamilySummary", "FamilyTree", \
"FamilyTreeDelete", "FamilyTreeExistsQ", "FamilyTreeGraph", \
"FamilyTreeRename", "FamilyTreeSplit", "FamilyTreeSummary", \
"FamilyTreeTake", "FamilyTreeValidQ", "FindFamily", "FindIndividual", \
"GenealogicalProperty", "Individual", "IndividualDelete", \
"IndividualEquivalentQ", "IndividualSummary", "KindredGraph", \
"KindredRelationship", "KindredTreePlot", "ListFamilyTrees", \
"OrderBy", "ReadGEDCOM", "SetCurrentFamilyTree", "WriteGEDCOM", \
"$GenealogyReleaseNumber", "$GenealogyVersion", \
"$GenealogyVersionNumber"}

The file has Public permissions, so you should be able to load it.

still nothing

Hi Ron,
This line is not meant to give any output. It just loads the package. After evaluating it, try evaluate this line too

Names["Genealogy`*"]

Worked fine with me and gave the list of names, same as Robert showed.

I am running version 12.1.1.0.

Thanks. Now I see I do have something.

Great!

Btw, I’m teaching at the Wolfram Summer School, so responses will be delayed for the next few weeks.