rdf:XMLLiteral is logged (incorrectly) as unknown datatype

Description

Looks like a bug in RDFParserBase.java

'http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral' is not recognized as a supported xsd datatype. (167, 373)

/**

  • Checks whether the supplied datatype is a built-in XML Schema datatype.
    */
    public static boolean isBuiltInDatatype(URI datatype) {
    return isPrimitiveDatatype(datatype) || isDerivedDatatype(datatype);
    }

/**

  • Creates a {@link Literal} object with the supplied parameters.
    */
    protected Literal createLiteral(String label, String lang, URI datatype)
    throws RDFParseException
    {
    if (datatype != null) {
    if (verifyData && datatypeHandling != DatatypeHandling.IGNORE) {
    if (!XMLDatatypeUtil.isBuiltInDatatype(datatype)) {
    // report a warning on all unrecognized datatypes
    if (datatype.stringValue().startsWith("xsd")) {
    reportWarning("datatype '" + datatype
    + "' seems be a prefixed name, should be a full URI instead.");
    }
    else {
    reportWarning("'" + datatype + "' is not recognized as a supported xsd datatype.");
    }
    }
    }

Environment

None

Status

Assignee

Jeen Broekstra

Reporter

James Leigh

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure