owlim-discussion  

Re: [Owlim-discussion] org.openrdf.repository.RepositoryConnection.clear(context)

Andrew Gibson
Wed, 19 May 2010 06:21:46 -0700

Hi Ivan, Jacek,

I'm glad someone else has found this. I also had this problem when experimenting with SwiftOWLIM, where the repository was totally cleared when trying to remove a context through the OpenRDF workbench. The context I was trying to remove definitely did exist so I think the problem may be more than just a bug with clearing an unknown context.

One guess might be the format of the provided context that is being cleared. Sesame expects the context to be provided in angle brackets - i.e. <context> - perhaps owlim does not expect this and so regards it as an unknown context, and therefore clears everything because of the bug?

I use context a lot for maintaining content and can not really start using OWLIM until this is working :-( which is a shame as I really could use its functionality.

Cheers,
Andrew

Ivan Peikov wrote:
Hey!

One possible reason for the described behavior would be that clear() was called with some context that OWLIM didn't recognize. In the current implementation of BigOWLIM, clearing an unknown context clears the whole repository. So beware, until this bug is fixed.

Inferred triples will be automatically removed unless they were inferred by other reasons as well.


Cheers,
Ivan

On Tuesday 18 May 2010 23:39:18 J.Kopecky wrote:
Hiya,

we use OWLIM through Sesame and it seems that the function
RepositoryConnection.clear(context) clears the whole knowledge base, not
only the triples from the given context, as I understand it should.

Is this (clearing the whole KB) the expected functionality? If so, how can
one best remove just all the triples from a given context? Also, will this
remove the triples that are implied by the contents of this context?

Thanks,
Jacek


_______________________________________________
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion


--
Dr Andrew Gibson
Universiteit van Amsterdam
_______________________________________________
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion