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