rdf4h: RDF for Haskell

Home » Code » rdf4h

rdf4h is a library for working with RDF in Haskell. At present it includes parsers and serializers for RDF in the N-Triples and Turtle formats. The core graph provides some basic query abilities such as querying for triples containing a particular subject, predicate, or object, or selecting triples that satisfy an arbitrary predicate function.

There is a source tarball available here, and API documentation is available here. You can pull the Darcs repository from the URL of this page if you want the latest and greatest. Patches are welcome.

The library requires Cabal >= 1.2, and should build for GHC 6.6 or higher. The following will build and install the library, registering it as a user library (which does not require superuser privileges).

runhaskell Setup.hs configure --user --prefix=$HOME
runhaskell Setup.hs build
runhaskell Setup.hs install

The executable is named rdf4h and is installed to $HOME/bin, and the usual rdf4h --help will show you the command-line options. If you wish to use rdf4h as a library, there are several modules available under the Text.RDF namespace.

History

This site is valid XHTML+RDFa, CSS.