Skip to content

Update triples fails #11

@ioleo

Description

@ioleo

I'm trying to update a triple by issuing

// val graph: BlazeGraphEmbedded
// val id: String = "subject id"
graph.update(
  s"""
     |
     |DELETE WHERE {
     |  <$id> ?p ?o
     |}
     |""".stripMargin
)
graph.commit()

graph.update(
  s"""
     |
     |INSERT DATA {
     |  <$id> somePredicate someObject ;
     |     anotherPredicate anotherObject .
     |}
     |""".stripMargin
)
graph.commit()

and I'm getting

java.lang.RuntimeException: org.openrdf.query.UpdateExecutionException: java.lang.IllegalStateException: Already assigned: old=TermId(10B), new=t10, this: _:t10

What is going on? Any way to workaround this issue?

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