Re: [pellet-users] Pellet wont precompute inferences

34 views
Skip to first unread message

Ignazio Palmisano

unread,
Oct 10, 2017, 4:34:32 PM10/10/17
to pellet...@googlegroups.com


On 10 Oct 2017 11:26, "Jose Martins" <josema...@gmail.com> wrote:
I'm using pellet and trying to precompute inferences to then save them back to the ontology. However, pellet says it fails to precompute the class assertions:
OWLOntologyManager ontologyManager = OWLManager.createOWLOntologyManager();
OWLOntology ontology  = ontologyManager.loadOntologyFromOntologyDocument(new File("D:/TestsOWL/myont.owl"));
                 PelletReasonerFactory factor = new PelletReasonerFactory();
         PelletReasoner reasoner = factor.createReasoner(ontology);
 reasoner.precomputeInferences(InferenceType.values());
 if(reasoner.isPrecomputed(InferenceType.CLASS_ASSERTIONS)){


Should this be
if(!reasoner.isPrecomputed(...
?

I.


System.out.println("Failed to precompute!");
 }

This prints "Failed to precompute". I have no idea what to do. Help?


--
You received this message because you are subscribed to the Google Groups "Pellet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pellet-users+unsubscribe@googlegroups.com.
To post to this group, send email to pellet...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pellet-users/8cf99c59-9e9b-49c2-b07d-93cd18c0182a%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages