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