I am using SWLR API in Eclipse so as to be able to execute sqwrl queries about a data base ontology I created. When trying to run commands of the type 'abox', specifically I have tried with 'abox:hasClass(IndividualName, ?c) -> sqwrl:select(?x)', I obtain the following error:
org.swrlapi.parser.SWRLParseException: Invalid SWRL atom predicate 'abox:hasClass' at org.swrlapi.parser.SWRLParser.generateEndOfRuleException(SWRLParser.java:488) at org.swrlapi.parser.SWRLParser.parseSWRLAtom(SWRLParser.java:219) at org.swrlapi.parser.SWRLParser.parseSWRLRule(SWRLParser.java:115) at org.swrlapi.factory.DefaultSWRLAPIOWLOntology.createSQWRLQuery(DefaultSWRLAPIOWLOntology.java:265) at org.swrlapi.factory.DefaultSWRLAPIOWLOntology.createSQWRLQuery(DefaultSWRLAPIOWLOntology.java:259) at org.swrlapi.factory.DefaultSWRLRuleAndQueryEngine.createSQWRLQuery(DefaultSWRLRuleAndQueryEngine.java:145) at org.swrlapi.factory.DefaultSWRLRuleAndQueryEngine.runSQWRLQuery(DefaultSWRLRuleAndQueryEngine.java:154) at predict_maint.OntologyDataBase.main(OntologyDataBase.java:358)
The commands of 'tbox', on the contrary, work perfectly, and both corresponding packages are included in the libraries of the project (org.swrlapi.builtins.abox and org.swrlapi.builtins.abox respectively).
Thank you for your help.