简体   繁体   English

使用neo4j在python中开发Web应用程序

[英]Developing a web application in python with neo4j

I'm planning to implement a recommendation engine, of which details are given here . 我打算实施一个推荐引擎,详细信息请参见此处 'Python' is my preferred choice along with 'neo4j' Database. “Python”是我和'neo4j'数据库的首选。 Can anyone please point out, how integration of 'neo4j' with any web framework like 'django' can be done?. 任何人都可以指出,“neo4j”与“django”等任何网络框架的整合是如何完成的? Is it possible to integrate them just like 'PHP'integrates with 'MySQL'? 是否有可能像'PHP'整合'MySQL'一样整合它们? .

Thanks in advance.. 提前致谢..

I dont see why not. 我不明白为什么不。 You can integrate this with Django & serve requests through it... 你可以将它与Django集成并通过它提供服务请求......

  1. Modeling Categories in Graph Database 在图数据库中建模类别
  2. Neo4J shop categories example Neo4J店铺类别的例子
  3. Neo4j and django models Neo4j和django型号
  4. Django & Neo4j - domain modeling that kicks ass. Django和Neo4j - 领域建模,踢屁股。
  5. Seamless Django & Neo4j integration 无缝Django和Neo4j集成

Hope this helps... I myself was able to integrate almost entire IMDB into Neo4j & serve it up through Django. 希望这有帮助...我自己能够将几乎整个IMDB整合到Neo4j中并通过Django提供服务。

Check this neo4j python library https://github.com/versae/neo4j-rest-client out. 检查这个neo4j python库https://github.com/versae/neo4j-rest-client out。 It uses rest api of neo4j. 它使用neo4j的rest api。 If you are not planning to use the REST API, you may consider Jython implementation which will directly connect to the database. 如果您不打算使用REST API,则可以考虑直接连接到数据库的Jython实现。 I heard that some hackers implementing neo4j backend for django. 我听说有些黑客为django实现了neo4j后端。 But I think it is not mature enough to develop web site. 但我认为开发网站还不够成熟。

You may still need some sql database like sqlite if you plan to use some Django Features like authentication. 如果你打算使用像身份验证这样的Django功能,你可能仍然需要像sqlite这样的sql数据库。 But, if you just want to build your recommendation engine, you can use Django with no-database . 但是,如果您只想构建推荐引擎,则可以将Django与无数据库一起使用 And, you build your backend in python using neo4j without worrying first about Django which could integrates with it a priori seamlessly. 并且,您使用neo4j在python中构建后端,而不必担心Django可以无缝地集成它。

Links for neo4j and python: neo4j和python的相关链接:

[Installation] http://docs.neo4j.org/chunked/snapshot/python-embedded.html [安装] http://docs.neo4j.org/chunked/snapshot/python-embedded.html

[Usage] http://docs.neo4j.org/chunked/snapshot/tutorials-python-embedded.html [用法] http://docs.neo4j.org/chunked/snapshot/tutorials-python-embedded.html

We've updated the old Django integration to use neo4j-rest-client - it's called neo4django . 我们更新了旧的Django集成以使用neo4j-rest-client - 它叫做neo4django We've made some major improvements over the old integration, and are using it successfully to build Scholrly . 我们对旧的集成进行了一些重大改进,并成功地使用它来构建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. 该库允许模型定义,具有自动索引的查询集,并与关系数据库一起工作 - 因此您仍然可以使用基于标准ORM的contrib模块。

I've posted a bit about it elsewhere on StackOverflow if you're interested! 如果您有兴趣,我已经在StackOverflow的 其他地方发布了一些相关信息!

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

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