Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of LTjake (4001)

Monday July 05, 2004
08:56 PM

GEDCOM->FOAF - a reality, sort of.

[ #19701 ]

I've developed a bit of Perl code (and TT2 templates) to take a GEDCOM file and output some FOAF (RDF/XML). This directory contains the result of that effort. Files named FXXX.xml are for families and IXXXX.xml files are for individuals.

With some consultation from Dan Brickley, I think i have a pretty decent start to the conversion. For families, I've define a foaf:Group and outlined its members. Then i give the hint of an alternate location for foaf data on each individual.

<foaf:Group rdf:about="http://www.alternation.net/ged2foaf/F001.xml#F001">
    <foaf:member rdf:resource="http://www.alternation.net/ged2foaf/I0071.xml#I0071" />
    <foaf:member rdf:resource="http://www.alternation.net/ged2foaf/I0052.xml#I0052" />
</foaf:Group>

<foaf:Person rdf:about="http://www.alternation.net/ged2foaf/I0071.xml#I0071">
    <rdfs:seeAlso rdf:resource="http://www.alternation.net/ged2foaf/I0071.xml" />
</foaf:Person>

In each person's file, I've put as much data as i can on that person, defined their relationships, and indicated which families they belong to. For each relative, i've defined "seeAlso"s as in the family files.

The trick is trying to define as much data as i need in each file without having too much duplication.

The RDF is all valid, so the next step is to try and scutter the directory and see what i can do with it. Anyone ever used Redland before? Though, Class::RDF seems neat.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.