ISSUE-57: TypedLiteralConverter Failures and Exceptions

Converter failure

TypedLiteralConverter Failures and Exceptions

State:
CLOSED
Product:
RDFa 1.1 API
Raised by:
Nathan Rixham
Opened on:
2010-10-28
Description:
The RDFa API document currently states:

"The return value upon conversion failure is being actively discussed in the RDFa WG. There are proposals to raise exceptions upon conversion failure, proposals to return tuples containing conversion success/failure and the converted value, as well as other mechanisms that would allow the signalling of a conversion failure from the method to calling code."

After implementing it is clear that Exceptions should not be thrown, and that TypedLiterals *must* always be created, valueOf() functionality is additional functionality provided by the API, however this is not a requirement of parsing RDFa Documents, a TypedLiteral can be created regardless of having TypedLiteral conversion.

Another proposal is that failures in conversion are handled the same as TypedLiterals which have no converter registered.

Which raises the issue that we have not defined what valueOf() should return when no appropriate TypedLiteralConverter is registered.
Related Actions Items:
No related actions
Related emails:
  1. Re: PROPOSAL to close ISSUE-57: TypedLiteralConverter Failures and Exceptions (from nathan@webr3.org on 2010-11-11)
  2. Re: PROPOSAL to close ISSUE-57: TypedLiteralConverter Failures and Exceptions (from tai@g5n.co.uk on 2010-11-11)
  3. PROPOSAL to close ISSUE-57: TypedLiteralConverter Failures and Exceptions (from msporny@digitalbazaar.com on 2010-11-10)
  4. Re: API question (from nathan@webr3.org on 2010-11-01)
  5. Re: ISSUE-57: TypedLiteralConverter Failures and Exceptions (from nathan@webr3.org on 2010-11-01)
  6. Re: ISSUE-57: TypedLiteralConverter Failures and Exceptions (from nathan@webr3.org on 2010-10-28)
  7. RDFa WG telecon minutes for 2010-10-28 (from msporny@digitalbazaar.com on 2010-10-28)
  8. RDFa API new Issues - summary (from nathan@webr3.org on 2010-10-28)
  9. ISSUE-57: TypedLiteralConverter Failures and Exceptions (from sysbot+tracker@w3.org on 2010-10-28)

Related notes:

Closed after checking with Toby on whether or not his comment was an objection, and no other objections to PROPOSAL in time allotted.

http://www.w3.org/2010/02/rdfa/meetings/2010-12-02

Manu Sporny, 2 Dec 2010, 17:18:31

Display change log ATOM feed


Chair, Staff Contact
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: 57.html,v 1.1 2015/03/27 14:12:25 vivien Exp $