ANN: RDF-RDFa-Parser-Trine 0.2

Toby Inkster mail at tobyinkster.co.uk
Wed Nov 25 00:24:50 CET 2009


On Fri, 2009-11-20 at 23:45 +0100, Kjetil Kjernsmo wrote:
> Rumours have it Toby is incorporating this into RDF::RDFa::Parser,
> though. So, this may well be the last RDF::RDFa::Parser::Trine
> release. It had a short and glorious life ;-) 

Indeed - version 0.20 of RDF::RDFa::Parser incorporates code from
Kjetil's RDF::RDFa::Parser::Trine module with only minor changes.
(Apologies as he's not credited in the documentation - I'll fix that in
0.21.)

It's available here:
http://search.cpan.org/~tobyink/RDF-RDFa-Parser-0.20/

As well as the Trine stuff it incorporates improved, more
standards-compliant CURIE handling.

There's also better support for RDFa in flavours of XML other than XHTML
- allowing certain XHTML-specific features of RDFa to be disabled, such
as special handling for <head>, <body> and <base> elements. This allows
the parser to handle, say, RDFa in SVG or Atom.

Another interesting feature is RDF/XML support. This allows
mixed-namespace documents to be parsed. e.g.

	<html namespaces-you-might-expect-go-here>
	  <head>
	    <title property="dc:title">Foo</title>
	    <rdf:RDF>
	      <dc:creator>Joe</dc:creator>
	    </rdf:RDF>
	  </head>
	</html>

The RDF/XML support turns out to be handy for parsing SVG which often
contains RDF/XML snippets. It also plays nicely with named graphs - if
the named graphs feature is enabled, RDF/XML chunks are parsed as
separate graphs.

There's other stuff too but those are the main changes. Version 0.11
will remain on CPAN for a while because 0.20 breaks compatibility with
it significantly.

-- 
Toby A Inkster
<mailto:mail at tobyinkster.co.uk>
<http://tobyinkster.co.uk>


More information about the Dev mailing list