I want to return true, if a fact (A) is declared only once in the Prolog database, return false otherwise. For instance, if we have:
class('Person').
class('Person').
isUniqueClass(A) :- %%% This part I don't know how to do
And I query isUniqueClass('Person').
I want to return false. However, if we have:
class('Person').
isUniqueClass('Person') :- %%% Again same thing goes here
And I query isUniqueClass('Person').
I want it to return true.