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