SKOS SERVICE TESTING


********************
CONTENTS
********************


 * Methods currently implemented:
 1*   getConcept(URI uri)
 2*   getConceptByPreferredLabel(String preferredLabel, URI thesaurus) 
 3*   getConceptByExternalID(String externalID, URI thesaurus) 
 4*   getConceptRelatives(Concept concept, Relation relation)  
 5*   getConceptRelativesByThesaurus(Concept conc_, Relation rln, URI uri_) 
 6*   getConceptsMatchingKeyword(String key_word) 
 7*   getConceptsMatchingKeywordByThesaurus(String key_word, URI thes_uri) 
 8*   getSupportedSemanticRelationsByThesaurus(URI thes_uri)
 9*   getSupportedSemanticRelations()
 10*   getAllConceptRelatives(Concept conc)
 11*   getAllConceptRelativesByThesaurus(Concept conc, URI thes_uri)
 12*   getConceptRelativesByPath(Concept conc_, Relation rln, URI uri_, int distance)  ** Alpha version
 13* get topConcept methods are also implemented
**
 * Methods currently NOT implemented:
 *   getConceptsMatchingRegexByThesaurus(String regex, URI thes_uri)
 *   getConceptsMatchingRegex(String regex)
 *  getConceptByInternalID(String in0, URI in1) [obsolete?]
 *   getAllConceptsByPath(Concept conc, Relation reln, int distance)
*

***********************************
 1*   getConcept(URI uri)
***********************************


REQUEST

POST /axis/services/SKOSThesaurusService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/#axisVersion#
Host: 127.0.0.1
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 778

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getConcept soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI">
   <in0 href="#id0"/>
  </ns1:getConcept>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:URI" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace">
   <uri xsi:type="xsd:string">http:/example.com/Concept/0003</uri>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>

RESPONSE

HTTP/1.1 200 OK
Content-Type: text/xml;charset=utf-8
Date: Thu, 02 Sep 2004 11:55:41 GMT
Server: Apache-Coyote/1.1
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getConceptResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI">
   <getConceptReturn href="#id0"/>
  </ns1:getConceptResponse>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Concept" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace">
   <uri href="#id1"/>
   <externalID xsi:type="xsd:string" xsi:nil="true"/>
   <preferredLabel xsi:type="xsd:string">English pubs, cafes and restaurants</preferredLabel>
   <nonPreferredLabels xsi:type="xsd:string">English eateries</nonPreferredLabels>
   <inScheme href="#id2"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string" xsi:nil="true"/>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:URI" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="xsd:string">http:/example.com/thesaurus</uri>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:URI" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="xsd:string">http:/example.com/Concept/0003</uri>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>

TEST ON DEMO SERVICE

RESPONSE = 

<ns1:Body xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">
  <ns1:getConceptResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <getConceptReturn href="#id0"/>
  </ns1:getConceptResponse>
  <multiRef id="id0" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Concept" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id1"/>
   <externalID xsi:type="xsd:string" xsi:nil="true"/>
   <preferredLabel xsi:type="xsd:string">insulating material</preferredLabel>
   <inScheme href="#id2"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string">Material that prevents or reduces the transmission of electricity, heat, or sound to or from a body, device or region.
(Source: CED)</definition>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:URI" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/concept/15020</uri>
  </multiRef>
  <multiRef id="id2" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:URI" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/2004/06/gemet-schema.rdf</uri>
  </multiRef>
 </ns1:Body>


***********************************
  2*   getConceptByPreferredLabel(String preferredLabel, URI thesaurus) 
***********************************



REQUEST

POST /axis/services/SKOSThesaurusService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/#axisVersion#
Host: 127.0.0.1
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 862

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getConceptByPreferredLabel soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI">
   <arg0 xsi:type="xsd:string">English Cuisine</arg0>
   <arg1 href="#id0"/>
  </ns1:getConceptByPreferredLabel>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:URI" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace">
   <uri xsi:type="xsd:string">http:/example.com/thesaurus</uri>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>

RESPONSE

HTTP/1.1 200 OK
Content-Type: text/xml;charset=utf-8
Date: Thu, 02 Sep 2004 12:12:35 GMT
Server: Apache-Coyote/1.1
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getConceptByPreferredLabelResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI">
   <getConceptByPreferredLabelReturn href="#id0"/>
  </ns1:getConceptByPreferredLabelResponse>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Concept" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace">
   <uri href="#id1"/>
   <externalID xsi:type="xsd:string">A.01.0232</externalID>
   <preferredLabel xsi:type="xsd:string">English cuisine</preferredLabel>
   <nonPreferredLabels xsi:type="xsd:string">English food</nonPreferredLabels>
   <nonPreferredLabels xsi:type="xsd:string">English dishes</nonPreferredLabels>
   <inScheme href="#id2"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string" xsi:nil="true"/>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:URI" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="xsd:string">http:/example.com/thesaurus</uri>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:URI" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="xsd:string">http:/example.com/Concept/0002</uri>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>

TEST ON DEMO SERVICE

RESPONSE =

Testing 'getConcept' with preferred label insulating material ..........
We will now try to extract concept data received from the service:
Concept preferred label: insulating material
SUCCESS: No client-side parsing problems. Here is the full SOAP message for your information: insulating material
<ns1:Body xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">
  <ns1:getConceptByPreferredLabelResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <getConceptByPreferredLabelReturn href="#id0"/>
  </ns1:getConceptByPreferredLabelResponse>
  <multiRef id="id0" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Concept" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id1"/>
   <externalID xsi:type="xsd:string" xsi:nil="true"/>
   <preferredLabel xsi:type="xsd:string">insulating material</preferredLabel>
   <inScheme href="#id2"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string">Material that prevents or reduces the transmission of electricity, heat, or sound to or from a body, device or region.
(Source: CED)</definition>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id2" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:URI" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/2004/06/gemet-schema.rdf</uri>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:URI" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/concept/15020</uri>
  </multiRef>
 </ns1:Body>


*************************************************************
3*   getConceptByExternalID(String externalID, URI thesaurus) 
*************************************************************

- test client works - but demo service returns null because its concepts don't have external ids.

REQUEST
POST /axis/services/SKOSThesaurusService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/#axisVersion#
Host: 127.0.0.1
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 845

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getConceptByExternalID soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI">
   <in0 xsi:type="xsd:string">A.01.0232</in0>
   <in1 href="#id0"/>
  </ns1:getConceptByExternalID>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:URI" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace">
   <uri xsi:type="xsd:string">http:/example.com/thesaurus</uri>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>

RESPONSE

HTTP/1.1 200 OK
Content-Type: text/xml;charset=utf-8
Date: Thu, 02 Sep 2004 13:53:36 GMT
Server: Apache-Coyote/1.1
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getConceptByExternalIDResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI">
   <getConceptByExternalIDReturn href="#id0"/>
  </ns1:getConceptByExternalIDResponse>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Concept" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace">
   <uri href="#id1"/>
   <externalID xsi:type="xsd:string">A.01.0232</externalID>
   <preferredLabel xsi:type="xsd:string">English cuisine</preferredLabel>
   <nonPreferredLabels xsi:type="xsd:string">English food</nonPreferredLabels>
   <nonPreferredLabels xsi:type="xsd:string">English dishes</nonPreferredLabels>
   <inScheme href="#id2"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string" xsi:nil="true"/>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:URI" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="xsd:string">http:/example.com/thesaurus</uri>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:URI" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="xsd:string">http:/example.com/Concept/0002</uri>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>

****************************************************************
 4*   getConceptRelatives(Concept concept, Relation relation)  
****************************************************************

REQUEST

POST /axis/services/SKOSThesaurusService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/#axisVersion#
Host: 127.0.0.1
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 1863

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getConceptRelatives soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI">
   <in0 href="#id0"/>
   <in1 href="#id1"/>
  </ns1:getConceptRelatives>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:Concept" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace">
   <uri href="#id2"/>
   <externalID xsi:type="xsd:string" xsi:nil="true"/>
   <preferredLabel xsi:type="xsd:string" xsi:nil="true"/>
   <inScheme xsi:type="ns2:URI" xsi:nil="true"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string" xsi:nil="true"/>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Relation" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="ns3:URI" xsi:nil="true"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#broader</label>
  </multiRef>
  <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:URI" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="xsd:string">http:/example.com/Concept/0003</uri>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>

