From: Antoni M. <ant...@gm...> - 2008-09-04 19:23:08
|
Grant Ingersoll pisze: > Is this a bug in RDF2Go or am I doing something wrong? > > On Aug 28, 2008, at 12:21 PM, Grant Ingersoll wrote: > >> Thanks so much for all of your help on this one! I am still a bit >> confused on what is going on. Here is some code that I wrote that I >> think illustrates my confusion with all of this (built in the Aperture >> trunk src/test/org/semanticdesktop/aperture directory): >> >> Could someone try it out and tell me what I am doing wrong? That is, >> why is model2 empty the second time the method second() is called >> (after doing crawler.clear() (substituting in model.removeAll() has >> the same results) but if I comment out that single line, model2 stays >> intact and everything works as expected (i.e. the second DataSource >> finds no new objects). I was under the impression, from Antoni's >> first email on this thread (way back when), that I could create >> separate ModelAccessData's in the same native store as long as I have >> separate contexts. I'm guessing that I am doing this wrong, but I am >> not sure how else to do it. >> Sorry for a late reply. I couldn't figure out what's the problem a week ago and moved to a new flat in the meantime :). Now I returned to it and found the culprit, Your code is correct. It is a bug in the rdf2go adapter implementation. the removeAll() method from the RepositoryModel class deletes everything from all contexts, which is wrong. A model should only work on a SINGLE context. I'll try to pull appropriate strings to get this fixed asap. Thanks for the report, and once again sorry for the delay. Antoni Mylka ant...@gm... |