Error thrown when the type of a term is unexpected.
Code working with RDF might expect that a term (e.g. the object of a
statement is of a specific term type (e.g. Literal}). When unmet, code might be strict and throw an error representing the failed expectation.
Error thrown when the type of a term is unexpected.
Code working with RDF might expect that a term (e.g. the object of a statement is of a specific term type (e.g.
Literal}). When unmet, code might be strict and throw an error representing the failed expectation.Remarks
The underlying error's
termis the one whose type was unexpected.Example: Trying to map a named node 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 with the following message.
See