grafter icon indicating copy to clipboard operation
grafter copied to clipboard

No implementation of method: :sesame-rdf-type->type exists for BooleanLiteralImpl

Open lkitching opened this issue 6 years ago • 0 comments

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.

lkitching avatar Sep 13 '18 13:09 lkitching