Re: GEDOM as a database format



Dennis Lee Bieber wrote:
What happens when you edit a data field and the line length changes?
You now have to move all the data that followed the change down to make
room for the new data. GEDCOM files are not fixed-length lines (there

True, if you are editing it's a different thing from browsing.
My program split the GEDCOM into level zero records, and put
them into a BerkeleyDB with the @xref@ as the key (HEAD and TRLR
used their tags as the key).

So although the stoage medium was not a single GEDCOM file, the
records remained in GEDCOM. And output was merely pulling the
desired records and concatenating them.

> GEDCOM doesn't have any way to have a record say "this field is really
> located down there because it grew too large for this space"

Doesn't need it. That's the job of the lower level routines.

I don't worry myself in vi about what happens under the hood
when I add characters to a line.

The genealogy application should deal with the data (whether GEDCOM
or other format) and let the XML API or text file API or SQL DB
or whatever maintain the storage format for that data.

--
Wes Groleau

He that is good for making excuses, is seldom good for anything else.
-- Benjamin Franklin
.



Relevant Pages

  • Re: Using AWK to manipulate GEDCOM files
    ... routines to manipulate GEDCOM files. ... Lots of genealogists have GEDCOM files, ... NAME Bernard /St-Jacques/ ... GIVN Bernard ...
    (soc.genealogy.computing)
  • GedScape: New software to browse GEDCOMs, export as HTML, extract/convert data etc
    ... Easily view all the data within a GEDCOM using indexes of individuals, dates & places, and with charts including family charts, pedigrees and descendants charts, reports such as ancestors and descendants reports, and image galleries. ... Generate powerful web sites from GEDCOM files with the same display as GedScape itself. ...
    (soc.genealogy.computing)
  • GedScape: New software to browse GEDCOMs, export as HTML, extract/convert data etc
    ... Easily view all the data within a GEDCOM using indexes of individuals, dates & places, and with charts including family charts, pedigrees and descendants charts, reports such as ancestors and descendants reports, and image galleries. ... Generate powerful web sites from GEDCOM files with the same display as GedScape itself. ...
    (soc.genealogy.marketplace)
  • Re: GedScape: New software to browse GEDCOMs, export as HTML, extract/convert data etc
    ... Easily view all the data within a GEDCOM using indexes of individuals, ... Generate powerful web sites from GEDCOM files with the same display as ... Useful for converting a GEDCOM for use with legacy programs or other ...
    (soc.genealogy.computing)
  • Re: Index of published GEDCOMs
    ... entries in published GEDCOM files. ... You can search for surnames or for individuals and then be taken directly to the website where the database resides. ... Names: 423709863 Surnames: 4191358 Databases: 386524 ... You have full control over your GEDCOM. ...
    (soc.genealogy.computing)