Skip to content

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

@lkitching

Description

@lkitching

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions