owlim-discussion  

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

Ivan Peikov
Fri, 28 May 2010 06:46:40 -0700

Hi Andrew, Jacek,

Indeed, this is verified to be a bug in SwiftOWLIM. It if filed in our bug 
tracker and we hope to address it in the upcoming SwiftOWLIM release.


Cheers,
Ivan

On Wednesday 19 May 2010 15:38:51 Andrew Gibson wrote:
> 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


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