Joakim Ohlrogge
Joakim Ohlrogge
I tried with a construct query using the resulting graph in the store.delete method. I inspected the graph to see that it contained the triples I expected it to and...
Looking in chrome I can see that the store is not emptied but it seems that no nodes can be reached from my root node. The IndexDB-store does not behave...
I have made a small example that shows one of the problems I've been having: ``` javascript window.onload = function main() { rdfstore.create({persistent:true, name:'test',clear:true}, function(err, store) { store.registerDefaultProfileNamespaces(); store.setPrefix('h', 'http://example.com/hoard/1.0/');...
I'm not sure about this but it seem like shouldIndex should be `false` when calling `normalizeQuad` from `QueryEngine.prototype._executeQuadDelete`. It also seems like the indexDB store unregisters URLs prematurely from the...
A stab in the dark is that the `counter` attribute on the URL is ignored in (or before) unregister.
Now uncommented `var request = transaction.objectStore("uris").delete(oid);` in Lexicon.prototype._unregisterTerm` and my code works (of course no URI's are deleted which is a flaw). I guess what should happen is that the...
ping @antoniogarrote
No worries, I have experimented with my idea in my last comment. It seems to do the trick but I'm not totally sure that the counter-field is always correctly incremented....
I pushed my fixes (work in progress) https://github.com/johlrogge/rdfstore-js/commit/7e423fa2970cfdaa570d0517b797d12c71661d04
@antoniogarrote I wonder if I have misounderstood the purpose of the counter attribute in `persistent_lexicon.js`. I thought it was intended for reference counting in order to be able to determine...