Did you know? you can turn terms into graphviz (.dot) filesSearch Documentation:
SWI-Prolog owl logoPredicate select/3