Aggiornamento interno
SWAP research group - 26 aprile 2010
Outline
      SWOP
      META
       Interfaccia di rete

       Interfaccia web

       Web Service




2
SWOP
Semantic Web service Oriented Platform
Annotazione
            Natural language     To approve/reject
              descriptions     suggested annotations




 WSDL file   CODEArchitects       CODEArchitects        SAWSDL file
            Annotation Tool      Annotation Tool
User




                    Annotation Service




                       SAWSDL4J / WSDL4J



                                                  Pellet Reasoner
           UDDI4J




                                                                    SAWA
                                                                           Ontology repository

    UDDI




                    Discovery Service


5
META
Multi-language Text Analyzer
7   Interfaccia di rete
      Comunicazione via Socket con thread
      META server & META client (Windows, Linux, OS X)
      Protocollo hard-coded
      Input: identificativo operazione, vettore di stringhe
      Output: risultato di META
8
9
10
11
12
13   Interfaccia web
       Comunicazione via Web
       Apache Tomcat + XHTML1.1, CSS2
       Input: stringa in linguaggio naturale
       Output: risultato di META
       Non si possono selezionare le operazioni
       http://localhost:8080/meta/
14
15
16   Web service
      Comunicazione via HTTP
      Apache Tomcat + Apache Axis2
      Input: vettore di stringhe
      Output: risultato di META
      Un’unica operazione come l’interfaccia web
      http://localhost:8080/axis2/Meta?wsdl
<?xml version="1.0" encoding="UTF-8"?>
     <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://
     webservice.meta" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
     xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://
     schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://
     webservice.meta">
         <wsdl:documentation>Meta</wsdl:documentation>
         <wsdl:types>
             <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://webservice.meta">
                 <xs:element name="result">
                      <xs:complexType>
                          <xs:sequence>
                              <xs:element maxOccurs="unbounded" minOccurs="0" name="param" nillable="true" type="xs:string"/>
                          </xs:sequence>
                      </xs:complexType>
                 </xs:element>
                 <xs:element name="resultResponse">
                      <xs:complexType>
                          <xs:sequence>
                              <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
                          </xs:sequence>
                      </xs:complexType>
                 </xs:element>
             </xs:schema>
         </wsdl:types>
         <wsdl:message name="resultRequest">
             <wsdl:part name="parameters" element="ns:result"/>
         </wsdl:message>
         <wsdl:message name="resultResponse">
             <wsdl:part name="parameters" element="ns:resultResponse"/>
         </wsdl:message>
         <wsdl:portType name="MetaPortType">
             <wsdl:operation name="result">
                 <wsdl:input message="ns:resultRequest" wsaw:Action="urn:result"/>
                 <wsdl:output message="ns:resultResponse" wsaw:Action="urn:resultResponse"/>
             </wsdl:operation>




17
         </wsdl:portType>
         <wsdl:binding name="MetaSoap11Binding" type="ns:MetaPortType">
             <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
             <wsdl:operation name="result">
18
19
Demo

SWOP project and META software

  • 1.
  • 2.
    Outline SWOP META Interfaccia di rete Interfaccia web Web Service 2
  • 3.
    SWOP Semantic Web serviceOriented Platform
  • 4.
    Annotazione Natural language To approve/reject descriptions suggested annotations WSDL file CODEArchitects CODEArchitects SAWSDL file Annotation Tool Annotation Tool
  • 5.
    User Annotation Service SAWSDL4J / WSDL4J Pellet Reasoner UDDI4J SAWA Ontology repository UDDI Discovery Service 5
  • 6.
  • 7.
    7 Interfaccia di rete Comunicazione via Socket con thread META server & META client (Windows, Linux, OS X) Protocollo hard-coded Input: identificativo operazione, vettore di stringhe Output: risultato di META
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
    13 Interfaccia web Comunicazione via Web Apache Tomcat + XHTML1.1, CSS2 Input: stringa in linguaggio naturale Output: risultato di META Non si possono selezionare le operazioni http://localhost:8080/meta/
  • 14.
  • 15.
  • 16.
    16 Web service Comunicazione via HTTP Apache Tomcat + Apache Axis2 Input: vettore di stringhe Output: risultato di META Un’unica operazione come l’interfaccia web http://localhost:8080/axis2/Meta?wsdl
  • 17.
    <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http:// webservice.meta" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http:// schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http:// webservice.meta"> <wsdl:documentation>Meta</wsdl:documentation> <wsdl:types> <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://webservice.meta"> <xs:element name="result"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="param" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="resultResponse"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="resultRequest"> <wsdl:part name="parameters" element="ns:result"/> </wsdl:message> <wsdl:message name="resultResponse"> <wsdl:part name="parameters" element="ns:resultResponse"/> </wsdl:message> <wsdl:portType name="MetaPortType"> <wsdl:operation name="result"> <wsdl:input message="ns:resultRequest" wsaw:Action="urn:result"/> <wsdl:output message="ns:resultResponse" wsaw:Action="urn:resultResponse"/> </wsdl:operation> 17 </wsdl:portType> <wsdl:binding name="MetaSoap11Binding" type="ns:MetaPortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="result">
  • 18.
  • 19.
  • 20.