although this question may seem duplicate, I think it is not,
In brief:
What to use for SWRL rules with OWL API 5.1.0, where can I find a tutorial or some examples.
Details:
It seems the latest version of SWRL API is 2.0.5 and swrlapi-drools-engine 2.0.5 are not compatible with OWL API 5.1.0.
I have a project that is fully built using OWL API 5.1.0, I want to utilise SWRL as suggested here: SWRLAPI
// Create a SWRL rule engine using the SWRLAPI
SWRLRuleEngine swrlRuleEngine = SWRLAPIFactory.createSWRLRuleEngine(ontology);
That code eventually calls this
SWRLAPIOWLOntology swrlapiowlOntology = new DefaultSWRLAPIOWLOntology(ontology, iriResolver);
which calls this
iriResolver.updatePrefixes(this.ontology);
That generates the exception:
Exception: java.lang.NoSuchMethodError. Message: org.semanticweb.owlapi.model.OWLDocumentFormat.isPrefixOWLOntologyFormat()Z
Kindly, What do you suggest?
Thanks in advance for your time, and for Ignazio and Galigator
Sincere regards