Mentions légales du service

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

- suppressedd mappingapi dependency

- enabled RDFParser
parent 50133354
No related branches found
No related tags found
No related merge requests found
...@@ -20,10 +20,6 @@ ...@@ -20,10 +20,6 @@
package fr.inrialpes.exmo.align.parser; package fr.inrialpes.exmo.align.parser;
// Imported EDOAL classes
import org.omwg.mediation.parser.rdf.RDFParser;
import org.omwg.mediation.parser.rdf.RDFParserException;
//Imported JAVA classes //Imported JAVA classes
import java.io.IOException; import java.io.IOException;
import java.io.StringReader; import java.io.StringReader;
...@@ -137,11 +133,12 @@ public class AlignmentParser { ...@@ -137,11 +133,12 @@ public class AlignmentParser {
if ( embedded ) parser.setEmbedded( embedded ); if ( embedded ) parser.setEmbedded( embedded );
alignment = parser.parse( uri ); alignment = parser.parse( uri );
} catch ( Exception e ) { } catch ( Exception e ) {
/* if ( debugMode > 0 ) {
System.err.println(" TEST TRAPPED FOR ALIGNMENT "); System.err.println(" TEST TRAPPED FOR ALIGNMENT ");
e.printStackTrace(); e.printStackTrace();
}
try { try {
if ( !embedded ) { // Not ready yet if ( !embedded ) {
alignment = new RDFParser().parse( new File( uri ) ); alignment = new RDFParser().parse( new File( uri ) );
} else { } else {
throw new AlignmentException( "Cannot parse "+uri, e ); throw new AlignmentException( "Cannot parse "+uri, e );
...@@ -150,7 +147,6 @@ public class AlignmentParser { ...@@ -150,7 +147,6 @@ public class AlignmentParser {
// JE: should contain both ex and e // JE: should contain both ex and e
throw new AlignmentException( "Cannot parse "+uri, ex ); throw new AlignmentException( "Cannot parse "+uri, ex );
} }
*/
} }
return alignment; return alignment;
} }
......
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