Slash Boxes
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="">
    <foaf:member rdf:resource="" />
    <foaf:member rdf:resource="" />

<foaf:Person rdf:about="">
    <rdfs:seeAlso rdf:resource="" />

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.
More | Login | Reply
Loading... please wait.