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

Update triples fails #11

Open
ioleo opened this issue Jun 21, 2023 · 0 comments
Open

Update triples fails #11

ioleo opened this issue Jun 21, 2023 · 0 comments

Comments

@ioleo
Copy link

ioleo commented Jun 21, 2023

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?

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