Developing a web application in python with neo4j

纵饮孤独 提交于 2019-12-20 09:31:47

问题


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..


回答1:


I dont see why not. You can integrate this with Django & serve requests through it...

  1. Modeling Categories in Graph Database
  2. Neo4J shop categories example
  3. Neo4j and django models
  4. Django & Neo4j - domain modeling that kicks ass.
  5. Seamless Django & Neo4j integration

Hope this helps... I myself was able to integrate almost entire IMDB into Neo4j & serve it up through Django.




回答2:


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.




回答3:


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




回答4:


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!



来源:https://stackoverflow.com/questions/7721737/developing-a-web-application-in-python-with-neo4j

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!