Hello
I have three subjects marks for a student.
 Cryptography, Networking, Software Engineering with different marks for
each student.
I want to calculate in which subject a student got maximum marks using Jena
rule and will set that subject as HighScoreSubject of the student (
HighScoreSubject is data propety) whose values will be one of these three
subjects.

Is this rule correct to get the required result ( I am asking this because
I am not getting the result required)

?x rdf:type std:Student + ?x std:CryptographyScore ?score1 + ?x
std:NetworkingScore ?score2 + ?x std:SEScore ?score3 +
greaterThan(?score1,?score2), greaterThan(?score1, ?score3) -->
?x std:HighScoreSubject std:Cryptography

Reply via email to