W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > July 2013

Re: distiller behaviour without base href

From: Dan Brickley <danbri@google.com>
Date: Thu, 4 Jul 2013 00:24:05 +0200
Message-ID: <CAK-qy=41zEWbCgNGbDO1DtaYKYHMZVvZwhHT_vM1NYGD8DwfQw@mail.gmail.com>
To: Gregg Kellogg <gregg@greggkellogg.com>
Cc: Ivan Herman <ivan@w3.org>, W3C RDFa WG <public-rdfa-wg@w3.org>
On 4 July 2013 00:18, Gregg Kellogg <gregg@greggkellogg.com> wrote:
> On Jul 3, 2013, at 3:17 PM, Dan Brickley <danbri@google.com> wrote:

>> ... is that even Turtle?
> It certainly is, Turtle allows for the use of relative IRIs, as does RDFa, as you used within your snippet. However, to be valid RDF, the relative IRIs need to resolve to absolute IRIs.

Ah, I was seeing it as a weird XML close tag, but of course it's also
Turtle URI notation to use < >

> There are actually Turtle tests to be sure that relative IRIs are processed properly, which require an assumed base URI for the document. If the snippet was contained in a document at a well-known URL, that would be used as the base. Presuming that the document came from http://schema.org/sku, you would see the other relative IRIs expanded appropriately.

Yeah - my concern now is to have consistent conventions across the
various validators...

>> My conclusions:
>> 1. I don't understand this result syntax:  </Offer> nor why both tools
>> produce it; I thought they were different codebases (python vs ruby).
> Ideally, when we produce this, it would include an @base directive with the specified, or default IRI base.

Yes, or human-facing explanation outside the triples.

>> 2. it would seem important for RDFa-checking tools to have some
>> options to deal with setting the base URI, and/or reporting when it
>> isn't set and might be giving weird results.
>> It seems like http://rdfa.info/play/ silently patches up examples by
>> assuming a base href of http://rdfa.info/ hence parses my first sample
>> into triples such as
>> "  ... schema:domainIncludes <http://rdfa.info/LocalBusiness>;"
> Well, if you're putting in code into a text view, then _some_ IRI needs to be used as the base. Normally, we expect to process documents (RDFa or Turtle) from a URL, so there will always be a document base.

What about a text form field alongside the text view, pre-populated
with 'http://example.net/' ?

Received on Wednesday, 3 July 2013 22:24:32 UTC

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