简体   繁体   English

如何(密码)从Java程序查询Neo4j 3.x的Neo4j嵌入式图形数据库?

[英]How do I (cypher) query Neo4j embedded graph database from java program for Neo4j 3.x?

Neo4j has grown a lot since I last used it (milestone 2.0 to 3.0). 自从我上次使用Neo4j以来,它已经发展了很多(里程碑2.0到3.0)。 I wanted to use cypher from java program with embedded graph database (GraphDatabaseService). 我想将Java程序中的密码用于嵌入式图形数据库(GraphDatabaseService)。

I used to create an ExecutionEngine and go from there for this earlier. 我曾经创建一个ExecutionEngine并从此开始。

It appears that now the preferred way is to use org.neo4j.driver.* for this purpose. 现在看来,首选方法是使用org.neo4j.driver。*来实现此目的。

This bundle does not seem to be there in the libs I get from Neo4j 3.0.7. 我从Neo4j 3.0.7获得的库中似乎没有这个捆绑包。

Is there anyway I can execute cypher query for embedded graph database using java? 无论如何,我可以使用Java对嵌入式图形数据库执行密码查询吗?

You can execute Cypher using the Java API for an embedded neo4j DB. 您可以使用Java API为嵌入式neo4j DB执行Cypher。 Refer to this section of the 3.0 docs for more info on this. 有关此的更多信息,请参考3.0文档的本部分

The beginning of that same section of the docs shows how to set up your development environment , including setting up the dependencies. 该文档同一部分的开头显示了如何设置您的开发环境 ,包括设置依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM