Linguistic service

This service returns sentenecs containing indicators of important information from page with given URL

Input

URL (string)

URL address of page to be processed

Output

list of sentences (string[])

Array of sentences containing any of predefined indicators.

Description

This service retrieves XHTML code of given URL (from XHTMLService), identifies continous blocks of text (sequences of words not interrupted by an block level element), within theese blocks sentences are identified and those senteces containing an indicator are returned.

The set of indicators is hardcoded into the service. This should be fixed in future.

WSDL

WSDL: http://rainbow.vse.cz/ling.xml

There will be nicely formatted WSDL listing in a future. For now just plain listing.

<?xml version='1.0'?>
<wsdl:definitions name='LingService' targetNamespace='urn:x-rainbow:services:LingService'
    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns:tns='urn:x-rainbow:services:LingService'
    xmlns:http='http://schemas.xmlsoap.org/wsdl/http/'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
    xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/'>
    <wsdl:types>
        <xsd:schema targetNamespace="urn:x-rainbow:services:LingService">
            <xsd:complexType name="ArrayOfstring">
                <xsd:complexContent>
                    <xsd:restriction base="SOAP-ENC:Array">
                        <xsd:sequence>
                            <xsd:element name="item" type="xsd:string"/>
                        </xsd:sequence>
                        <xsd:attribute ref="SOAP-ENC:arrayType"
                            wsdl:arrayType="xsd:string[]"/>
                    </xsd:restriction>
                </xsd:complexContent>
            </xsd:complexType>
        </xsd:schema>
    </wsdl:types>
    <wsdl:message name='LingService_extractSentences_Request'>
        <wsdl:part name='docid' type='xsd:string'/>
    </wsdl:message>
    <wsdl:message name='LingService_extractSentences_Response'>
        <wsdl:part name='Result' type='tns:ArrayOfstring'/>
    </wsdl:message>
    <wsdl:portType name='LingService'>
        <wsdl:operation name='extractSentences'>
            <wsdl:input name='extractSentences' message='tns:LingService_extractSentences_Request'/>
            <wsdl:output name='extractSentences' message='tns:LingService_extractSentences_Response'/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name='LingService' type='tns:LingService'>
        <soap:binding transport='http://schemas.xmlsoap.org/soap/http' style='rpc'/>
        <wsdl:operation name='extractSentences'>
            <soap:operation soapAction='' style='rpc'/>
            <wsdl:input name='extractSentences'>
                <soap:body use='encoded' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' namespace='urn:x-rainbow:services:LingService'/>
            </wsdl:input>
            <wsdl:output name='extractSentences'>
                <soap:body use='encoded' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' namespace='urn:x-rainbow:services:LingService'/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name='LingService'>
        <wsdl:port name='LingService' binding='tns:LingService'>
            <soap:address location='http://rainbow.vse.cz:7878'/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>