[MOBY-dev] java api

Octave Noubibou octave.noubibou at gsf.de
Mon Mar 7 15:52:35 UTC 2005


Hi all,

as promised in my previous mail(see below), i have attached to this 
message my source codes for parsing moby input xml .

The "RetrieveElementWS.java" class is just to show how you can use it.

your comments are welcome

octave


>
>>>
>>>      
>>>
>>>>Hi all,
>>>>
>>>>as Yan has mentioned, i have joined  the PlaNet  project  at MIPS
>>>>since  3  months  now. one of my first tasks was to provide a generic
>>>>API to  simplify access to the pameters (queryID, namespace, id)
>>>>one needs from the moby input xml to run the services and also methods
>>>>to generate moby conform xml result.
>>>>
>>>>I have used DOM4J and XPATH to implement concrete classes for this
>>>>purpose.
>>>>At the moment all you need to get your parameters is to use the method
>>>>"allParsedData(inputxml)" no matter how complex the inputxml is.
>>>>This method return a vector of the form e.g.:
>>>>
>>>>(((queryID1,ns,id))) for a simple type
>>>>
>>>>or (((queryID1,ns1,id1),(queryID1,ns2,id2),(queryID1,ns3,id3))) for a
>>>>collection
>>>>
>>>>or
>>>>(((queryID1,ns,id),(queryID1,ns,id),(queryID1,ns,id)),((queryID2,ns1,id1)))
>>>>for an input with 2 invocations, the first been a collection and the
>>>>second a simple type.
>>>>
>>>>currently i do not handle secondary articles, but this should not be
>>>>difficult.
>>>>
>>>>we habe tried in our java services and everything seems to be ok.
>>>>
>>>>i am commenting the code now. once it is finished, i will like to
>>>>share it with you for comment or rectification and of course use.
>>>>Is there any possibility to upload this in central repository?
>>>>
>>>>best regards
>>>>
>>>>octave
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>>
>  
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: GenericInputParser.java
Type: text/x-java
Size: 11797 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/moby-dev/attachments/20050307/c0c1ce38/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GetInputDataForQuery.java
Type: text/x-java
Size: 2581 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/moby-dev/attachments/20050307/c0c1ce38/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GenericMobyOutputwriter.java
Type: text/x-java
Size: 14047 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/moby-dev/attachments/20050307/c0c1ce38/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RetrieveElementWS.java
Type: text/x-java
Size: 6154 bytes
Desc: not available
URL: <http://lists.open-bio.org/pipermail/moby-dev/attachments/20050307/c0c1ce38/attachment-0003.bin>


More information about the MOBY-dev mailing list