[MOBY-dev] documentation error (?) registerServiceType

Edward Kawas edward.kawas at gmail.com
Tue Jan 22 15:12:55 UTC 2008


The API is correct. I had an error in the schema. I just committed a fix.

Thanks for pointing it out.

Eddie

-----Original Message-----
From: moby-dev-bounces at lists.open-bio.org
[mailto:moby-dev-bounces at lists.open-bio.org] On Behalf Of Dmitry Repchevsky
Sent: January-22-08 7:06 AM
To: moby-dev at lists.open-bio.org
Subject: [MOBY-dev] documentation error (?) registerServiceType

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/Authoriti
es.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
_______________________________________________
MOBY-dev mailing list
MOBY-dev at lists.open-bio.org
http://lists.open-bio.org/mailman/listinfo/moby-dev




More information about the MOBY-dev mailing list