graph-databases

Neo4j Embedded database hangs after abnormal application termination

北城余情 提交于 2019-12-02 02:36:34
问题 I'm going to make my first application based on Neo4j Embedded database public and ran into a serious blocking issue - This my previous question with database deleting where I'm faced this issue Effectively clear Neo4j database I use: OS: Windows 8.1 jdk1.8.0_51 neo4j version 2.2.3 lucene version 3.6.2 spring-data-neo4j version 3.4.0.M1 I noticed that everything works properly if I use graphDatabaseService.shutdown(); method before terminating of my application.. Otherwise database is

Neo4j how to delete nodes recursively from some start node

亡梦爱人 提交于 2019-12-02 02:19:35
In my Neo4j database I have a following entities: @NodeEntity public class Product { private final static String CONTAINS = "CONTAINS"; private final static String DEFINED_BY = "DEFINED_BY"; private final static String VOTED_FOR = "VOTED_FOR"; private final static String PARENT = "PARENT"; private final static String CREATED_BY = "CREATED_BY"; @GraphId private Long id; @RelatedTo(type = PARENT, direction = Direction.INCOMING) private Product parent; @RelatedTo(type = CONTAINS, direction = Direction.OUTGOING) private Set<Product> childProducts = new HashSet<>(); @RelatedTo(type = DEFINED_BY,

Neo4j Embedded database hangs after abnormal application termination

左心房为你撑大大i 提交于 2019-12-02 01:14:41
I'm going to make my first application based on Neo4j Embedded database public and ran into a serious blocking issue - This my previous question with database deleting where I'm faced this issue Effectively clear Neo4j database I use: OS: Windows 8.1 jdk1.8.0_51 neo4j version 2.2.3 lucene version 3.6.2 spring-data-neo4j version 3.4.0.M1 I noticed that everything works properly if I use graphDatabaseService.shutdown(); method before terminating of my application.. Otherwise database is destroyed(not only my application but even Neo4j server also hangs on this corrupted db when I try to load my

Neo4j how to avoid supernodes

帅比萌擦擦* 提交于 2019-12-01 20:21:05
问题 In my Neo4j project I have Role and Permission entities which represent user roles and permissions. Each User in the system has relationships to appropriate sets of roles and permissions. I think Role and Permission are some kind of supernodes that can become a major headache from a performance point of view in future. What is the best practice for this case ? How to reimplement Role and Permission in order to avoid possible issues with supernodes ? 回答1: Do you plan to make some aggregate

How does Titan achieve constant time lookup using HBase / Cassandra?

◇◆丶佛笑我妖孽 提交于 2019-12-01 18:04:45
In the O'Reilly book "Graph Databases" in chapter 6, which is about how Neo4j stores a graph database it says: To understand why native graph processing is so much more efficient than graphs based on heavy indexing, consider the following. Depending on the implementation, index lookups could be O(log n) in algorithmic complexity versus O(1) for looking up immediate relationships. To traverse a network of m steps, the cost of the indexed approach, at O(m log n), dwarfs the cost of O(m) for an implementation that uses index-free adjacency. It is then explained that Neo4j achieves this constant

Graph visualization frameworks

北城余情 提交于 2019-12-01 15:31:30
I want to visualize a Neo4j database in a graphical application. (I'm doing this primarily as a learning exercise). I want it to behave almost identically to the visualization in Neo4j's WebAdmin: When the graphic appears, I want to see the nodes moving around as they settle into their final locations, and I want the user to be able to click and drag node icons around the screen and have them stick where they are dropped, with the rest of the graph adjusting to account for the change. I have two questions. What are the technical terms for the three requirements crudely described in the

Neo4j TimeTree REST API Previous and Next Navigation

删除回忆录丶 提交于 2019-12-01 07:40:36
问题 I am currently using Neo4j TimeTree REST API and is there any way to navigate to the time before and after a given timestamp? My resolution is Second and I just realize that if the minute has changed, then there is no 'NEXT' relationship bridging the previous Second in previous Minute to the current Second. This makes the cypher query quite complicated and I just don't want to reinvent the wheel again if it's already available. Thanks in advance and your response would be really appreciated!

How to reason or make inferences in Neo4j?

时光怂恿深爱的人放手 提交于 2019-12-01 05:32:05
I created a semantic Graph in Neo4j. Is there any possibility to use an OWL reasoner in Neo4j? Or any inference engine? Though it has been mentioned here i can't find any solution or API for this. Thankful for any advice! Maybe you want to see this: click here I quoted this from that link: Your main task if you want to use reasoners over a neo4j database is going to be to suck data out of neo4j, and format it as a set of RDF triples. You can then put those RDF triples into a Jena Model. When you have that jena model in memory, you can use existing jena APIs to use reasoners with that model My

How to reason or make inferences in Neo4j?

喜你入骨 提交于 2019-12-01 03:33:01
问题 I created a semantic Graph in Neo4j. Is there any possibility to use an OWL reasoner in Neo4j? Or any inference engine? Though it has been mentioned here i can't find any solution or API for this. Thankful for any advice! 回答1: Maybe you want to see this: click here I quoted this from that link: Your main task if you want to use reasoners over a neo4j database is going to be to suck data out of neo4j, and format it as a set of RDF triples. You can then put those RDF triples into a Jena Model.

How to select optional graph structures with Gremlin?

天大地大妈咪最大 提交于 2019-12-01 00:57:10
I am using Gremlin to query a graph stored in TitanDB. The graph contains user vertices with properties, e.g., "description", and edges denoting relationships between users. I want to use Gremlin to obtain 1) users by properties and 2) possible relationships to other users. I can use, for example, the following query to obtain all users whose description contains the word 'developer' and the edges with label 'relationship' originating from or targeting these users: g.V('description',CONTAINS,'developer').as('user').bothE.as('relationship').select So far, so good. The problem is, however, that