I have a questions regarding to the Jena API.
I wrote some rules that are working perfectly but with one thing I still have a problem. I hope you can help me with it.
Comparison of two integer
In my rules I need a comparison like "GreaterThan". I searched long for it but not a single version worked. I tried GreaterThan(?x, ?y)
as part of the rule as well as the namespace
swrlb:
<http://www.w3.org/2003/11/swrlb#>
with its function
swrlb:GreaterEqual
, but both did not worked.
The rule looks like follows:
[r0: (?x es:has_intensity ?I), GreaterThan(?I, 2) -> (?x es:test "true")]
or my alternative:
[r0: (?x es:has_intensity ?I), (?I swrlb:Greater 2) -> (?x es:test "true")]