[Pellet-users] Pronto: OWLOntologyCreationException not found
asru83 at alice.it
asru83 at alice.it
Sat May 17 10:27:21 UTC 2008
Dear Pellet users and developers,
I have a problem with execution of a JUnit test on Pronto-based application: it's impossible to find an exception class (but I did all necessary imports)
The code of my JUnit test is:
import org.mindswap.pellet.utils.ATermUtils;
import com.clarkparsia.pronto.ConditionalConstraint;
import com.clarkparsia.pronto.PSATSolverImpl;
import com.clarkparsia.pronto.ProbKnowledgeBase;
import com.clarkparsia.pronto.ProntoLexicographicReasoner;
import com.clarkparsia.pronto.ProntoReasoner;
import com.clarkparsia.pronto.exceptions.OntologyLoadingException;
import com.clarkparsia.pronto.io.KBStandaloneLoader;
import junit.framework.TestCase;
public class ProntoTest extends TestCase {
public void testOntology(){
ProbKnowledgeBase pkb = null;
try {
pkb = new KBStandaloneLoader().load("http://clarkparsia.com/pronto/cancer.owl");
} catch (OntologyLoadingException e) { // TODO Auto-generated catch block
e.printStackTrace();
}
//Load the probabilistic knowledge base
ProntoReasoner reasoner = new ProntoLexicographicReasoner( new PSATSolverImpl() ); //Create the reasoner
ConditionalConstraint awfCC = reasoner.subsumptionEntailment(pkb, ATermUtils.makeTermAppl( "http://www.ece.uc/~klinovp/pronto/cancer/cancer_ra.owl" ),ATermUtils.makeTermAppl( "http://www.ece.uc/~klinovp/pronto/cancer/cancer_ra.owl#Person" ) ); //Probabilistic entailment
assertEquals( 0.1, awfCC.getLowerBound(), 0.0001 ); //Verifying the results
assertEquals( 0.5, awfCC.getUpperBound(), 0.0001 );
}
}
And during test execution there is this message:
Testcase: testOntology(ProntoTest): Caused an ERROR
org/semanticweb/owl/model/OWLOntologyCreationException
java.lang.NoClassDefFoundError: org/semanticweb/owl/model/OWLOntologyCreationException
at ProntoTest.testOntology(ProntoTest.java:21)
The statement throwing error is:
pkb = new KBStandaloneLoader().load("http://clarkparsia.com/pronto/cancer.owl");
Thanks to who help me (or try helping me)
Andrea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.owldl.com/pipermail/pellet-users/attachments/20080517/087cb5d0/attachment.htm
More information about the Pellet-users
mailing list