Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 88c43a44 authored by Maria-Elena Rosoiu's avatar Maria-Elena Rosoiu
Browse files

fixed a bug

parent f2cd56d4
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,10 @@ public class Main { ...@@ -58,6 +58,10 @@ public class Main {
Charset defaultCharset = Charset.forName("UTF8"); Charset defaultCharset = Charset.forName("UTF8");
RDFWriter writer = model.getWriter("RDF/XML-ABBREV"); RDFWriter writer = model.getWriter("RDF/XML-ABBREV");
writer.setProperty("showXmlDeclaration","true"); writer.setProperty("showXmlDeclaration","true");
//RDFWriter writer = newModel.getWriter( "RDF/XML-ABBREV" );
String namespace = "http://oaei.ontologymatching.org/2010/benchmarks/101/onto_new.rdf#";
writer.setProperty( "xmlbase", namespace );
writer.write(model.getBaseModel(), new OutputStreamWriter(fout, defaultCharset), ""); writer.write(model.getBaseModel(), new OutputStreamWriter(fout, defaultCharset), "");
fout.close(); fout.close();
} catch (Exception ex) { } catch (Exception ex) {
...@@ -186,5 +190,5 @@ public class Main { ...@@ -186,5 +190,5 @@ public class Main {
} }
} }
} }
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