RESPONSE

HTTP/1.1 200 OK
Content-Type: text/xml;charset=utf-8
Date: Thu, 02 Sep 2004 15:14:06 GMT
Server: Apache-Coyote/1.1
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getConceptRelativesResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI">
   <getConceptRelativesReturn xsi:type="soapenc:Array" soapenc:arrayType="ns2:Concept[1]" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    <item href="#id0"/>
   </getConceptRelativesReturn>
  </ns1:getConceptRelativesResponse>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Concept" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace">
   <uri href="#id1"/>
   <externalID xsi:type="xsd:string">A.01.2000</externalID>
   <preferredLabel xsi:type="xsd:string">Entertainment and Leisure</preferredLabel>
   <inScheme href="#id2"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string" xsi:nil="true"/>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:URI" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="xsd:string">http:/example.com/Concept/2000</uri>
  </multiRef>
  <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:URI" xmlns:ns5="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="xsd:string">http:/example.com/thesaurus</uri>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>


******************************************************************************
 5*   getConceptRelativesByThesaurus(Concept conc_, Relation rln, URI uri_) 
******************************************************************************


REQUEST

POST /axis/services/SKOSThesaurusService HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/#axisVersion#
Host: 127.0.0.1
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 2227

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <soapenv:Body>
  <ns1:getConceptRelativesByThesaurus soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI">
   <in0 href="#id0"/>
   <in1 href="#id1"/>
   <in2 href="#id2"/>
  </ns1:getConceptRelativesByThesaurus>
  <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:URI" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace">
   <uri xsi:type="xsd:string">http:/example.com/thesaurus</uri>
  </multiRef>
  <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Concept" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri href="#id3"/>
   <externalID xsi:type="xsd:string" xsi:nil="true"/>
   <preferredLabel xsi:type="xsd:string" xsi:nil="true"/>
   <inScheme xsi:type="ns3:URI" xsi:nil="true"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string" xsi:nil="true"/>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:Relation" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="ns4:URI" xsi:nil="true"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#broader</label>
  </multiRef>
  <multiRef id="id3" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:URI" xmlns:ns5="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <uri xsi:type="xsd:string">http:/example.com/Concept/0003</uri>
  </multiRef>
 </soapenv:Body>
</soapenv:Envelope>


****************************************************
 6*   getConceptsMatchingKeyword(String key_word) 
****************************************************

test client works on local service, not tested on remote because of likely timeout.

Concept result 1 : 
Concept preferred label: English cuisine
Concept URI: http:/example.com/Concept/0002
Concept non-preferred label: English food
Concept non-preferred label: English food
Concept non-preferred label: English food
Concept non-preferred label: English dishes
Concept non-preferred label: English dishes
Concept non-preferred label: English dishes
Concept result 2 : 
Concept preferred label: Bangers and mash
Concept URI: http:/example.com/Concept/0001
Concept non-preferred label: Sausage and mashed potato
Concept non-preferred label: Sausage and mash
Concept result 3 : 
Concept preferred label: English pubs, cafes and restaurants
Concept URI: http:/example.com/Concept/0003
Concept non-preferred label: English eateries
Concept non-preferred label: English eateries
Concept result 4 : 
Concept preferred label: English pubs
Concept URI: http:/example.com/Concept/0333
This concept has no associated non-preferred labels.


****************************************************
7*   getConceptsMatchingKeywordByThesaurus(String key_word, URI thes_uri) 
****************************************************
Test client works locally
 - not tried on remote re possible timeout


***************************************************
 8*   getSupportedSemanticRelationsByThesaurus(URI thes_uri)
***************************************************

Test client works both services

<ns1:Body xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">
  <ns1:getSupportedSemanticRelationsByThesaurusResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <getSupportedSemanticRelationsByThesaurusReturn xsi:type="soapenc:Array" soapenc:arrayType="ns2:Relation[11]" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <item href="#id0"/>
    <item href="#id1"/>
    <item href="#id2"/>
    <item href="#id3"/>
    <item href="#id4"/>
    <item href="#id5"/>
    <item href="#id6"/>
    <item href="#id7"/>
    <item href="#id8"/>
    <item href="#id9"/>
    <item href="#id10"/>
   </getSupportedSemanticRelationsByThesaurusReturn>
  </ns1:getSupportedSemanticRelationsByThesaurusResponse>
  <multiRef id="id3" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Relation" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id11"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id8" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:Relation" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id12"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id0" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:Relation" xmlns:ns5="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id13"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id10" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns6:Relation" xmlns:ns6="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id14"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id9" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns7:Relation" xmlns:ns7="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id15"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id5" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns8:Relation" xmlns:ns8="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id16"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id6" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns9:Relation" xmlns:ns9="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id17"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id4" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns10:Relation" xmlns:ns10="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id18"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns11:Relation" xmlns:ns11="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id19"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id7" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns12:Relation" xmlns:ns12="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id20"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id2" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns13:Relation" xmlns:ns13="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id21"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id21" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns14:URI" xmlns:ns14="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#related</uri>
  </multiRef>
  <multiRef id="id11" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns15:URI" xmlns:ns15="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#broaderInstantive</uri>
  </multiRef>
  <multiRef id="id20" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns16:URI" xmlns:ns16="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#broaderPartitive</uri>
  </multiRef>
  <multiRef id="id14" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns17:URI" xmlns:ns17="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#relatedPartOf</uri>
  </multiRef>
  <multiRef id="id12" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns18:URI" xmlns:ns18="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#narrowerPartitive</uri>
  </multiRef>
  <multiRef id="id17" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns19:URI" xmlns:ns19="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#narrowerGeneric</uri>
  </multiRef>
  <multiRef id="id16" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns20:URI" xmlns:ns20="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#broaderGeneric</uri>
  </multiRef>
  <multiRef id="id18" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns21:URI" xmlns:ns21="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#narrowerInstantive</uri>
  </multiRef>
  <multiRef id="id13" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns22:URI" xmlns:ns22="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#broader</uri>
  </multiRef>
  <multiRef id="id19" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns23:URI" xmlns:ns23="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#narrower</uri>
  </multiRef>
  <multiRef id="id15" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns24:URI" xmlns:ns24="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#relatedHasPart</uri>
  </multiRef>
 </ns1:Body>



***************************************************
 9*   getSupportedSemanticRelations()

***************************************************

Works - both services

<ns1:Body xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">
  <ns1:getSupportedSemanticRelationsResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <getSupportedSemanticRelationsReturn xsi:type="soapenc:Array" soapenc:arrayType="ns2:Relation[11]" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <item href="#id0"/>
    <item href="#id1"/>
    <item href="#id2"/>
    <item href="#id3"/>
    <item href="#id4"/>
    <item href="#id5"/>
    <item href="#id6"/>
    <item href="#id7"/>
    <item href="#id8"/>
    <item href="#id9"/>
    <item href="#id10"/>
   </getSupportedSemanticRelationsReturn>
  </ns1:getSupportedSemanticRelationsResponse>
  <multiRef id="id6" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Relation" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id11"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id3" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:Relation" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id12"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id9" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:Relation" xmlns:ns5="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id13"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id5" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns6:Relation" xmlns:ns6="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id14"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id7" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns7:Relation" xmlns:ns7="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id15"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id4" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns8:Relation" xmlns:ns8="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id16"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id10" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns9:Relation" xmlns:ns9="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id17"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id8" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns10:Relation" xmlns:ns10="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id18"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns11:Relation" xmlns:ns11="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id19"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id2" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns12:Relation" xmlns:ns12="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id20"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id0" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns13:Relation" xmlns:ns13="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id21"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id19" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns14:URI" xmlns:ns14="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#narrower</uri>
  </multiRef>
  <multiRef id="id18" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns15:URI" xmlns:ns15="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#narrowerPartitive</uri>
  </multiRef>
  <multiRef id="id17" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns16:URI" xmlns:ns16="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#relatedPartOf</uri>
  </multiRef>
  <multiRef id="id12" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns17:URI" xmlns:ns17="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#broaderInstantive</uri>
  </multiRef>
  <multiRef id="id11" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns18:URI" xmlns:ns18="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#narrowerGeneric</uri>
  </multiRef>
  <multiRef id="id20" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns19:URI" xmlns:ns19="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#related</uri>
  </multiRef>
  <multiRef id="id13" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns20:URI" xmlns:ns20="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#relatedHasPart</uri>
  </multiRef>
  <multiRef id="id15" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns21:URI" xmlns:ns21="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#broaderPartitive</uri>
  </multiRef>
  <multiRef id="id21" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns22:URI" xmlns:ns22="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#broader</uri>
  </multiRef>
  <multiRef id="id14" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns23:URI" xmlns:ns23="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#broaderGeneric</uri>
  </multiRef>
  <multiRef id="id16" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns24:URI" xmlns:ns24="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#narrowerInstantive</uri>
  </multiRef>
 </ns1:Body>


