Table 1.
The Built-Ins in SWRL.
| Built-In | Example | Example Explanation |
|---|---|---|
| Comparisons | swrlb:equal | If the first argument and the second argument are the same. |
| Math | swrlb:abs | If the first argument is the absolute value of the second argument. |
| Boolean Values | swrlb:booleanNot | If the first argument is true and the second argument is false, or vice versa. |
| Strings | swrlb:startsWith | If the first argument starts with the second argument. |
| Date, Time and Duration | swrlb:time | If the first argument is the xsd:time representation, followed by arguments of hours, minutes, seconds and timezone. |
| URIs | swrlb:anyURI | If the first argument is a URI reference, followed by arguments of scheme, host, port, path, query and fragment. |
| Lists | swrlb:empty | If the first argument list is empty. |