是否有可能在Android应用程序中使用的Neo4j数据库? [英] Is it possible to use Neo4j database in an Android application?
问题描述
这将使任何错误,如果我用Neo4j的数据库为我的Android应用程序?如果是这样,任何人都可以建议我任何其他图形数据库使用作为后端的Android应用程序。
Will it make any error if I use Neo4j database for my Android Application? If so, can anyone suggest me any other Graph database to use as back end for Android application..
推荐答案
是的。
虽然的Neo4j提供了一个REST API与Cypher支架语言查询数据库,我会推荐给最重要的是建立自己的层,以应对来自Android的请求,然后过滤和转发给Neo4j的。
Yes. While Neo4J offers a REST API to query the database with the Cypher language, I would recommend to build your own layer on top of that to deal with the requests from Android and then filter and forward to Neo4J.
这一层可以让你使用Android应用程序和服务器,逻辑Cypher支架语法以后将被翻译之间你自己的业务逻辑。
This layer will let you to use your own business logic between the Android app and the server, logic that will be "translated" in the Cypher syntax later.
如果你想你的,而不是直接的DB暴露给世界,你可以在服务器上(以只读模式吧?)开始Neo4j的服务器,也许的启用HTTPS模式和更加安全些东西。
目前已经有一些 Neo4JaaS 提供商那里,所以大概你可以看看这一点。
If you want to expose instead your DB to the world directly, you can start a Neo4J server on a server (perhaps in read-only mode?) and maybe enable the HTTPS mode and some more security stuff. There are already some Neo4JaaS providers out there, so probably you can have a look to that.
这篇关于是否有可能在Android应用程序中使用的Neo4j数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!