public Map < String , String > readAtomTypeMappings ( ) { Map < String , String > mappings = null ; try { parser . setFeature ( "http://xml.org/sax/features/validation" , false ) ; logger . info ( "Deactivated validation" ) ; } catch ( SAXException exception ) { logger . warn ( "Cannot deactivate validation: " , exception . getMessage ( ) ) ; logger . debug ( exception ) ; } OWLAtomTypeMappingHandler handler = new OWLAtomTypeMappingHandler ( ) ; parser . setContentHandler ( handler ) ; try { parser . parse ( new InputSource ( input ) ) ; mappings = handler . getAtomTypeMappings ( ) ; } catch ( IOException exception ) { logger . error ( "IOException: " , exception . getMessage ( ) ) ; logger . debug ( exception ) ; } catch ( SAXException saxe ) { logger . error ( "SAXException: " , saxe . getMessage ( ) ) ; logger . debug ( saxe ) ; } return mappings == null ? new HashMap < String , String > ( ) : mappings ; }
Reads the atom type mappings from the data file .