W3C home > Mailing lists > Public > public-rdfa-wg@w3.org > August 2011

Re: Re 2: More specific proposal on the vocabulary expansion (a.k.a. vocab proxy) feature

From: KANZAKI Masahide <mkanzaki@gmail.com>
Date: Sat, 6 Aug 2011 00:37:51 +0900
Message-ID: <CAHQ1n3CmyVzsq6rPBkiBh+VWpAZZf1Vn+qCYKNwjy1a83f56hg@mail.gmail.com>
To: Gregg Kellogg <gregg@kellogg-assoc.com>
Cc: Ivan Herman <ivan@w3.org>, W3C RDFWA WG <public-rdfa-wg@w3.org>
Hello,

2011/8/5 Gregg Kellogg <gregg@kellogg-assoc.com>:
> On Aug 5, 2011, at 1:52 AM, "Ivan Herman" <ivan@w3.org> wrote:

>> The question is what happens if the user does _not_ want that? Well, if there _is_ a datatype attribute set, than that takes priority. Ie,
>>
>> <span property="bla" datatype="xsd:string">1234</span>
>>
>> will generate
>>
>> <> <bla> "1234"^^xsd:string .
>>
>> (Note that with the latest resolutions of the W3C RDF WG, this could also be serialized with:
>>
>> <> <bla> "1234" .
>>
>> I believe that by introducing this we would cover most of the datatype use cases without mixing in the post processing.
>>
>> Thoughts?
>
> Given that we seem to be open to incompatible changes to the spec, I think this is the way to go. Basically, if the value is in the lexical space of an xsd datatype, it would create a typed literal that datatype, or could be made a Plain Literal through datatype="xsd:string" we may need to enumerate these datatypes and provide a match order, so that 123 is not interpreted as xsd:double.

I wonder it's not wise to assume that people give correct datatypes e.g. not

<p typeof="Book" vocab="http://example.org/">
  George Orwell wrote
  <cite property="title" datatype="xsd:string">1984</cite> in
  <span property="published" datatype="xsd:gYear">1949</span>.
</p>

but very likely

<p typeof="Book" vocab="http://example.org/">
  George Orwell wrote
  <cite property="title">1984</cite> in
  <span property="published">1949</span>.
</p>

Automatic datatype assignment just based on lexical space would cause
a lot of false positives.

cheers,

-- 
@prefix : <http://www.kanzaki.com/ns/sig#> . <> :from [:name
"KANZAKI Masahide"; :nick "masaka"; :email "mkanzaki@gmail.com"].
Received on Friday, 5 August 2011 15:38:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 04:55:17 GMT