neo4j

How to work with type hierarchies in Neo4j?

不羁岁月 提交于 2019-12-20 20:31:07
问题 Is there some way to model type hierarchies in Neo4j? If for example I want to build a class hierarchy of cars, I might have a base type of "Car" and then have sub classes that extend that, like "SportCar", etc. I'd like to be able to create instances of "SportCar", but run a query to get all "Car"s. Is this possible? If so what is the technique? I think what I'm trying to do is create a "label hierarchy" - but I just don't think that's supported in neo4j. 回答1: Paul, First, I'd recommend that

How to setup neo4j with dBpedia ontop of ruby-on-rails application?

守給你的承諾、 提交于 2019-12-20 19:57:29
问题 I am trying to use dBpedia with neo4j ontop of ruby on rails . Assuming I have installed neo4j and downloaded one of the dBpedia datasets. How do I import the dbpedia dataset into neo4j ? 回答1: The simplest way to load dbpedia into Neo4j is to use the dbpedia4neo library. This is a Java library, but you don't need to know any Java because all you need to do is run the executable. You could rewrite this in JRuby if you want, but regular Ruby won't work because it relies on Blueprints, a Java

Simple tutorial for Neo4J and using it with django + python

假装没事ソ 提交于 2019-12-20 19:47:29
问题 Is there any simple tutorial for learning Neo4J. I went through its official manual and found very confusing for me since i am from mysql background. I just wanted to learn Neo4J but i am really finding a hard time. Also there is not much books available for Neo4J Please help me with this 回答1: I just updated neo4django's documentation, and like to think it reads like a tutorial. I'd appreciate feedback! 回答2: Look at the Bulbs Quickstart tutorial (http://bulbflow.com/quickstart/). Bulbs works

Simple tutorial for Neo4J and using it with django + python

只愿长相守 提交于 2019-12-20 19:47:19
问题 Is there any simple tutorial for learning Neo4J. I went through its official manual and found very confusing for me since i am from mysql background. I just wanted to learn Neo4J but i am really finding a hard time. Also there is not much books available for Neo4J Please help me with this 回答1: I just updated neo4django's documentation, and like to think it reads like a tutorial. I'd appreciate feedback! 回答2: Look at the Bulbs Quickstart tutorial (http://bulbflow.com/quickstart/). Bulbs works

Which DB would you use? MongoDB/Neo4j/SQL… all of them? [closed]

China☆狼群 提交于 2019-12-20 15:33:06
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I'd like to know which choices you would do for my usecase. It's about building a social webapp where each user has its personal

Deleting all nodes and relationships in neo4j using cypher exceeds heap space

旧街凉风 提交于 2019-12-20 12:15:28
问题 I have been trying to run this query as recommended in the neo4j google group and in other sources online: START n = node(*) MATCH n-[r?]-() WHERE ID(n)>0 DELETE n, r; in order to delete all nodes and relationships between tests. When I do so from the console, I run out of java heap space. When I do so from python (using the newish graph_db.clear(), which appears uses the same query), I get a "SystemError: None" which, I assume, is the same java heap space error. I have a database with 500k

neo4j cypher nested collect

匆匆过客 提交于 2019-12-20 10:41:32
问题 Imagine a photo album schema w/ Users, Albums, and Photos: User -[owns]-> Album -[contains]-> Photo Can I do a nested collect to get Photos nested in Albums, and Albums nested in User? I'd like results similar to: { "users": [ { "name": "roger dodger", "albums": [ { "album": "album1", "photos": [ {"url": "photo1.jpg"}, {"url": "photo2.jpg"} ] } ] } ] } This seems close but I could not modify it to suit my needs: Nested has_many relationships in cypher (Could the problem be that neo4j 2.0 web

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... Modeling Categories in Graph Database Neo4J shop categories

How to Model Real-World Relationships in a Graph Database (like Neo4j)?

最后都变了- 提交于 2019-12-20 09:17:10
问题 I have a general question about modeling in a graph database that I just can't seem to wrap my head around. How do you model this type of relationship: "Newton invented Calculus"? In a simple graph, you could model it like this: Newton (node) -> invented (relationship) -> Calculus (node) ...so you'd have a bunch of "invented" graph relationships as you added more people and inventions. The problem is, you start needing to add a bunch of properties to the relationship: invention_date

Graph Database in Java (other than Neo4J)

為{幸葍}努か 提交于 2019-12-20 08:24:56
问题 Greetings, Is there any open source graph database available other than Neo4J?? NOTE: Why not Neo4J? Neo4J is opensource, but counts primitives (number of nodes,relationships & properties). If you are using it for commercial use. And does not have any straight forward information of pricing on official website. so there can be potential vendor lock-in (Although I have just started my company, and don't have budget to spent money on software anyway.) so It is out of option. Regards, 回答1: As