Protege Using swrl:equal to compare the values of datatype property
问题 I am building an ontology of 3 classes : Messages Ham Spam 2 dataproperties , domain : Messages and range xsd:string : hasInterest hasCategory 2 SWRL Rules: Message(?x),hasInterest(?x,?a),hasCategory(?x,?b), swrl:equal(?a,?b) ->Ham(?x) Message(?x),hasInterest(?x,?a),hasCategory(?x,?b), swrl:notEqual(?a?b) ->Spam(?x) I want to classify instances of class Message to class Spam or Ham ; if the hasCategory value ( message category) is equal to the hasInterest value ( user interests) then the