I have a application WEB (laravel) I using Postgresql to Transaction and ACID data, mongodb to many king of informations ans apache spark to processes and get insight from this.
But, I need produces dashbord from this app and put it into mys application analys área.
Here are few things you can utilize.
using Paragraph REST API: fetch paragraph results using AJAX and display it in your application.
http://zeppelin.apache.org/docs/0.8.0-SNAPSHOT/rest-api/rest-notebook.html#get-a-paragraph-information
Publishing paragraphs and get the permalinks, then embed them in your application.
http://zeppelin.apache.org/docs/0.8.0-SNAPSHOT/manual/publish.html#embed-the-paragraph-to-your-website
Use the report mode: Report mode is remove all buttons, things unrelated and only keep useful results
(This is not the exact solution what you want but you might be interested)
http://zeppelin.apache.org/docs/0.8.0-SNAPSHOT/quickstart/explorezeppelinui.html#note-toolbar
You might get more ideas from Zeppelin Documentation.
http://zeppelin.apache.org/docs/0.8.0-SNAPSHOT/
Related
I'm working on a project, within which we are using semantic web technologies and creating web application allows user to get recommendation in order to take right decision ( won't get into the details).
For me and my team its a first experience to work with ontology.
We've already created ontology (have rdf and owl formatted files)(We are using eclipse to keep them).
Separately, we've created web application. My question how to connect web page and owl, rdf formatted data, more precisely, how to ensure input through webpage to dataset and get output on page.
I've found some info( on old forums), that its easyrdf which can be used as embedded in php script. But not clear.
Based on youtube tutorials, I've downloaded jena fuseki and don't know what is the next step.
I would be glad to get any advice, suggestion :)
In my view, there is no a single way to do this.
I usually set up some back-end application in order to pre-process this kind of information (build SPARQL queries, execute them and parse the results) and then return to the front in some way understandable by that side.
So, you could have all your data in RDF format store, for example, in a TDF exposed by Fuseki and interact with that data with some back-end, aimed to consume, update and parse the results you could find there.
That's my advice, hope could be useful for you.
Good luck!
We are trying to build a wrapper system for business users and we want to explore option of building a capability to submit the HIVE query from a JSP page. I could not find a best example or suggested mechanism for this. Anyone tried this before? If so can someone share their best ideas? We are looking for the REST API mechanism. If that wont work, then we can use java from JSP servlets.
Appreciate your support.
Kiran
You can use JDBC. I dont think there is a REST API for Hive.
But since most developers & application typically use JDBC this should be the preferred mode.
More details can be found here (Assuming you are using latest Hive versions) : Hive 2 Clients
Sample code sample code
I am working on a web application for a client that uses a postgresql database. I want the client to be able to go to a certain area of the site where the data from the database is displayed in graph form (for example, sales figures over a 6 month period). Is there a plugin I could use for this (I don't have any experience of this, so an easy one, or one with tutorials available would be great). I had a look at BIRT, which says it has a web based option but I couldn't really figure it out. I don't want the client to have to download and go through another program, I just want them to go to a url within their site, and it's all just presented to them there and then.
Any sort of pointers in the right direction would be greatly appreciated.
Thank you.
HighCharts, at http://www.highcharts.com/, works well for this case -- I use it fairly often. It supports Ajax data feeds in JSON format, so you can write an endpoint which returns the JSON representing the data from Postgres and which gets called from a JavaScript function which creates the graphs using that data (you would place that call in a ready function).
Also, if you're using Postgres 9.3 or higher, it supports JSON natively, so you can do the JSON conversion in the SQL query itself, as opposed to post-processing the results in your Python or other backend code.
Highcharts is reasonably flexible and allows for a variety of nice-looking, functional charts and graphs. If you want to get much fanicer, d3 may be worth a look. These are some the types of graphs/charts it can do: https://github.com/mbostock/d3/wiki/Gallery
I have not used d3 myself, however.
For the scenario you described above, Highcharts seems like it would work just fine.
It's been a while, and a lot has happened since 2016. There is now ChartJS as well - http://chartjs.org/, for example, which is easier to use than HighCharts and very flexible (I've used both).
What they both don't do is dynamic data. If you want that your client decides which data he wants to watch - that part you need to write yourself.
I'm working on learning GWT and made a little side project app that runs roulette system simulations. I'm rendering the results using the visualization API for GWT in a line chart.
I've found if results go above charting 1K data points I start getting unresponsive script warnings from Firefox and Chrome and IE basically explodes no matter what.
Is the hang up in rendering the graph from the google server side or on the client machine? Not sure I'm understanding the mechanics involved.
In terms of solutions:
1) If it's a client side problem could I somehow send the data to my server side, instantiate the chart there, and simply return it completed to the browser asynchronously instead of hogging client resources?
2) Or is the visualization API simply not able to deal with so many data points?
Many thanks in advance.
The GWT-Visualization connect to google servers to download library, but the renders are done at client side. Your are not able to render on server side using it. I can also confirm that Visuazation in not able to deal with ~1K point.
You can give a try to other server side GWT libraries like GFlot or clientsidegchart.
For server side render you can user any graph library for java (eg.JGraph). Just create a graph image and download it to your side. This way you receive static image but without hangings on client side.
Maybe it's because you are loading values one by one with addValue().
There's a method addRows which receives an array of values that is not implemented in the GWT Visualization library. This could be a faster way of loading your data.
Check GWT Charts
I have an internal tool written in java. It would be useful to get a little
feedback on how much it is used by colleagues.
A simple solution would be to have the application display an image which it fetches from
a web hit counter like application and just look at how often the image is accessed.
So what I am looking for: a stand-alone application (i.e. no Apache modules, cgi scripts, etc),
which serves one or a couple of static images and and can log accesses, preferably with as
little as possible of support of everything else.
Searching for "hit counter" gave little relevant, "lightweight http server" was more relevant, although mostly overkill still. Any suggestions?
You could try using Google Analytics. Most of the time, people using Google Analytics are tracking pageviews on a web page, and Google Provides some javascript that you can place on your page and it will track the visits to that page as well as browser capabilities/etc. Behind the scenes, that javascript is placing an image tag on the page in the manner you describe.
However, since your application is java and not a web app (I assume it's a standalone and not an applet), you won't be able to include Google's javascript (unless you embed a javascript interpreter...yick). Fortunately, it is possible to use Google's analytics without javascript.
The trick is that Google's scripts use the image http://www.google-analytics.com/__utm.gif and pass parameters via the query string. You can find a list of the parameters you can pass to the query string here. So all you'd have to do is figure out what the query string should be and have your client make the request to google's image (after setting up your google analytics account, of course).
Just use Google Analytics, it's really easy and requires a short script on your pages.
Michal Kebrt's simple UNIX HTTP server does exactly what I was looking for.