***************************************************
 10*   getAllConceptRelatives(Concept conc)
***************************************************


- works on both services (see note in todos)

Testing 'getallConceptRelatives' - i.e. the ones 'nearest' to this concept: http://www.eionet.eu.int/gemet/concept/15020
We will now look at the concept data returned from the service.
Concept result 1 : 
Concept preferred label: building material
Concept URI: http://www.eionet.eu.int/gemet/concept/1042
This concept has no associated non-preferred labels.
Concept result 2 : 
Concept preferred label: sound insulation material
Concept URI: http://www.eionet.eu.int/gemet/concept/4371
This concept has no associated non-preferred labels.
Concept result 3 : 
Concept preferred label: mineral fibre
Concept URI: http://www.eionet.eu.int/gemet/concept/5267
This concept has no associated non-preferred labels.
SUCCESS: No client-side parsing problems. Here is the full SOAP message for your information: 
<ns1:Body xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">
  <ns1:getAllConceptRelativesResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <getAllConceptRelativesReturn xsi:type="soapenc:Array" soapenc:arrayType="ns2:Concept[3]" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <item href="#id0"/>
    <item href="#id1"/>
    <item href="#id2"/>
   </getAllConceptRelativesReturn>
  </ns1:getAllConceptRelativesResponse>
  <multiRef id="id2" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:Concept" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id3"/>
   <externalID xsi:type="xsd:string" xsi:nil="true"/>
   <preferredLabel xsi:type="xsd:string">mineral fibre</preferredLabel>
   <inScheme href="#id4"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string">A fiber manufactured from glass, rock, or slag generally for use in fabricating heat insulation.
(Source: HARRIS)</definition>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:Concept" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id5"/>
   <externalID xsi:type="xsd:string" xsi:nil="true"/>
   <preferredLabel xsi:type="xsd:string">sound insulation material</preferredLabel>
   <inScheme href="#id6"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string">Material used to reduce the transmission of sound to or from a body, device, room, etc.
(Source: CED)</definition>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id0" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:Concept" xmlns:ns5="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id7"/>
   <externalID xsi:type="xsd:string" xsi:nil="true"/>
   <preferredLabel xsi:type="xsd:string">building material</preferredLabel>
   <inScheme href="#id8"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string">Any material used in construction, such as steel, concrete, brick, masonry, glass, wood, etc.
(Source: HARRIS)</definition>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id6" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns6:URI" xmlns:ns6="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/2004/06/gemet-schema.rdf</uri>
  </multiRef>
  <multiRef id="id4" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns7:URI" xmlns:ns7="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/2004/06/gemet-schema.rdf</uri>
  </multiRef>
  <multiRef id="id8" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns8:URI" xmlns:ns8="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/2004/06/gemet-schema.rdf</uri>
  </multiRef>
  <multiRef id="id3" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns9:URI" xmlns:ns9="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/concept/5267</uri>
  </multiRef>
  <multiRef id="id7" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns10:URI" xmlns:ns10="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/concept/1042</uri>
  </multiRef>
  <multiRef id="id5" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns11:URI" xmlns:ns11="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/concept/4371</uri>
  </multiRef>
 </ns1:Body>


