Re: RDFa for Turtles

On Wed, 2010-03-10 at 12:03 -0500, Paul Houle wrote:

> <meta rel="{predicate}" content="{object}" /> 
> <meta rel="{predicate}" content="{object}" datatype="{type_of_object}" />   

You want to use @property, not @rel. Also, don't forget @xml:lang!

> Am I missing anything?

To bullet-proof it, you may want to explicitly set @about on *all* the
<link> and <meta> elements, plus @xml:lang on all <meta> elements, to
avoid chaining, and avoid inheriting language tags from <head> or
<html>.

> Requirement: Ability to embed RDFa in a document that is not, 
> globally,  a valid XHTML document

Why not just use the HTML+RDFa draft being worked on by the HTML WG in
conjunction with the RDFa WG? It specifies how RDFa can be used in
so-called "tag soup" HTML.

I know of at least three tools that implement HTML+RDFa at least
experimentally:

* RDF::RDFa::Parser - my own Perl RDFa parser.
* PyRDFa - the code that powers the W3C's "RDFa distiller" service.
* Damien Steer's Java RDFa parser which I can't remember the name of.

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

Received on Thursday, 11 March 2010 09:59:26 UTC