On 6/12/2014 3:36 PM, Stian Soiland-Reyes wrote: > I have copied taverna-hackers as prefer Taverna developer discussions > to be kept open. I hope this is OK. > > > Indeed I believe > https://github.com/taverna/taverna-support-utilities/tree/master/ui > would be the best place for this, unless you add third-party > dependencies. Note that this repository should not have (direct or > non-direct) dependencies on any Taverna-modules. > > Is this for use within Taverna 2.x (maintenance branch) or 3.x (master=? I believe it is for Taverna 4 :-)
This is an XML Schema guided XML editor component. It is just JTree with XML Schema based TreeModel. SchemaTreeModel must be provided with XML Schema(s). Then it is possible either edit the tree manually and then serialize the tree into XML or read an XML into the tree (populate the tree). Both serialization/deserialization take into account provided XML Schema. As I already mentioned the original code was based on XSOM model, but I am working to port it to Apache XML Schema 2.0 You can see how it looks like: http://inb.bsc.es/documents/bionemus2/test.html just load some service - for instance: http://www.inab.org/dproxy/inb.bsc.es/runHMMBuild?wsdl then select runHMMBuild operation and you should see the service input tree (reconstructed from schema) If you believe it could be useful for WADL we could put it into Tav 2.5, but the code is a very beta. It supports elements, attributes, extensions/restrictions and choices. No support for ANYs yet. Sure there are a lot of things to improve. Regards, Dmitry > On 12 June 2014 14:24, Alan R Williams <[email protected]> > wrote: >> Dmitry, >> >> I am copying this to support. I hope Stian can suggest a good place to put >> your code. >> >> I think Swing "goodies" are currently in >> https://github.com/taverna/taverna-support-utilities but that is probably >> one of the repositories that will be reorganized. >> >> Alan >> >> -------- Original Message -------- >> Subject: Re: WADL >> Date: Thu, 12 Jun 2014 15:19:37 +0200 >> From: Dmitry <[email protected]> >> To: Alan R Williams <[email protected]> >> >> Hello Alan, >> >> Now that you are working on WADL, I'd like to submit XML Schema >> component to Taverna. >> Currently I have it under >> org.inb.bsc.xs.gui.tree package, >> >> Where could I put the code? >> >> I see "taverna3-commons", but it is not about GUI... >> >> I also have some SWING classes that I usually use in other projects. >> >> BlockablePanel.java >> HtmlToolTip.java >> ScrollableToolTip.java >> DecoratedJScrollPane.java >> ... >> >> Is there any special module to hold SWING goodies? >> >> Cheers, >> >> Dmitry >> >> >> On 6/9/2014 9:22 AM, Alan R Williams wrote: >>> On 03-Jun-14 16:19, Dmitry wrote: >>>> Hello Alan, >>> >>> Hello >>> >>> Thanks for the reply >>> >>>> Technically Taverna already has support for HTTP services... >>>> It's quite easy to add WADL support for the WADLs that use URL/QUERY >>>> parameters. >>> >>> Agreed - although the current REST service does not have enough >>> information. >>> >>>> The problem, as I understand is in XML input/output support. >>>> All the "splitters" system is bound to the WSDL and not to the REST. >>> >>> Yes >>> >>>> For the tinyWSDL (WSDL 2.0) parser I did WSDL 1.1 -> WSDL 2.0 converter >>>> (which supports HTTP bindings) and then, there is a >>>> WSDL 2.0 -> WADL converter. >>>> >>>> The problem is that while virtually any WSDL 2.0 "REST" services may be >>>> converted to the WADL it's harder to go other direction. >>>> >>>> BioSWR automatically generates WADL for the WSDL HTTP services (HTTP >>>> binding operations), but I do not use it for Taverna plugin >>>> importing HTTP services directly into the Taverna workflow editor. >>>> >>>> Some years ago I did a simple tool to test our services. >>>> http://inb.bsc.es/documents/bionemus2/test.html >>>> The tool creates an XML on a base of XML Schema (and execute the service >>>> operation). >>> >>> That is very useful. I see no reason why the XML splitters should not >>> be changed to cope with an XML schema. >>> >>>> Unfortunately, I've chosen the XSOM library (which is a part of JAXB). >>>> The library is quite simple, but since Oracle bought SUN the project was >>>> stopped (the SUN planned to separate it from JAXB). In my spare time I >>>> am porting the code to Apache XML Schema 2.x (which is used by >>>> tinyWSDL). The idea is to give a user an extremely simple tool to edit >>>> service input/output. >>>> >>>> If you are interested in the code, I can put it to Taverna's git. >>> >>> I think that would help a lot. >>> >>>> Just some ideas: >>>> >>>> 1. Improve the REST Activity providing the XML editor, based on WADL's >>>> XML Schema. >>> >>> Agreed. Although the XML splitters could be improved as well. Possibly >>> need to reconcile with the JSON activity. >>> >>>> 2. Move to my WSDL Parser, which is also Apache XML Schema 2.0 based. >>> >>> Yes >>> >>>> 3. Unify XML editor for both WSDL and REST services. >>> >>> Agreed >>> >>>> That's just some unsorted thought :-) >>>> >>>> Kind regards, >>>> >>>> Dmitry >>> >>> Alan >>> >>> >>> >> >> > > ------------------------------------------------------------------------------ HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing & Easy Data Exploration http://p.sf.net/sfu/hpccsystems _______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/about/contact-us/ Developers Guide: http://www.taverna.org.uk/developers/
