This is not a Jena issue. The KnowledgeBase class is in org.mindswap.pellet.
Looking into it. Mindtap Inc Chris Snyder csny...@mind-tap.net 561-374-8772 4769 Pepper Bush Ln Boynton Beach, FL 33436 > On Dec 10, 2015, at 4:10 PM, Chris Snyder <csny...@mind-tap.net> wrote: > > Perfect. > > I updated the bulkLoad to add the triples 1 by 1. > > The last error to fix is the missing clearABox() method: > > protected KnowledgeBase kb; > > public GraphLoader getLoader() { > return loader; > } > > public void clear() { > if (loader.isLoadTBox()) { > kb.clear(); > } > else { > kb.clearABox(); > } > loader.clear(); > } > > Thanks, > Chris > > >> On Dec 10, 2015, at 4:02 PM, A. Soroka <aj...@virginia.edu> wrote: >> >> In this case, you could use WrappedIterator to get an ExtendedIterator impl: >> >> return WrappedIterator.create(i).filterKeep(new UniqueFilter<>()); >> >> or >> >> return WrappedIterator.create(i).filterKeep(new FilterUnique<>()); >> >> (I’m not really sure why we have two of those. We could probably get rid of >> one.) >> >> Or if you really only need an Iterator, you could use Iter::distinct: >> >> return Iter.distinct(i); >> >> --- >> A. Soroka >> The University of Virginia Library >> >>> On Dec 10, 2015, at 3:56 PM, Chris Snyder <csny...@mind-tap.net> wrote: >>> >>> Thanks. >>> >>> It looks like the TripleMatch was just a method override that was no longer >>> in the base class. I just had to delete the override. >>> >>> I also need to know how to replace the UniqueExtendedIterator in the code >>> below. The Jena2 to Jena3 guide says: UniqueExtendedIterator: use >>> ExtendedIterator with unique filter, but ExtendedIterator is an interface. >>> >>> ExtendedIterator<Triple> i = GraphQueryHandler.findTriple( kb, this, >>> subject, predicate, object ); >>> return UniqueExtendedIterator.create( i ); >>> >>> >>> Thanks, >>> Chris >>> >>>> On Dec 10, 2015, at 3:26 PM, A. Soroka <aj...@virginia.edu> wrote: >>>> >>>> I believe that TripleMatch has “dissolved” into Predicate<Triple>. >>>> >>>> --- >>>> A. Soroka >>>> The University of Virginia Library >>>> >>>>> On Dec 10, 2015, at 1:59 PM, Chris Snyder <csny...@mind-tap.net> wrote: >>>>> >>>>> Hello, >>>>> >>>>> I am updating a copy of the Jena2 pellet integration to work with Jena3. >>>>> >>>>> I made most of the changes but there are some bits that I need yet to >>>>> refactor and I am not sure what the replacement should be. They are: >>>>> >>>>> Missing class: >>>>> org.apache.jena.graph.TripleMatch >>>>> >>>>> Missing method: >>>>> Graph getBulkUpdateHandler() >>>>> >>>>> Missing method: >>>>> KnowledgeBase clearABox() >>>>> >>>>> If anyone has input on how these should be replaced. Please let me know. >>>>> >>>>> Thanks, >>>>> Chris >>>>> >>>>> >>>>> >>>> >>> >> >