Mentions légales du service

Skip to content
Snippets Groups Projects
Commit fcdfe558 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- added a fallback in init() for helping with missdefined onto/uri

parent edfbe7da
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,15 @@ public class ObjectAlignment extends BasicAlignment {
static public ObjectAlignment toObjectAlignment( URIAlignment al ) throws AlignmentException, SAXException {
ObjectAlignment alignment = new ObjectAlignment();
alignment.init( al.getFile1(), al.getFile2() );
try {
alignment.init( al.getFile1(), al.getFile2() );
} catch ( AlignmentException aex ) {
try { // Really a friendly fallback
alignment.init( al.getOntology1URI(), al.getOntology2URI() );
} catch ( AlignmentException xx ) {
throw aex;
}
}
alignment.setType( al.getType() );
alignment.setLevel( al.getLevel() );
for ( String[] ext : al.getExtensions() ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment