[MOBY-dev] documentation error (?) registerServiceType

Dmitry Repchevsky dmitry.repchevski at bsc.es
Tue Jan 22 15:05:36 UTC 2008


Hello!

I found the error (?) in Moby documentation

The Registry operation registerServiceType id "defined" as
***********************************************
Input XML

        <registerServiceType>
         <serviceType>NewServiceType</serviceType>
         <contactEmail>your_name at contact.address.com</contactEmail>
         <authURI>your.URI.here <http://biomoby.open-bio.org/CVS_CONTENT/moby-live/Docs/MOBY-S_API/Authorities.html></authURI>
         <Description>
           <![CDATA[ human description of service type here]]>
         </Description>
         <Relationship relationshipType="RelationshipOntologyTerm">
           <serviceType>ExistingServiceType</serviceType>
           <serviceType>ExistingServiceType</serviceType>
         </Relationship>
        </registerServiceType>

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

But in the schema (registerServiceType.xsd) the <Relationship> is 
defined as:
***********************************************
<xs:element name="Relationship" minOccurs="1" maxOccurs="unbounded">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="objectType" minOccurs="1" maxOccurs="unbounded">
        <xs:complexType>
          <xs:attribute use="required" name="articleName" 
type="xs:string" />
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="relationshipType" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="ISA" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>
***********************************************

So something is wrong here.

If schema is ok - the xml should look like:
***********************************************

<Relationship relationshipType="ISA">
    <objectType articleName="ExistingServiceType"/>
</Relationship>

***********************************************
Taking into account the the only type supported is "ISA" (?) that has no 
much sense... As well as using "articleName" for the parent serviceType.

Can someone clarify it tu me, please?

Thank you in advance,

Dmitry



More information about the MOBY-dev mailing list