Did you know? XPCE supports a sophisticated styled text engineSearch Documentation:
SWI-Prolog owl logoPredicate aggregate/4