On 14/11/12 09:58, José Raúl Ruiz Sarmiento wrote:
Hi all,

I'm trying to get the restrictions on a class using Jena and the Pellet
reasoner. I've read here
http://clarkparsia.com/pellet/faq/different-results/ that pellet doesn't
return these restrictions as superclasses, as the Jena reasoner does. So my
question is: How could I retrieve them?

I've this standalone code (thanks to Ian):

https://gist.github.com/4065533

If all you want to do is retrieve the restrictions that are in the data then create an OntModel without a reasoner. You can always have multiple OntModels over the same underlying model so that doesn't stop you also having a Pellet-backed model in parallel.

Dave


Reply via email to