You said it Lorenz, I just wanted to confirm this syntax is allowed in Jena
rules or not?

Thanks

On Fri, Jan 13, 2017 at 12:22 AM, Lorenz Buehmann <
[email protected]> wrote:

> And trying it out is no option for you?!
>
> What is so confusing about greaterThan and lessThan? I'm totally puzzled
> by this question as it's some kind of too obvious.
>
> greaterThan(?x, 1000) - what do you think does it mean? "?x is greater
> than 1000"
>
> lessThan(?x, 2000) - what do you think does it mean? "?x is less than 2000"
>
> greaterThan(?x, 1000), lessThan(?x, 2000)  - what do you think does it
> mean? "?x is greater than 1000 AND ?x is less than 2000"
>
>
> On 12.01.2017 20:15, tina sani wrote:
> > Well, I am not sure about greaterThan and lessThan keywords. Will this
> rule
> > execute if it encounters salary b/w 5000 and 10,000?
> >
> > On Thu, Jan 12, 2017 at 8:53 PM, Joint <[email protected]> wrote:
> >
> >>
> >> Have you tried it? What happened?
> >> "Of course this will not execute because I skip proper syntax"
> >> So you know the syntax isn't correct but still ask if it is correct..
> >> Dick
> >>
> >> -------- Original message --------
> >> From: tina sani <[email protected]>
> >> Date: 12/01/2017  14:47  (GMT+00:00)
> >> To: [email protected]
> >> Subject: Semantic Of Jena rule
> >>
> >> The syntax and semantic of this rule is correct?
> >>
> >> ?emp rdf:type URI:Employee + ?emp URI:NetSalary ?salary+
> >> greaterThan(?salary, 5000), lessThan(?salary, 10000)-> ?emp rdf:type
> >> URI:Manager
> >>
> >> Of course this will not execute because I skip proper syntax, but I
> wonder
> >> this rule will work or not if some employee have salary between 5000 and
> >> 10000.
> >> I am confuse in greaterThan and lessThan part of the rule, if it will
> work
> >> or not?
> >>
>
>

Reply via email to