[Haskell-cafe] RDF and stuff (was: Point-free style ...)

Graham Klyne GK at ninebynine.org
Tue Feb 15 04:27:40 EST 2005

At 23:00 10/02/05 -0500, David Menendez wrote:
>Here's another one:
>     addTriple (s,p,o) = addArc s p o . addNode s . addNode p . addNode o

It looks like you're playing around with RDF here.  A quick check of your 
web site shows a Semantic Web angle to some of your workings.   I also see 
you show up in some of the ESW work.

You may be interested that I have a full RDF/XML parser in Haskell (based 
on a modified version of HaXML) (and also a reasonably competent Notation3 
parser).    It passes all of Dave Beckett's RDF parser test cases, which 
include all the W3C RDF core WG test cases, (except one to do with I18N 
handling).  I haven't yet found time to wrap it all up neatly, but the code 
is available here:

RDF/XML parser and test code:

Supporting code for RDF node handling:

Modified HaXML parser:

URI parser (above should also work with library version in next GHC):

Possibly uses some other support modules from:

I had been meaning to wrap all this into my Swish package 
(http://www.ninebynine.org/RDFNotes/Swish/Intro.html), but real work 
intervened.  I do intend to return to this when I can find an excuse to 
make it part of the new day job.


Graham Klyne
For email:

More information about the Haskell-Cafe mailing list