Did you know? SWI-Prolog has powerful Semantic Web toolsSearch Documentation:
SWI-Prolog owl logoPredicate term_to_atom/2