Open arenas-guerrero-julian opened 2 years ago
👍 ... I was just running into java.lang.ClassCastException: org.apache.commons.rdf.rdf4j.impl.LiteralImpl cannot be cast to org.apache.commons.rdf.api.IRI
trying to execute the generated mapping including a graph rr:constant
with ontop. resulting from the above described problem.
produces
which is wrong since the line:
is not correct and it should be
As specified by the R2RML specification:
Constant-valued term maps are not considered as having a term type, and specifying rr:termType on these term maps has no effect. The type of the generated RDF term is determined directly by the value of rr:constant: If it is an IRI, then an IRI will be generated; if it is a literal, a literal will be generated.
This issue comes from this issue