Did you know? about the full featured web frameworkSearch Documentation:
SWI-Prolog owl logoPredicate permutation/2