protegeproject / swrlapi

Java API for working with the SWRL rule and SQWRL query languages
Other
99 stars 40 forks source link

Using Drools Engines with SWRLAPI #26

Closed hgasmi closed 7 years ago

hgasmi commented 7 years ago

Hi,

I am trying make SWRLAPI use the Drools engine so I setup my project in the same way as the sample below:

https://github.com/protegeproject/swrltab/blob/master/pom.xml

When the project is built I can see the swrlapi-drools-engines.jar as one of the loaded dependencies. However, when I run my code it doesnt seem to be engaged. and when I print the Rule engine class:

SQWRLQueryEngine queryEngine = createSQWRL_Engine(ontology); System.out.println(queryEngine);

I get

org.swrlapi.factory.DefaultSWRLRuleAndQueryEngine@3f34edfc

Is there a way in the swrlapi to select which engine to use??

Thanks.

hgasmi commented 7 years ago

After inspecting the queryEngine object and calling the getEngineName method, it turned out the drool engine is used. So closing the issue.