IRI = gateway.jvm.org.semanticweb.owlapi.model.IRI
abcIRI = IRI.create('fewf#fe')
print('abcIRi = ' + str(abcIRI))
print('abcIRI.getFragment() = ' + abcIRI.getFragment())
Use java library from python (Python wrapper for java library)