mb:yw4OpdwX mb:entry "Awesome things to do in California" .
conn.database = 'test' conn.connection.onlineDB( { database: conn.database, strategy: "NO_WAIT" }, function () { conn.connection.begin({ database: conn.database }, function (body, response) {
// Our new awesome transaction id txId = body;
conn.connection.addInTransaction( { database: conn.database, "txId": txId, "body": triples }, function (body2, response2) { conn.connection.commit({ database: conn.database, "txId": txId }, function (body3, response3) {
cb(null, values) }); } ); }); });
<m.yw4OpdwX> <rdf:label> "Awesome things to do in California" .
--
-- --
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
Insertion with the query() function works fine. The problem occurs only when using the transaction method.
Using this method with addInTransaction does not work for the given triple. (I don't get an error but the triple is not inserted.conn.connection.addInTransaction({ database: 'semantic', "txId": txId, "body": "mb:yw4OpdwX mb:entry "Awesome things to do in California" ." },