*****************************************************
 11*   getAllConceptRelativesByThesaurus(Concept conc, URI thes_uri)
*****************************************************


*****************************************************
 12*   getConceptRelativesByPath(Concept conc_, Relation rln, URI uri_, int distance)  ** Alpha
*****************************************************

Works on both services 
Testing 'getConceptRelativesbyPath' with  a concept and and 'broader' relation & path = 3: http://www.eionet.eu.int/gemet/concept/15020, http://www.w3.org/2004/02/skos/core#broader
We will now look at the concept data returned from the service.
Retrieving result concept relatives at level  1
Concept preferred label: building material
Concept URI: http://www.eionet.eu.int/gemet/concept/1042
This concept has no associated non-preferred labels.
Retrieving result concept relatives at level  2
Concept preferred label: material
Concept URI: http://www.eionet.eu.int/gemet/concept/5086
This concept has no associated non-preferred labels.
SUCCESS: No client-side parsing problems. Here is the full SOAP message for your information: 
<ns1:Body xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">
  <ns1:getConceptRelativesByPathResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://www.w3.org/2001/sw/Europe/skos/ServiceAPI" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <getConceptRelativesByPathReturn xsi:type="soapenc:Array" soapenc:arrayType="ns2:ConceptRelatives[2]" xmlns:ns2="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <item href="#id0"/>
    <item href="#id1"/>
   </getConceptRelativesByPathReturn>
  </ns1:getConceptRelativesByPathResponse>
  <multiRef id="id0" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:ConceptRelatives" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns3="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <distance xsi:type="xsd:int">1</distance>
   <concepts href="#id2"/>
   <relation href="#id3"/>
  </multiRef>
  <multiRef id="id1" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:ConceptRelatives" xmlns:ns4="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <distance xsi:type="xsd:int">2</distance>
   <concepts href="#id4"/>
   <relation href="#id3"/>
  </multiRef>
  <multiRef id="id3" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:Relation" xmlns:ns5="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="ns5:URI" xsi:nil="true"/>
   <description xsi:type="xsd:string" xsi:nil="true"/>
   <label xsi:type="xsd:string">http://www.w3.org/2004/02/skos/core#broader</label>
  </multiRef>
  <multiRef id="id2" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns6:Concept" xmlns:ns6="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id5"/>
   <externalID xsi:type="xsd:string" xsi:nil="true"/>
   <preferredLabel xsi:type="xsd:string">building material</preferredLabel>
   <inScheme href="#id6"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string">Any material used in construction, such as steel, concrete, brick, masonry, glass, wood, etc.
(Source: HARRIS)</definition>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id4" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns7:Concept" xmlns:ns7="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri href="#id7"/>
   <externalID xsi:type="xsd:string" xsi:nil="true"/>
   <preferredLabel xsi:type="xsd:string">material</preferredLabel>
   <inScheme href="#id8"/>
   <scopeNote xsi:type="xsd:string" xsi:nil="true"/>
   <definition xsi:type="xsd:string">The substance of which a product is made or composed.
(Source: CED)</definition>
   <example xsi:type="xsd:string" xsi:nil="true"/>
  </multiRef>
  <multiRef id="id5" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns8:URI" xmlns:ns8="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/concept/1042</uri>
  </multiRef>
  <multiRef id="id7" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns9:URI" xmlns:ns9="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/concept/5086</uri>
  </multiRef>
  <multiRef id="id8" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns10:URI" xmlns:ns10="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/2004/06/gemet-schema.rdf</uri>
  </multiRef>
  <multiRef id="id6" soapenc:root="0" ns1:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns11:URI" xmlns:ns11="http://www.w3.org/2001/sw/Europe/skos/namespace" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <uri xsi:type="xsd:string">http://www.eionet.eu.int/gemet/2004/06/gemet-schema.rdf</uri>
  </multiRef>
 </ns1:Body>
**********************************************************
