W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > October 2010

Re: Need volunteer reviewers for RDFa Core 1.1 (pre-Last Call)

From: Toby Inkster <tai@g5n.co.uk>
Date: Tue, 19 Oct 2010 22:29:24 +0100
To: Shane McCarron <shane@aptest.com>, Christoph LANGE <ch.lange@jacobs-university.de>
Cc: Manu Sporny <msporny@digitalbazaar.com>, RDFa WG <public-rdfa-wg@w3.org>
Message-ID: <20101019222924.3142a230@miranda.g5n.co.uk>
On Mon, 18 Oct 2010 16:02:25 -0500
Shane McCarron <shane@aptest.com> wrote:

> The rdfa attributes are currently defined in the XHTML namespace -
> and I think it is adequate that they stay there.  Since this clause
> is a SHOULD, a host language MAY also use the attributes in their
> XHTML namespace.  However, I would note that no processor today knows
> how to deal with that.

Mine's been able to since June. It can be configured with a namespace
in which to look for RDFa attributes instead of (not as well as!) the
default "no namespace" namespace.

############################################################
use RDF::RDFa::Parser;
use RDF::TrineShortcuts qw[rdf_string];

my $config = RDF::RDFa::Parser::Config
	->new('xml', '1.1', ns => 'urn:x-namespace:rdfa');
my $parser = RDF::RDFa::Parser
	->new(<<'MARKUP', 'http://example.com/base', $config);
<foo
	xmlns:blah="urn:x-namespace:rdfa"
	xmlns:x="http://example.com/ns#"
	blah:about="[x:s]"
	blah:rel="x:p"
	blah:resource="[x:o]" />
MARKUP
print rdf_string($parser->graph, 'N-Triples');
############################################################

Outputs one triple:

	<http://example.com/ns#s>
	  <http://example.com/ns#p>
	    <http://example.com/ns#o> .

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Tuesday, 19 October 2010 21:30:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:05:21 UTC