Error thrown when the datatype of a literal term is unexpected.
Code working with RDF might expect that a term (e.g. the object of a statement is a literal with a specific datatype (e.g. xsd:int). When unmet, code might be strict and throw an error representing the failed expectation.
Error thrown when the datatype of a literal term is unexpected.
Code working with RDF might expect that a term (e.g. the object of a statement is a literal with a specific datatype (e.g.
xsd:int). When unmet, code might be strict and throw an error representing the failed expectation.Remarks
The underlying error's
termis the literal whose datatype was unexpected.Example: Trying to map a string to a number
Consider the following mapping class, which expects a numeric literal:
Given the following RDF, which does not meet the above expectation:
invoking the mapping code in the following manner:
will result in this error being throw.
See