W3C home > Mailing lists > Public > public-rdfa@w3.org > June 2012

Re: Conflicting results given for rdfa.info test 0180.html

From: Mark Birbeck <mark.birbeck@webbackplane.com>
Date: Tue, 26 Jun 2012 16:33:22 +0100
Message-ID: <CANTqjM=FbrE59J8Hsy+kBn8r_FrwrmrudTEK54ntWWnHsx0NQw@mail.gmail.com>
To: Dan Brickley <danbri@danbri.org>
Cc: public-rdfa@w3.org, ivan@w3.org, Manu Sporny <msporny@digitalbazaar.com>
Hi Dan,

According to the spec a prefix must be an NCName followed by a colon.
The prefix ':' therefore doesn't fit the bill since the empty string
is not an NCName.

The reason it's specified like this is so that the default (blank)
prefix can't be redefined, unlike in SPARQL, say.

All the best,

Mark


On Tue, Jun 26, 2012 at 3:28 PM, Dan Brickley <danbri@danbri.org> wrote:
> Relaying this from a Google colleague working on the rdfa tests. If
> you could confirm the correct behaviour (and what's up with pyRdfa if
> it's wrong) that'd be great...
>
> My personal intuition was that the SPARQL results are correct, but
> I've been wrong before so thought it best to ask!
>
> cheers,
>
> Dan
>
>
> """I see two conflicting results given for rdfa.info test 0180.html
> (http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0180.html):
>
> Source document:
> <!DOCTYPE html> <html> <head> <title>Test 0180</title> <base
> href="http://example.org/"/> </head> <body> <div about ="#me"
> prefix=": http://xmlns.com/foaf/0.1/" > <p property=":name">Ivan
> Herman</p> </div> </body> </html>
>
> The pyRdfa results are
> (http://www.w3.org/2012/pyRdfa/extract?uri=http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0180.html):
> @prefix xhv: <http://www.w3.org/1999/xhtml/vocab#> .
> <http://example.org/#me> xhv:name "Ivan Herman" .
>
> But the SPARQL results are
> (http://rdfa.info/test-suite/test-cases/rdfa1.1/html5/0180.sparql):
> <http://example.org/#me> <http://xmlns.com/foaf/0.1/name> "Ivan Herman" .
>
> Note the difference in the predicate. Shouldn't it be
> "http://www.w3.org/1999/xhtml/vocab#name"? """
>
Received on Tuesday, 26 June 2012 15:34:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:09 UTC