Hello Chris,

seems like the repository is not public yet? I get an "access denied" message when I follow the link.

Moreover, why aren't you forking the official Pellet repo at [1]? And if you have a look at [2], there is the clearAbox() method, which is what you were looking for, right?

Regards,
Lorenz

[1] https://github.com/Complexible/pellet
[2] https://github.com/Complexible/pellet/blob/master/core/src/main/java/org/mindswap/pellet/KnowledgeBase.java#L570
I have the Jena3/Pellet integration working.

The code is here: https://bitbucket.org/blackburnphd/ontometa/src under the 
Jena3Pellet folder.

I’m using Maven and pulling in the latest Pellet core which is 2.3.6 -ansell. 
Which is from 2013 and does not contain the clearABox methods.

I’m going to post to the Pellet list and see if they can get a new Maven 
release (and maybe even add the Jena3 connector).

Thanks everyone for the help.

Chris


On Dec 10, 2015, at 4:15 PM, Chris Snyder <csny...@mind-tap.net> wrote:

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





--
Lorenz Bühmann
AKSW group, University of Leipzig
Group: http://aksw.org - semantic web research center

Reply via email to