2121import org .eclipse .rdf4j .model .Literal ;
2222import org .eclipse .rdf4j .model .Value ;
2323import org .eclipse .rdf4j .model .ValueFactory ;
24- import org .eclipse .rdf4j .model .datatypes .XMLDatatypeUtil ;
2524import org .eclipse .rdf4j .model .impl .BooleanLiteral ;
2625import org .eclipse .rdf4j .model .vocabulary .FN ;
2726import org .eclipse .rdf4j .model .vocabulary .RDF ;
@@ -2766,8 +2765,7 @@ public ValueConstant visit(ASTRDFLiteral node, Object data)
27662765 // invalid URI
27672766 throw new VisitorException (e .getMessage ());
27682767 }
2769- String normalized = XMLDatatypeUtil .normalize (label , datatype );
2770- literal = valueFactory .createLiteral (normalized , datatype );
2768+ literal = valueFactory .createLiteral (label , datatype );
27712769 }
27722770 else if (lang != null ) {
27732771 literal = valueFactory .createLiteral (label , lang );
@@ -2783,9 +2781,7 @@ else if (lang != null) {
27832781 public ValueConstant visit (ASTNumericLiteral node , Object data )
27842782 throws VisitorException
27852783 {
2786- IRI datatype = node .getDatatype ();
2787- String label = XMLDatatypeUtil .normalize (node .getValue (), datatype );
2788- Literal literal = valueFactory .createLiteral (label , datatype );
2784+ Literal literal = valueFactory .createLiteral (node .getValue (), node .getDatatype ());
27892785 return new ValueConstant (literal );
27902786 }
27912787
0 commit comments