:-use_module(library(trill)). :- trill. % or :- trillp. or :- tornado. /** ?- instanceOf(commander,john,Expl). */ subClassOf(allValuesFrom(commands,soldier),commander). classAssertion(guard,pete). classAssertion(guard,al). classAssertion(allValuesFrom(commands,guard),john). equivalentClasses([guard,soldier]). subPropertyOf(commands,commands1).