Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lkitching opened this issue Sep 13, 2018 · 0 comments

Comments

@lkitching
Copy link
Contributor

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.

jennet pushed a commit that referenced this issue Sep 13, 2018
Fixes #136 - implemented missing method sesame-rdf-type->type on protocol ISesameRDFConverter for type BooleanLiteralImpl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant