Please see the docs on http://ontospy.readthedocs.org/en/latest/