Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 75a59427 authored by Cássia Trojahn dos Santos's avatar Cássia Trojahn dos Santos
Browse files

No commit message

No commit message
parent bd486001
No related branches found
No related tags found
No related merge requests found
......@@ -20,23 +20,7 @@ public class AlignmentWSImpl implements AlignmentWS {
public String align(URI source, URI target) {
AlignmentProcess alignProcess = new MyAlignment();
String alignment = null;
try {
alignProcess.init(source,target);
alignProcess.align(null, new Properties());
SBWriter sbWriter = null;
try {
sbWriter = new SBWriter(new BufferedWriter(new OutputStreamWriter( System.out, "UTF-8" )), true);
}
catch(Exception e) { }
AlignmentVisitor renderer = new RDFRendererVisitor(sbWriter);
alignProcess.render(renderer);
return sbWriter.toString();
} catch (AlignmentException e1) {
e1.printStackTrace();
}
return alignment;
// your implementation
return alignment;
}
}
......@@ -16,12 +16,20 @@ import fr.inrialpes.exmo.align.impl.renderer.RDFRendererVisitor;
import eu.sealsproject.omt.ws.matcher.AlignmentWS;
import org.semanticweb.owl.align.Cell;
@WebService(endpointInterface="eu.sealsproject.omt.ws.matcher.AlignmentWS")
public class MyAlignmentWS extends MyAlignment implements AlignmentWS {
@Override
public String align(URI source, URI target) {
try {
for (Object c: this.getArrayElements().toArray()) {
this.remCell((Cell)c);
}
init(source,target);
align((Alignment)null, new Properties());
SBWriter sbWriter = null;
......
......@@ -159,6 +159,7 @@ import org.semanticweb.owl.align.Alignment;
import org.semanticweb.owl.align.AlignmentException;
import org.semanticweb.owl.align.AlignmentProcess;
import org.semanticweb.owl.align.AlignmentVisitor;
import org.semanticweb.owl.align.Cell;
import fr.inrialpes.exmo.align.impl.renderer.RDFRendererVisitor;
......
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