[Pellet-users] addInverseProperty() exception
Tiziano Furlan
t.furlan at gmail.com
Mon Apr 7 18:59:45 UTC 2008
Here is the code I'm using:
kb.addProperty(ATermUtils.makeTermAppl(pName.toString()));
Role r = kb.getRBox().getRole(ATermUtils.makeTermAppl(pName.toString()));
r.setType(Role.OBJECT);
done for both properties. After that I search for p1 and p2 ciclying on
kb.getProperties() and then
kb.addInverseProperty(p1, p2);
that gives the exception.
Evren Sirin ha scritto:
> Can you provide a complete example that shows the problem? Looking at
> the info provided all I can guess is one of the properties is declared
> as a datatype propertyso it cannot have an inverse causing the problem.
>
> Cheers,
> Evren
>
> On 4/3/08 9:57 AM, Tiziano Furlan wrote:
>> Hi,
>>
>> I'm receiving a NullPointerException when using the KnowledgeBase
>> method addInverseProperty(p1, p2) on RBox.java at line 292.
>>
>> Both the properties I'm passing to the addInverseProperty() exists,
>> but it seems that the roleS.getInverse() method on RBox.java returns
>> null.
>>
>> I'm using the 1.5.1 release.
>>
>> Any idea on how to solve this problem?
>>
>> Thanks
>>
>> Tiziano
>> _______________________________________________
>> Pellet-users mailing list
>> Pellet-users at lists.owldl.com
>> http://lists.owldl.com/mailman/listinfo/pellet-users
>> _______________________________________________
>>
>> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
>>
>
>
More information about the Pellet-users
mailing list