From: Alex R. <sh...@gr...> - 2006-08-14 17:03:38
|
Gary, On Sun, 2006-08-13 at 12:29 +0100, Gary Burton wrote: > I've been playing with 2.1.90 since it was released > and I'm curious as to how Gramps deals with (or not as > the case may be) event attributes such as AGE and > others. So far we've been ignoring the AGE tag. > Here is a snippet from an INDI tag produced by FH: > =20 > 0 @I402@ INDI > 1 NAME John /Birtwistle/ > 1 SEX M > 1 BIRT > 2 PLAC Elton, Bury, Lancashire > 2 ADDR Crostons > 2 SOUR @S203@ > 3 PAGE Baptism of Edwin Birtwistle > 1 BAPM > 2 DATE 14 MAY 1843 > 2 PLAC Elton, Bury, Lancashire > 2 SOUR @S203@ > 3 PAGE Baptism of John Birtwistle > 1 CENS > 2 DATE 30 MAR 1851 > 2 PLAC Elton, Bury, Lancashire > 2 ADDR Church Street > 2 AGE 9y > 2 SOUR @S282@ >=20 > Note that the CENS tag has an AGE attribute which > gives the age of the individual at the time of the > event. As far as I can tell, Gramps (2.1.90) does not > do anything with the age attribute. Is this because > the Gedcom import code does not deal with it or > because the underlying data model cannot deal with it. Actually, both. We have discussed this recently, and we are going to add Attribute field to both Event and EventReference objects in gramps. Event's attributes will be: cause, agency, etc that is common to the event EventReference attributes will be: age, father's/mother's age (for family event) etc that is specific for each event participant. > As far as I'm aware, though I'm not expert on this, > the Gedcom standard supports more event attributes > than the ones Gramps seems to support. Once we add Attributes to the events, we will be easily able to support any standard as well as custom event attributes. > Another thing I noticed with the BIRT tag is that the > value of ADDR winds up as the Place on the event > instead of the value in PLAC. However on the other > tags where no ADDR is present then the value of PLAC > is set as the event Place. >=20 > I've had a look through the sources but not being a > Python programmer (java and oracle are more my > speciality) I'm not sure where best to look to see how > the Gedcom import works and how the data model looks. > Is there any documentation available that explains > broadly how the Gedcom import works. The somewhat outdated API docs are here: http://developers.gramps-project.org/devdoc/api/ The current API is here: http://developers.gramps-project.org/devdoc/api2.2/ and you need to aks it to "Show private" all the time, because we started using an underscore symbol in module names. The RelLib defines the core classes of gramps data. The _ReadGedcom module in GrampsDb package is importing gedcom files. Apparently, to successfully import something we need it both to be a data piece defined in RelLib, and have import code that places the data from gedcom into that structure. Please feel free to ask, contribute, etc. In addition to the mailing list, we sometimes hang around on the #gramps IRC channel at irc.freenode.net Alex --=20 Alexander Roitman http://www.gramps-project.org |