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

  Impressive!

On 10/19/2010 4:29 PM, Toby Inkster wrote:
> 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>  .
>

-- 
Shane P. McCarron                          Phone: +1 763 786-8160 x120
Managing Director                            Fax: +1 763 786-8180
ApTest Minnesota                            Inet: shane@aptest.com

Received on Tuesday, 19 October 2010 21:40:26 UTC