Did you know? you can turn ugraphs into graphmlSearch Documentation:
SWI-Prolog owl logoPredicate with_output_to/2