[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: GEDCOM Model <was> RFC: Simple XML Event-Based API for Java

  • From: "Mark L. Fussell" <fussellm@a...>
  • To: Michael Kay <M.H.Kay@e...>
  • Date: Thu, 18 Dec 1997 06:40:29 -0800 (PST)

gedcom java

Michael Kay <M.H.Kay@e...> wrote:
> (What I haven't really worked out yet, and would appreciate advice
> on, is how to turn the XML objects into a set of genealogical
> objects, with methods like getFather(), getMother(), getSpouses(). Do
> I need to build a separate tree with the data organised differently,
> or should I write methods/functions that operate on the nodes in 
> the XML tree? I guess the chemists must have similar problems.)

I would strongly suggest first designing the genealogical object model 
from the GEDCOM definitions (and other sources) without considering XML 
or DOM at all.  You need to first get a good model of the information you 
want to represent in a computer (usually called a DomainModel) before 
considering technological/application constraints on it.  After you have 
the model you can consider how that information could be best constructed 
from an XML/GEDCOM encoding.  
    The GEDCOM spec has a very specific model behind it, so you can 
decide whether to use that model, a subset of it, or some improvement to 
it.  There is a lot of stuff in there so it may take a while to get a 
good DomainModel out of it and then implement that model in Java.  After 
that, the XML should be very easy.  
    Last time I checked (maybe a year or two ago), nobody had a 
publically available GEDCOM object model or implementation in Java, but 
maybe that has changed.  I spent several days starting the process of 
building a model but got called off to other tasks [not sure where my 
notes are].

If you have not already, you may want to look at Martin Fowler's Analysis 
Patterns book or any of the three Amigos' books (Booch, Rumbaugh, 
Jacobson).  Full references for these books are at:
    http://www.chimu.com/projects/mondo/links.html

--Mark
mark.fussell@c...



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.