Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6cda1105 authored by Chan Leduc's avatar Chan Leduc
Browse files

No commit message

No commit message
parent 5d3c9a19
No related branches found
No related tags found
No related merge requests found
...@@ -334,6 +334,57 @@ public class WSAServProfile implements AlignmentServiceProfile { ...@@ -334,6 +334,57 @@ public class WSAServProfile implements AlignmentServiceProfile {
msg += displayAnswer( answer ); msg += displayAnswer( answer );
} }
msg += "</matchResponse>"; msg += "</matchResponse>";
} else if ( method.equals("align") ) { // URL * URL * (params) -> URI
Parameters params = new BasicParameters();
Message answer = null;
msg += "<alignResponse>";
getParameter( domMessage, message, params, "url1", "onto1" );
if ( params.getParameter( "onto1" ) == null ) {
answer = new NonConformParameters(0,(Message)null,myId,"",message,(Parameters)null);
}
getParameter( domMessage, message, params, "url2", "onto2" );
if ( params.getParameter( "onto2" ) == null ) {
answer = new NonConformParameters(0,(Message)null,myId,"",message,(Parameters)null);
}
getParameter( domMessage, message, params, "method", "method" );
//getParameter( domMessage, message, params, "force", "force" );
if ( params.getParameter( "method" ) == null ) {
params.setParameter( "method", "fr.inrialpes.exmo.align.impl.method.EditDistNameAlignment" );
}
if ( answer == null ) {
Message result = manager.align( new Message(newId(),(Message)null,myId,serverURL,"", params) );
if ( result instanceof ErrorMsg ) {
answer = result;
} else {
params = new BasicParameters();
params.setParameter( "id", result.getContent() );
//System.out.println("The ID is: "+result.getContent());
if ( params.getParameter( "id" ) == null ) {
answer = new NonConformParameters(0,(Message)null,myId,"",message,(Parameters)null);
}
params.setParameter( "method", "fr.inrialpes.exmo.align.impl.renderer.RDFRendererVisitor" );
if ( answer == null )
answer = manager.render( new Message(newId(),(Message)null,myId,serverURL, "", params) );
}
}
if ( answer instanceof ErrorMsg ) {
msg += displayError( answer );
} else {
// JE: Depending on the type we should change the MIME type
// This should be returned in answer.getParameters()
// JE: This should also suppress the <?xml... statement
msg += "<result>" + answer.getContent() + "</result>";
msg += displayAnswer( answer );
}
msg += "</alignResponse>";
} else if ( method.equals("findRequest") ) { // URI * URI -> List of URI } else if ( method.equals("findRequest") ) { // URI * URI -> List of URI
Parameters params = new BasicParameters(); Parameters params = new BasicParameters();
Message answer = null; Message answer = null;
......
...@@ -46,6 +46,15 @@ ...@@ -46,6 +46,15 @@
<wsdl:part name="alid" type="xsd:string"/> <wsdl:part name="alid" type="xsd:string"/>
</wsdl:message> </wsdl:message>
<wsdl:message name="align"> <!-- JE : URI -->
<wsdl:part name="url1" type="xsd:string"/>
<wsdl:part name="url2" type="xsd:string"/>
<!-- JE: beware, this one should at least have parameters -->
</wsdl:message>
<wsdl:message name="alignResponse"> <!-- JE: XML -->
<wsdl:part name="alignment" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="metadataRequest"> <!-- JE : URI --> <wsdl:message name="metadataRequest"> <!-- JE : URI -->
<wsdl:part name="alid" type="xsd:string"/> <wsdl:part name="alid" type="xsd:string"/>
<wsdl:part name="key" type="xsd:string"/> <wsdl:part name="key" type="xsd:string"/>
...@@ -153,10 +162,14 @@ ...@@ -153,10 +162,14 @@
<wsdl:input message="impl:translateRequest" name="translateRequest"/> <wsdl:input message="impl:translateRequest" name="translateRequest"/>
<wsdl:output message="impl:translateResponse" name="translateResponse"/> <wsdl:output message="impl:translateResponse" name="translateResponse"/>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="match" parameterOrder="url1 url2 uri alid force params"> <wsdl:operation name="match" parameterOrder="url1 url2 method alid force params">
<wsdl:input message="impl:matchRequest" name="matchRequest"/> <wsdl:input message="impl:matchRequest" name="matchRequest"/>
<wsdl:output message="impl:matchResponse" name="matchResponse"/> <wsdl:output message="impl:matchResponse" name="matchResponse"/>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="align" parameterOrder="url1 url2">
<wsdl:input message="impl:align" name="align"/>
<wsdl:output message="impl:alignResponse" name="alignResponse"/>
</wsdl:operation>
<wsdl:operation name="cut" parameterOrder="alid method threshold"> <wsdl:operation name="cut" parameterOrder="alid method threshold">
<wsdl:input message="impl:cutRequest" name="cutRequest"/> <wsdl:input message="impl:cutRequest" name="cutRequest"/>
<wsdl:output message="impl:cutResponse" name="cutResponse"/> <wsdl:output message="impl:cutResponse" name="cutResponse"/>
...@@ -275,6 +288,15 @@ ...@@ -275,6 +288,15 @@
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http://exmo.inrialpes.fr/align/service" use="encoded"/> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http://exmo.inrialpes.fr/align/service" use="encoded"/>
</wsdl:output> </wsdl:output>
</wsdl:operation> </wsdl:operation>
<wsdl:operation name="align">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="align">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http://exmo.inrialpes.fr/align/service" use="encoded"/>
</wsdl:input>
<wsdl:output name="alignResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:http://exmo.inrialpes.fr/align/service" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="cut"> <wsdl:operation name="cut">
<wsdlsoap:operation soapAction=""/> <wsdlsoap:operation soapAction=""/>
<wsdl:input name="cutRequest"> <wsdl:input name="cutRequest">
......
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