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

Re: If no datatype is specified for @datatime

From: Gregg Kellogg <gregg@greggkellogg.net>
Date: Thu, 17 Jan 2013 13:09:27 -0500
To: Stéphane Corlosquet <scorlosquet@gmail.com>
CC: RDFa WG <public-rdfa-wg@w3.org>
Message-ID: <28D31528-0E9F-4010-AD5A-F13A57A3091B@greggkellogg.net>
On Jan 17, 2013, at 5:31 PM, Stéphane Corlosquet <scorlosquet@gmail.com<mailto:scorlosquet@gmail.com>> wrote:



On Thu, Jan 17, 2013 at 11:09 AM, Gregg Kellogg <gregg@greggkellogg.net<mailto:gregg@greggkellogg.net>> wrote:
On Jan 17, 2013, at 5:03 PM, Stéphane Corlosquet <scorlosquet@gmail.com<mailto:scorlosquet@gmail.com>> wrote:

http://www.w3.org/TR/rdfa-in-html/#additional-rdfa-processing-rules

"If no datatype is specified, and the value does not match any of the automatically detected xsd datatypes, a plain literal must be generated with the associated language of the node, if available. "

Could we be more precise regarding datatype here, and use "datatype attribute" instead of datatype. I'm particularly interested in the case where there is an empty datatype attribute with @datetime.
to give more context, I found this part of the spec not very clear while working on the easyrdf RDFa parser.

in other words, what does "no datatype" means? does it include the scenario when there is no datatype attribute and also when there is an empty datatype attribute? or the former only? then what happens in the case of the later?

In this context, "no datatype" means that there is no @datatype attribute. If you have @datatype="", you have specified a datatype, which is the empty datatype; this is consistent with the (former) treatment of plain literals from non-text nodes.

It seems to me that a plain literal could be generated when there is an empty @datatype (in line with RDFA-CORE).

Yes.

To make a concrete proposal, add "If an empty datatype is present" to the second sentence:
[[[
If datatype is specified, it must take precedence. If no datatype is specified, and the value does not match any of the automatically detected xsd datatypes, a plain literal must be generated with the associated language of the node, if available.
]]]
would become
[[[
If datatype is specified, it must take precedence. If an empty datatype is present, or if no datatype is specified and the value does not match any of the automatically detected xsd datatypes, a plain literal must be generated with the associated language of the node, if available.
]]]

Yes, but I thought you preferred saying "if there is no @datatype attribute", to if the datatype is not specified.

Gregg

Steph.


+1

Gregg

--
Steph.





--
Steph.
Received on Thursday, 17 January 2013 18:10:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:19:58 UTC