We're updating the issue view to help you get more done. 

Support chained datatype and language normalisers in RDFParserBase

Description

RDFParserBase in Sesame-2.7.0 chooses the first DatatypeHandler or LanguageHandler that is recognised from the list found in ParserConfig.get(BasicParserSettings.DATATYPE_HANDLERS) and attempt to normalise using it, and if normalisation is not enabled then it defaults to returning a backup literal created using the given ValueFactory.createLiteral(String, URI) or ValueFactory.createLiteral(String, String) method.

This behaviour could be easily changed to allow chaining of DatatypeHandlers and LanguageHandlers to enable iterative normalisation. The default behaviour would not be changed, but the outcome of one normalisation would be used as the input for future verifications down the list. This would include cases where the datatype URI changes as a result of normalisation, perhaps to make it compatible with other DatatypeHandlers.

Environment

None

Status

Assignee

Peter Ansell

Reporter

Peter Ansell

Labels

None

Components

Fix versions

Affects versions

2.7.0

Priority

Minor