Skip to content

CoreBuiltInLibrary

Martin O'Connor edited this page Oct 11, 2017 · 5 revisions

This library provides a set of standard built-ins designed to be used in SWRL rules. This set includes basic mathematical operators and routines for string and date manipulations. The built-ins in this library are defined by Core SWRL Built-in Ontology. The built-ins are described here.

All the mathematical built-ins are implemented for the standard numeric types. All Boolean and string built-ins are also implemented.

The string built-ins substringBefore and substringAfter differ slightly from the Submission in that they do not support the optional third argument described the the W3C document XQuery 1.0 and XPath 2.0 Functions and Operators.

Similarly, the implementation of the tokenize built-in does not support the optional third argument described in the W3C document; it also has a more restricted second argument pattern specification (which corresponds to the pattern supported by the core Java StringTokenizer class).

All the temporal built-ins are implemented. The SWRLAPI also provides a temporal built-in library that may be easier to use in many situations.

The built-ins for list and URI processing are not implemented.