While we are on this subject, I recently noticed that these inequality 
built-ins as well as stringConcat and sum are programmed for use in the body 
(antecedent) only.  This seems odd, because there are definitely use cases in 
which it's more natural to use them in the consequent.

I've made an assumption that there is no good reason for that limitation, and 
in my local installation I've extended the built-ins to allow for use in the 
consequent as well.  So far at least, this is working fine.

If i'm wrong – that is, if there is some reason for supporting just the 
antecedent – someone please let me know.

Thanks,
--- David Martin

> On Aug 26, 2016, at 1:29 AM, javed khan <[email protected]> wrote:
> 
> Thank you Niels for your time.
> 
> regards
> 
>> On Thu, Aug 25, 2016 at 12:36 PM, Niels Andersen <[email protected]> wrote:
>> 
>> See LessThan and GreaterThan here 
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__jena.apache.org_&d=CwIBaQ&c=djjh8EKwHtOepW4Bjau0lKhLlu-DxM1dlgP0rrLsOzY&r=RvcUHmbqwXWRvprio0Md4_6qsPsb-hvwu22_Hd-fP_I&m=WUFX-QfCRDL0hQ_Yys1bs3dzeqZ16ktwBMHBiMxl6kM&s=GbdF3U8HUjr-WVcrj12vZwBFlMiAibGGHPYE1DaQbPs&e=
>> documentation/inference/#builtin-primitives
>> 
>> Niels
>> 
>> -----Original Message-----
>> From: javed khan [mailto:[email protected]]
>> Sent: Thursday, August 25, 2016 11:34
>> To: [email protected]
>> Subject: Arithmetic in Jena rules
>> 
>> Can we do some mathematical/arithmetic operations on the Jena rules. For
>> instance, if we want to do something like this: if some Employee has salary
>> more than ten thousands dollars, then Employee is on Manager post.
>> 
>> Can we do this and others like (>=, <=, ==) ?
>> 
>> Any web links to the literature related to this will be highly appreciated?
>> 
>> Thank you.
>> 

Reply via email to