Neo4j ...如何获得我的数据的视觉表示? [英] Neo4j...how to get a visual representation of my data?

查看:320
本文介绍了Neo4j ...如何获得我的数据的视觉表示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经加载了一个Neo4j的嵌入式实例与一些数据,并想知道我现在可以查看此图。我在这里看到了一段介绍视频: http:// video .neo4j.org / m9FD / how-to-get-started-with-neo4j-119 / 。这个人在他的网络浏览器中通过 Heroku 打开了一个实例,并且不仅可以看到图表中的数据,而且还可以输入新数据并搜索 nodes 关系。如何查看我已输入图形数据库的数据?

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: http://video.neo4j.org/m9FD/how-to-get-started-with-neo4j-119/. 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();

    }


推荐答案

安装Neo4j服务器 http://docs.neo4j.org/

install Neo4j Server http://docs.neo4j.org/chunked/snapshot/server.html, point out your database and use the webadmin tool for visualization.

这工作吗?

这篇关于Neo4j ...如何获得我的数据的视觉表示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