63278

Neo4j…how to get a visual representation of my data?

Question:

I have loaded an embedded instance of Neo4j with some data, and would like to know how I can now view this graph. I saw an intro video here: <a href="http://video.neo4j.org/m9FD/how-to-get-started-with-neo4j-119/" rel="nofollow">http://video.neo4j.org/m9FD/how-to-get-started-with-neo4j-119/</a>. Here the guy opened an instance in his web browser via Heroku and was able not only see the data in the graph, but also enter new data and search for both nodes and relationships. How do I see the data I have entered into the graph-database?

graphDb = new GraphDatabaseFactory().newEmbeddedDatabase( "var/graphDb" ); registerShutdownHook(graphDb); WrappingNeoServerBootstrapper srv = new WrappingNeoServerBootstrapper( graphDb ); srv.start(); for (Statement s : statements){ Transaction tx = graphDb.beginTx(); try{ firstNode = graphDb.createNode(); firstNode.setProperty("message", s.getFirstTerm()); secondNode = graphDb.createNode(); secondNode.setProperty( "message", s.getSecondTerm()); relation = firstNode.createRelationshipTo(secondNode, s.getRelationshipType()); //relation.setProperty("message", "crazy cruel"); tx.success(); } finally{ tx.finish(); } } srv.stop(); }

Answer1:

you could either

<ul><li>fire up a server as part of your embedded instance, see <a href="http://docs.neo4j.org/chunked/snapshot/server-embedded.html" rel="nofollow">http://docs.neo4j.org/chunked/snapshot/server-embedded.html</a></li> <li>

use Neoclipse and point it to your (shut down) database, see <a href="http://vimeo.com/12014944" rel="nofollow">http://vimeo.com/12014944</a> aand <a href="https://github.com/neo4j/neoclipse" rel="nofollow">https://github.com/neo4j/neoclipse</a>

</li> <li>

install Neo4j Server <a href="http://docs.neo4j.org/chunked/snapshot/server.html" rel="nofollow">http://docs.neo4j.org/chunked/snapshot/server.html</a>, point out your database and use the webadmin tool for visualization.

</li> </ul>

Would that work?

Recommend

  • “cross-product” of data frames
  • Undefined key NSException in UIPickerView iOS7.1
  • s3.getObject().createReadStream() : How to catch the error?
  • How to draw UIBezierPath overlay on MKMapView?
  • What is the mathematics behind the CSS filters? [closed]
  • Android MediaPlayer: getDuration() returns 0 after prepare()
  • Send objects from flex to java servlet
  • Wordpress form with file upload submit with Ajax
  • Setting freedrawcolor with Spectrum Color Picker
  • ASP.NET ApiController inside a webform can't reach methods
  • PHP store require_once inside variable and execute it later
  • Specifying variable outside of render in React class
  • Running into Typescript state type mismatch error inside of Redux store file
  • JQuery automatic click after 4 sec
  • Access SharePoint online using client object model- Forbidden error
  • Fitbit oauth registration
  • Parse JSON with optional field
  • Is there a built-in shortcut key for selecting the owner of the currently active form?
  • how to display same image multiple times using same image in javascript
  • How to set image in custom rounded corner image view in android
  • Conflict. The container name “/gitlab-runner” is already in use by container
  • How can I send data in text field using Selenium?
  • Qt WebView and WebChannel over WebSockets in QML
  • R SparkR - equivalent to melt function
  • Error: packet sequence number wrong after upgrading RDS instance
  • Migrating MOSS 2007 from SQL 2000 to SQL 2005 [closed]
  • Threads and Concurrent Modification Exception working with a list
  • Why am I getting an Argument exception when creating event handler dynamically?
  • In metro, get all inherited classes of an (abstract) class?
  • Django REST framework - HyperlinkedRelatedField with additional parameter
  • .Net core Hosted Services guaranteed to complete
  • opencv deskewing a contour
  • How to define a custom accuracy in Keras to ignore samples with a particular gold label?
  • How to use Typescript with libraries like Ampersand.js that parse configs to build prototypes
  • Jersey serializes character value to ASCII equivalent numeric string