Nicklas (>), Carl (>>): > > I've now come far enough with my BASE2 web services client in > > Bioclipse that I dare show it to the eventual end user. Due to this, I > > have a couple of more specific questions: > > > > * How do I get the name of a data file contained in a RawBioAssay? > > You can't with the current web services implementation. It should not be > hard to add support for it though. Contributions are welcome.
And gladly given. I'm looking at the ws client/server code now, thinking of how to add the functionality. In relation to this, I have a few questions/opinions, stemming mainly from my unfamiliarity with the data model. * Why DataFileTypeInfo? Being mainly interested in the data files themselves (just as I am interested in projects, experiments and assays), I wonder why the queries concern the data file types and not the files themselves. There's probably a good reason, but I don't see it -- especially if you can only have one file of each type. To me it seems like I'm interested in the middle step in this chain: file type -> file -> file contents But the current data model looks like this: file type -> file contents * Having a DataFileInfo would benefit my webservices client in two ways: firstly DataFileInfo.getName() would naturally map to a file name like "3T315.CEL", whereas the current DataFileTypeInfo.getName() maps to "CEL file". The latter is not useful to me. Is it to someone else? (Though I agree, of course, that it's the natural choice for a "name" property on a file type.) * Secondly, it would make the API for downloading a file easier. Instead of writing something like this with DataFileTypeInfo: <http://pastebin.com/mdadc5f2> I could write something like this with the (conjectural) class DataFileInfo: <http://pastebin.com/mdf451ba> Since I suspect that good reasons underlie the choice of DataFileTypeInfo in favour of something like DataFileInfo, I'm thinking of where best to put the methods I want, and also whether or not it would be a good idea to introduce something like DataFileInfo. I'm still willing to implement the things myself, but design guidance would be much appreciated. > > * Also, is there a way to get information about the .cdf files through > > WS? They don't seem to be among the results of `getDataFileTypes`. > > Yes, the CDF file is part of the array design so you have to fetch that > first. This worked fine, but here too, ArrayDesignClient seems unable to fetch the file name of the .cdf file, for the reasons outlined above. // Carl ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ basedb-devel mailing list basedb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/basedb-devel