public OWLDocumentFormat parse(OWLOntologyDocumentSource documentSource,
OWLOntology ontology, OWLOntologyLoaderConfiguration configuration)
throws IOException {
InputSource is = null;
try {
final RDFXMLDocumentFormat format = new RDFXMLDocumentFormat();
RDFParser parser = new RDFParser() {
@Override
public void startPrefixMapping(String prefix, String uri)
throws SAXException {
assert prefix != null;
assert uri != null;
super.startPrefixMapping(prefix, uri);
format.setPrefix(prefix, uri);
}
@Override
public void startElement(String uri, String localName,
String qName, Attributes attributes)