suggestions for visualisations etc
Sunday, 9 December 2012 · 4 messages
P
pw9 Dec 2012 20:47 #
Hello List
I am testing the use of BaseX to deliver modest amounts of XML data through the RESTXQ API. See http://www.semantechs.co.uk for the illustration.
I am looking for suggestions for client side graphics packages that can consume the json-ml provide by BaseX
I am also interested in any other suggestions for improving
utility/performance
Thanks
Peter
J
Johannes.Lichtenberger9 Dec 2012 21:22 #
Quoted text · pw at themail.co.uk · 12 lines
On 12/09/2012 08:47 PM, pw at themail.co.uk wrote: > Hello List > > I am testing the use of BaseX to deliver modest amounts of XML data > through the RESTXQ API. See http://www.semantechs.co.uk for the > illustration. > > I am looking for suggestions for client side graphics packages that > can consume the json-ml provide by BaseX > > I am also interested in any other suggestions for improving > utility/performance
Hello,
what you probably need is a shared presentation model. I wouldn't use any human readable presentation, but a binary protocol to exchange data, for instance the needed node pages to draw the treemap or any other visualization.
The "real" model resides on the server, but the presentation model is shared, thus for instance the server knows immediately when you push a button or change any other GUI component state and the server reacts and sends a response. Thus the visualizations are located at the client, but for instance queries are executed on the server and only the results are sent to the client. But as suggested you probably need the Java POJOs (for instance I think ANode and so on).
At least that's something on my radar (for another project, but should be pretty much the same for each Swing/JavaFX Application) and that's how I would do it.
kind regards
Johannes
P
pw9 Dec 2012 22:29 #
HI Johannes
I was wondering if there were any libraries that would consume JSON-ML and to which I could feed the output from the parameterised RESTXQ API. Do you know of any?
Cheers
Peter
Quoted text · Johannes.Lichtenberger · 61 lines
> > > >---- Original Message ---- >From: Johannes.Lichtenberger at uni-konstanz.de >To: basex-talk at mailman.uni-konstanz.de >Subject: Re: [basex-talk] suggestions for visualisations etc >Date: Sun, 09 Dec 2012 21:22:19 +0100 > >>On 12/09/2012 08:47 PM, pw at themail.co.uk wrote: >>> Hello List >>> >>> I am testing the use of BaseX to deliver modest amounts of XML >data >>> through the RESTXQ API. See http://www.semantechs.co.uk for the >>> illustration. >>> >>> I am looking for suggestions for client side graphics packages >that >>> can consume the json-ml provide by BaseX >>> >>> I am also interested in any other suggestions for improving >>> utility/performance >> >>Hello, >> >>what you probably need is a shared presentation model. I wouldn't >use >>any human readable presentation, but a binary protocol to exchange >data, >>for instance the needed node pages to draw the treemap or any other >>visualization. >> >>The "real" model resides on the server, but the presentation model >is >>shared, thus for instance the server knows immediately when you push >a >>button or change any other GUI component state and the server reacts >and >>sends a response. Thus the visualizations are located at the client, >but >>for instance queries are executed on the server and only the results >are >>sent to the client. But as suggested you probably need the Java >POJOs >>(for instance I think ANode and so on). >> >>At least that's something on my radar (for another project, but >should >>be pretty much the same for each Swing/JavaFX Application) and >that's >>how I would do it. >> >>kind regards >>Johannes >> >>_______________________________________________ >>BaseX-Talk mailing list >>BaseX-Talk at mailman.uni-konstanz.de >>https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>
J
Johannes.Lichtenberger9 Dec 2012 23:53 #
Quoted text · pw at themail.co.uk · 5 lines
On 12/09/2012 10:29 PM, pw at themail.co.uk wrote: > HI Johannes > I was wondering if there were any libraries that would consume > JSON-ML and to which I could feed the output from the parameterised > RESTXQ API. Do you know of any?
I don't know, but maybe it would be a major performance bottleneck? For instance serializing Java POJOs to JSON-ML and deserializing back to Java POJOs at least if it should for instance use the BaseX-GUI (and this would be cool IMHO).
I think that JDK/JREs are much more consistent than web browsers, but you might like d3 (JavaScript library) from Mike Bostock. I'm almost always impressed from the shear amount of example visualizations and it uses CSV- or JSON-input. Thus, you are able to create your own visualizations :-)
kind regards
Johannes
Written for BaseX 7.3. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery