使用 neo4j 在 python 中开发 Web 应用程序
我计划实现一个推荐引擎,此处给出了详细信息 。 “Python”和“neo4j”数据库是我的首选。谁能指出,如何将“neo4j”与“django”等任何 Web 框架集成?是否可以像“PHP”与“MySQL”集成一样将它们集成? 。
提前致谢..
I'm planning to implement a recommendation engine, of which details are given here.
'Python' is my preferred choice along with 'neo4j' Database. Can anyone please point out, how integration of 'neo4j' with any web framework like 'django' can be done?. Is it possible to integrate them just like 'PHP'integrates with 'MySQL'? .
Thanks in advance..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我不明白为什么不。您可以将其与 Django & 集成。通过它服务请求...
希望这会有所帮助...我自己能够将几乎整个 IMDB 集成到 Neo4j 和 Neo4j 中。通过 Django 提供服务。
I dont see why not. You can integrate this with Django & serve requests through it...
Hope this helps... I myself was able to integrate almost entire IMDB into Neo4j & serve it up through Django.
检查这个 neo4j python 库 https://github.com/versae/neo4j-rest-client 出来。它使用neo4j的rest api。如果您不打算使用 REST API,您可以考虑 Jython 实现,它将直接连接到数据库。我听说一些黑客为 django 实现了 neo4j 后端。但我认为现在开发网站还不够成熟。
Check this neo4j python library https://github.com/versae/neo4j-rest-client out. It uses rest api of neo4j. If you are not planning to use the REST API, you may consider Jython implementation which will directly connect to the database. I heard that some hackers implementing neo4j backend for django. But I think it is not mature enough to develop web site.
如果您计划使用一些 Django 功能(例如身份验证),您可能仍然需要一些 SQL 数据库(例如 sqlite)。但是,如果您只想构建推荐引擎,则可以将 Django 与无数据库结合使用。而且,您可以使用 neo4j 在 python 中构建后端,而不必首先担心 Django 可以与其无缝集成。
neo4j 和 python 的链接:
[安装] http://docs.neo4j.org/ chunked/snapshot/python-embedded.html
[用法] http://docs.neo4j.org/chunked/snapshot/tutorials-python-embedded .html
You may still need some sql database like sqlite if you plan to use some Django Features like authentication. But, if you just want to build your recommendation engine, you can use Django with no-database. And, you build your backend in python using neo4j without worrying first about Django which could integrates with it a priori seamlessly.
Links for neo4j and python:
[Installation] http://docs.neo4j.org/chunked/snapshot/python-embedded.html
[Usage] http://docs.neo4j.org/chunked/snapshot/tutorials-python-embedded.html
我们更新了旧的 Django 集成以使用 neo4j-rest-client - 它称为neo4django。我们对旧集成进行了一些重大改进,并成功地使用它来构建 Scholrly。虽然还没有完全投入生产,但已经是一个东西了。
该库允许模型定义、具有自动索引的查询集,并与关系数据库一起工作 - 因此您仍然可以使用基于标准 ORM 的 contrib 模块。
我在其他地方发布了一些关于它的信息href="https://stackoverflow.com/questions/5866635/neo4j-and-django-models/7761360#7761360">StackOverflow 如果您有兴趣!
We've updated the old Django integration to use neo4j-rest-client- it's called neo4django. We've made some major improvements over the old integration, and are using it successfully to build Scholrly. It's not quite in production, but it's something.
The library allows model definition, query sets with automated indexing, and works alongside a relational database- so you can still use contrib modules based on the standard ORM.
I've posted a bit about it elsewhere on StackOverflow if you're interested!