RDF library Raptor

aug 25, 2010

Supporting the Semantic Linked Data Web: Raptor RDF Syntax Library V2 Dave Beckett, Software Announcement. "Today I released the first beta version of Raptor 2 (Raptor RDF Syntax Library). This is the culmination of about 9 months work refactoring the Raptor 1 codebase...

I know that Raptor 2 is not going to place Raptor 1 for applications for some time, so this is a separately installed library with a new location for the header file and a new shared library base...

 Raptor is a free software / Open Source C library that provides a set of parsers and serializers that generate Resource Description Framework (RDF) triples by parsing syntaxes or serialize the triples into a syntax.

The supported parsing syntaxes are RDF/XML, N-Triples, TRiG, Turtle, RSS tag soup including all versions of RSS, Atom 1.0 and 0.3, GRDDL and microformats for HTML, XHTML and XML and RDFa. The serializing syntaxes are RDF/XML (regular, and abbreviated), Atom 1.0, GraphViz, JSON, N-Quads, N-Triples, RSS 1.0 and XMP. The typical sequence of operations to parse is to create a parser object, set various handlers and options, start the parsing, send some syntax content to the parser object, finish the parsing and destroy the parser object...

Raptor was designed to work closely with the Redland RDF library (RDF Parser Toolkit for Redland) but is entirely separate. It is a portable library that works across many POSIX systems (Unix, GNU/Linux, BSDs, OSX, cygwin, win32).

In the Version 2 beta, a major addition is a raptor_world object that is used as a single object to hold on to all shared resources and configuration... The addition of the world object meant that each constructor for an object in raptor now takes that object, so it can get access to the shared configuration and resources. That itself meant the change was extensive, broad in scope. The single place to manage resources means it's easier to ensure proper cleanup and deal with library-wide issues..."

http://journal.dajobe.org/journal/posts/2010/08/16/raptor-rdf-syntax-lib...

See also the Raptor reference page: http://librdf.org/raptor/