Hello Lorenz,

I’m fairly new to GIT so without knowing what was going to be involved in 
contributing to the main code line I just wanted to get something working 
quickly. I have since forked the main branch. 

I tried to get the code working with Eclipse (which I have been working in) 
without much luck. I switched over to IntelliJ which seems to pull in all the 
projects correctly but I can’t seem to get the ANTLR v3 grammars to generate 
their source files through the IDE (I think if i had an older version of 
IntelliJ it might work with ANTLR v3 but I’m using the latest version) . I 
started on a new tangent of converting the ANTLR files to v4 (v4 is so much 
nicer than v3 btw) but that will take some work. I needed to make adjustments 
to the the POM files to use the different Jena versions and the existing Jena 
integration has references from other projects which will need to be addressed 
(Ex. query).  

You can now see the Jena3 files here: https://github.com/kozchris/pellet
These Jena3 files will compile with the latest Pellet master code and use the 
clearAbox() call you mentioned.

Sorry about the access denied on the other repo. I’ll need to look into that.

Thanks,
Chris


> On Dec 13, 2015, at 8:02 AM, Lorenz Bühmann 
> <buehm...@informatik.uni-leipzig.de> wrote:
> 
> 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