If we want to get the maximum score student got among three subjects (Robotics, Semantic Web, Research Methods) using Jena rules.
?x rdf:type std:Student + ?x std:RoboticsScore ?Rscore + ?x std:SemanticWebScore ?SMscore + ?x ResearchMethodScore ?RMscore + max(Rscore,SMscore,RMscore,maximun) THEN ???? I have two questions here: 1) Is the max(Rscore,SMscore,RMscore,maximun) calculate max and assign it to the (fourth)maximum variable? 2) How would the THEN part be? *If these values give me max, then how can I know that this maximum value belongs to Robotic, Semantic web or Research methods?* *I want to determine "Favorite subject" of student so if a student got max score in a subject, that will be his/her favorite subject. *
