Discussion:
Correct syntax of rules
neha gupta
2016-11-30 17:55:25 UTC
Permalink
(1) greaterThan(?score1,?score2)^(?score1, ?score3)

(2) greaterThan(?score1,?score2)^ greaterThan(?score1, ?score3)

In Jena rules, the ist statement is correct or the second?
Dave Reynolds
2016-11-30 23:03:42 UTC
Permalink
Post by neha gupta
(1) greaterThan(?score1,?score2)^(?score1, ?score3)
(2) greaterThan(?score1,?score2)^ greaterThan(?score1, ?score3)
In Jena rules, the ist statement is correct or the second?
Neither, conjunction of terms in Jena rules is just "," so

... greaterThan(?score1,?score2), greaterThan(?score1, ?score3) ...

Dave
neha gupta
2016-12-01 12:45:07 UTC
Permalink
Thanks Dave, its really new knowledge for me as I thought ^ is used as
AND(conjunction).
Post by Dave Reynolds
Post by neha gupta
(1) greaterThan(?score1,?score2)^(?score1, ?score3)
(2) greaterThan(?score1,?score2)^ greaterThan(?score1, ?score3)
In Jena rules, the ist statement is correct or the second?
Neither, conjunction of terms in Jena rules is just "," so
... greaterThan(?score1,?score2), greaterThan(?score1, ?score3) ...
Dave
Martynas Jusevičius
2016-12-01 16:48:36 UTC
Permalink
Why would you think that? Does the documentation say that?
https://jena.apache.org/documentation/inference/#rules
Post by neha gupta
Thanks Dave, its really new knowledge for me as I thought ^ is used as
AND(conjunction).
Post by Dave Reynolds
Post by neha gupta
(1) greaterThan(?score1,?score2)^(?score1, ?score3)
(2) greaterThan(?score1,?score2)^ greaterThan(?score1, ?score3)
In Jena rules, the ist statement is correct or the second?
Neither, conjunction of terms in Jena rules is just "," so
... greaterThan(?score1,?score2), greaterThan(?score1, ?score3) ...
Dave
Continue reading on narkive:
Loading...