Not really. Using the API, the equivalent code would require a get,
remove and add calls:
Statement stmt = aConn.get().predicate(p).context(g).statement();
aConn.remove().statement(stmt);
aConn.add().statement(stmt.getSubject(), p, Values.literal(cal), g);
> Secondly, any idea what the error means?
SPARQL update queries are executed in their own transaction so if you
have an explicit Connection.begin() tat would explain the exception.
Otherwise, we'd need to see the complete code to see what is going on.
As a side note, the delete clause in your SPARQL update query seems to
be missing the graph clause.
Best,
Evren
>
> --
> -- --
> You received this message because you are subscribed to the C&P "Stardog"
> group.
> To post to this group, send email to
sta...@clarkparsia.com
> To unsubscribe from this group, send email to
>
stardog+u...@clarkparsia.com
> For more options, visit this group at
>
http://groups.google.com/a/clarkparsia.com/group/stardog?hl=en