On Wed, 2011-11-09 at 10:00 +0100, toñin bermejo morales wrote: 
> Hello,
> 
> I'm working on a Java application which uses the Jena library in order to 
> extract information from an ontology (Protégé 4.1).
> Then, here is my problem explained:
> 
>  - I have created an ontology in Protégé and some individuales who will 
> belong to differente classes dependind on the Pellet inferences, based on 
> SWRL rules.
>  - I'd like to execute the Pellet reasoner and extract the inferences 
> (classes to which the individuals belong), based on the SWRL rules.
>  - And I want to do it through Jena in Java.
> 
> I'm trying to do it by plenty of different ways but I can't success.

This sounds like a question for the Pellet list.

Jena has no specific support for SWRL rules. Pellet does support the
Jena Reasoner interface so you should be able to create an InfModel (or
OntModel) over your data using PelletReasonerFactory [1]. If that
doesn't work for SWRL rules then you may need some Pellet-specific code.

As a piece of debugging advice, I would start by declaring some simple
relationship in pure OWL (no SWRL) and check that your set up correctly
sees those inferences. If that works but SWRL doesn't work then you have
something more specific to ask the Pellet folks.

Dave

[1] http://clarkparsia.com/pellet/faq/using-pellet-in-jena/



Reply via email to