grafter
grafter copied to clipboard
No implementation of method: :sesame-rdf-type->type exists for BooleanLiteralImpl
The following code:
(require '[grafter.rdf.repository :as repo])
(let [r (repo/sail-repo)]
(repo/query r "SELECT ?b WHERE { BIND(true as ?b) }"))
throws the following exception:
IllegalArgumentException No implementation of method: :sesame-rdf-type->type of protocol: #'grafter.rdf.io/ISesameRDFConverter found for class: org.openrdf.model.impl.BooleanLiteralImpl
The implementation of ISesameRDFConverter
contains a definition for ->sesame-rdf-type
but not sesame-rdf-type->type
so the boolean literal in the binding cannot be converted. Add an implementation which unwraps the inner java boolean value.