I'm using stardog.js to update a database.I've got two issues:1. It only works if I post it one triple at a time. When I post the whole thing at once I get a 200 response code, but nothing in the database.
--
-- --
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
Hi,On Wed, Mar 27, 2013 at 11:22 PM, <sita...@gmail.com> wrote:
I'm using stardog.js to update a database.I've got two issues:1. It only works if I post it one triple at a time. When I post the whole thing at once I get a 200 response code, but nothing in the database.This is weird, are you calling the `commit` function after the `addInTransaction` function?I did a small test case for your data, and it seems to be working: https://gist.github.com/edgarRd/5264217Having the stardog.js code from master branch, you should be able to run it with (in the repo):$ node_modules/jasmine-node/bin/jasmine-node spec/testAddInTransaction.jsRunning the test in a clean DB works fine adding all the 20 triples. After running the test case, you can query the DB and all triples should be there.After running the test in 1. I found the blank nodes to be fine (not literals), here's the output of querying the DB after running the test case in 1.2. When I push it, my blank nodes are not reassigned ids - they are stored as literal ids, it seems. This means that when they are pushed one-by-one (and persist) they are meaningful, but it means that I have to use unique blank node identifiers.