protegeproject / swrlapi

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

Exception: built-in not yet implemented #35

Closed mingzhenjun closed 7 years ago

mingzhenjun commented 7 years ago

Hello,

I tried to use the built-in swrlb:listIntersection (which is a defined built-in in the SWRLTab) in protege 5.2.0 and it threw an exception saying "built-in not yet implemented". It seems that the method swrlb:listIntersection has not been implemented in this version. Do I need to implement the method? If I use the SWRLBuiltInBridge component, are the steps the same as defining a new built-in methods?

Best regards, Zhenjun Ming

martinjoconnor commented 7 years ago

List built-ins were not implemented because there are no canonical lists in OWL so it is not clear what they would operate on.

For querying purposes you could use SQWRL collections:

https://github.com/protegeproject/swrlapi/wiki/SQWRLCollections

Note that these collections are for querying purposes only. They cannot be used in SWRL rules to make inferences.