We have a requirement in our project, where we want to create visualization profile using Neo4j java api's. I googled, but didn't get anything useful.
Is there anyway to create the style visualization profile using neo4j java api's. We are using neo4j-1.8.1.
You can use getExecutionPlanDescription from your result to get the execution plan of your query.
Result result = graphDb.execute(query);
System.out.println(result.getExecutionPlanDescription());
Related
I am able to get the report specification XML using SDK and in which I can get the SQL to database. However if we use module/package the report specification does not contains the native SQL. Similar to Get Generated SQL in report studio. Is there a way to get the Native SQL (Generated SQL) using SDK.
Thank you,
TSB
I suppose yes, in cognos with SDK using BIBUS object looking for reportversion method and then SQL property.
There was sample code available on IBM for this, but it seems IBM has removed the URL.
http://www.ibm.com/support/docview.wss?uid=swg21344260
Yes, you can get the SQL via the reportService.validate() method. Two issues that need to be dealt with, however, are 1) prompt values need to be provided, if any are needed, and 2) you will have to use the Cognos SDK asynchronous conversation in order to run the validation to completion and retrieve the result.
Learning and getting the asynchronous conversation to work can take some time, but there is sample code for validation in the samples provided in the Cognos root directory. In Cognos 11, these samples are conveniently in the samples folder under the Cognos root. You will find Java examples there demonstrating how to submit a request that uses the asynchronous conversation and do things like submit prompt values and tell Cognos you are waiting and still interested in the result.
If you can actually get the request to completion, the detail property of the response will include an asynchDetailReportValidation object that has a queryInfo property. This XML will contain the SQL for each query the report would execute when run.
I have a host running neo4j engine, say: neo4jhost:7474
I would like certain users to be able see query results in a browser, from a pre-generated link. Thus, user could explore the graph interactively, without messing with the query syntax.
For example: let the query be
(n)-[r]->(m) where n.id=123 return n,r,m
I need a URL link that produces the above mentioned query, but displays the result in a browser, in neo4j graph visualization format.
Currently, Neo4j Browser does not have this feature.
However, you can use a graph visualization library to embed the graph visualization into your web application. Some examples of JavaScript graph visualization libraries:
D3.js
VivaGraphJS
Sigma
KeyLines
Alchemy.js
Alternatively, since Neo4j Browser is an Open-source tool you can checkout the project and modify it to achieve your goal.
As already mentioned, Neo4j browser does not have this functionality. However, you can have a look at the popoto.js. It might not be exactly what you are looking for, but it has dynamic natural language query tracker and Cypher Query generation functionalities.
I suggest to inspect and do some re-engineering on the functions to figure out more details. Maybe it gives new ideas as well.
I'm making a java application to retrieve data from twitter and then store the data in a graph database Neo4j. I wonder if I can visualize the social graph via my application from java?! I mean , can I visualize the graph using CYPHER queries from java in order to see the different nodes and relationships?!
Thanks
There are many ways of doing that, see
http://neo4j.com/developer/guide-data-visualization/
for a concrete twitter example using vivagraph.js
http://neo4j.com/blog/oscon-twitter-graph/
I'm using neo4j for a web-app I am creating. I have no problem getting data back from the REST API as I expect. However, I would prefer to not have to deal with lots of custom work in terms of graphing everything. I would love to just be able to embed/use the same graph that neo4j uses to show you query results at http://localhost:7474/browser/ on my page. I tried doing an iFrame to it but that had all sorts of problems.
Is this possible? I've been looking for an hour now trying to figure out how to do it or what libraries they use, but to no avail.
You can check out my demo project, which uses two visualizations (two branches) one which is very close to what Neo4j Server uses (all js client code talking to a Neo4j server):
demo:
http://jexp.github.io/cy2neo/
branch master:
https://github.com/jexp/cy2neo
branch neo3d:
https://github.com/jexp/cy2neo/tree/neod3
I'm looking at visualization options for a graph database project that I have coming up. Part of the job is to provide an interactive visualization of the data for public website visitors.
The standard Neo4j Server Web Interface does all I would need it to and more. I was wandering if I could simply embed it in a webpage or provide a public url (that could be accessed without a login) that general users could use to view the visualization without being able to edit it or add nodes/relationships? If you know of any examples of how this can be done, I would be very grateful.
Thanks!
The Neo4j browser is an Angular.js application using d3.js as visualization. The code is all open source an on https://github.com/neo4j/neo4j/tree/2.2/community/browser/lib/visualization so you can check it out there.
In general http://maxdemarzi.com is a good source for visualization blog posts as is http://neo4j.org/develop/visualization
Check out Neo4j GraphGists. A GraphGist allows you to embed a Neo4j database, Cypher queries, and visualize the results in a web page. Lots of examples listed on the GraphGist wiki.
Also take a look at Mashed Datatoes, a bar chart, pie chart like visualization software for Neo4j.
It uses Movie database for demo. Try selecting "Person" as start label.