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