Optional
strValue: stringOptional
language: stringa string representing the datatype. Can be of type
Optional
languagethe language, mainly for language enabled strings like RDF_LANG_STRING
Optional
strthe string value of this literal. In other words, the string representing the RDF.literal value.
internal representation of this literal's value
This class is used when a literal is parsed, and it's value is an invalid lexical form for it's datatype. The spec defines value with invalid lexical form are still valid terms, and as such we can not error immediately. This class makes sure that the typedValue will remain undefined, and the category 'nonlexical'. This way, only when operators apply to the 'nonlexical' category, they will keep working, otherwise they will throw a type error. This seems to match the spec, except maybe for functions that accept non-lexical values for their datatype.
See: