I get this error message
Error starting application: Error creating query engine Drools. Exception: java.lang.NoSuchMethodError. Message: 'void org.semanticweb.owlapi.util.PriorityCollection.add(java.io.Serializable)'
I am using SWRL API for Java to run SQWRL queries engine on OWL ontologies. So, I built edu.stanford.swrl swrlapi-example from Maven swrl API and swrlapi-drools-engine :2.1.0 . owlApi: :owlapi-osgidistribution 5.1.9
OWLOntologyManager ontologyManager = OWLManager.createOWLOntologyManager();
OWLOntologyManager ontologyManager = OWLManager.createOWLOntologyManager();
OWLOntology ontology = ontologyManager.loadOntologyFromOntologyDocument
(new File("Ontologies\\MFPO.owl"));
System.out.println("ontology has loaded successfully ");
// Create SQWRL query engine using the SWRLAPI
SQWRLQueryEngine queryEngine = SWRLAPIFactory.createSQWRLQueryEngine(ontology);
// Create a rule engine for mined rules
SWRLRuleEngine ruleEngine = SWRLAPIFactory.createSWRLRuleEngine(ontology);
System.out.println("swrl rule engine created successfully");
then i get this message (catched in runtime exception) Error creating query engine Drools. Exception: java.lang.NoSuchMethodError. Message: 'boolean org.semanticweb.owlapi.model.OWLDocumentFormat.isPrefixOWLOntologyFormat()'