Re: Is this valid use?

Narahari,  Sateesh <Sateesh_Narahari@jdedwards.com> wrote:

> <mycompany:MethodInput>
>     <rdf:Bag>
> <rdf:li resource="http://www.mycompany.com/businesslogic#Item"/>
> <rdf:li resource="http://www.mycompany.com/businesslogic#Supplier"/>
> <rdf:li resource="http://www.mycompany.com/businesslogic#ShipTo"/>
> <rdf:li
> resource="http://www.mycompany.com/businesslogic#DigitalSig"/>
>     </rdf:Bag>
> </mycompany:MethodInput>
> 
> <mycompany:MethodOutput>
>     <rdf:Bag>
> <rdf:li resource="http://www.mycompany.com/businesslogic#OrderNo"/>
>     </rdf:Bag>
> </mycompany:MethodOutput>

This looks quite interesting, but it really depends on the context of the
RDF. What it looks like you're missing is a Method resource to hold the
input and output Bags together, so it should probably look like this (modulo
namespaces):

<rdf:RDF>

<my:Method>
  <my:methodInput> <!-- note that properties start with a lower-case
character -->
    <rdf:Bag>
        ...
    </rdf:Bag>
  </my:methodInput>

  <!-- repeat for output -->
</my:Method>

</rdf:RDF>

A useful tool for finding these kinds of flaws is the online SiRPAC parser:

http://www.w3.org/RDF/Implementations/SiRPAC/

Hope this helps,

-- 
[ Aaron Swartz | me@aaronsw.com | http://www.aaronsw.com ]

Received on Tuesday, 24 April 2001 23:40:41 UTC