neo4j

is it possible to hide a Node in the neo4j browser once it has been shown

风格不统一 提交于 2019-12-12 18:56:36
问题 Is it possible to hide a node in the browser once it has been 'opened'. In any more than a trivial graph it gets quite cluttered with all the relationships, when all I want is to focus on the most important nodes/relationships. 回答1: If you want to stop seeing relationships that your query did not return, you can switch the "AUTO-COMPLETE" button at the bottom of the pane to "OFF". But there is no way (other than modifying your query) to turn off the display of nodes that you had asked for. 来源

Spring Data Neo4j 4 and dynamic product properties

百般思念 提交于 2019-12-12 18:19:17
问题 In my Neo4j/SDN project I have to implement a following task - I have a parent Node(let's say ParentNode ) that must define a set of product characteristics, for example: weight: Double size: Integer license: String active: Boolean Also, new product characteristics( with any new name and type ) can be added during the application runtime. ParentNode can have a set of child nodes(let's say ProductNode ) and each of these nodes can provide an own value for a certain characteristic defined by a

Neo4j node property comparison during traversal

那年仲夏 提交于 2019-12-12 18:19:05
问题 I am completely new to Neo4j. I am testing the graph database and I have the following simple graph test-structure: different labeled nodes with properties, which are connected. All the nodes have a property, which is called access. It is a list of string elements such as: {access: ['http', 'www']} I'm searching for a solution, where I get all nodes from a starting node which are connected (doesn't matter which type or direction) and their relationship where an intersection on the access

DynamicRelationshipType in Spring Data Neo4j or defining relationship types at runtime

感情迁移 提交于 2019-12-12 18:05:47
问题 Can I specify relationship type at runtime?? I am creating a set of relationshipEntity objects within an Entity using something like @Fetch @RelatedToVia(type="RELATED_IN_SOME_WAY", direction = Direction.BOTH) Set<ThingRelationship> relationships = new HashSet<ThingRelationship>(); where ThingRelationship is @RelationshipEntity public class ThingRelationship { public ThingRelationship() { super(); } //incremental neo4j set ID @GraphId Long nodeId; //Start and end nodes @StartNode Thing

SDN neo4j 3.0 Release Index Strategy

北战南征 提交于 2019-12-12 17:40:59
问题 Since I updated from RC1 to RELEASE I get this exception: org.springframework.data.mapping.model.MappingException: No index name allowed on label based indexes which means @Index will now default to Label and not Simple indexing. How do I specify the labels for each @NodeEntity ? From this link I think I should use @Labels but is this official ? Considering issue DATAGRAPH-433 will unique indexes use the old index strategy? The spring data neo4j documentation doesn't offer any clue. 回答1: You

How to explore databases created by an embedded-Neo4j Java application and stored outside the /data directory?

为君一笑 提交于 2019-12-12 17:05:09
问题 In the Neo4j web administration tool (http://127.0.0.1:7474/webadmin/), I can only explore nodes and relationships created through this interface. However, it doesn't show databases created by my Java applications which use embedded Neo4j and store databases outside the /data directory. How can I explore these databases? 回答1: The Webadmin talked to the neo4j server instance. You can configure it using config/neo4j-server.properties , see http://docs.neo4j.org/chunked/snapshot/server

How do I extract raw data from the neo4j examples?

丶灬走出姿态 提交于 2019-12-12 15:54:54
问题 The neo4j example data does not work in the most recent version 2.1.2 of neo4j as documented here and here. They are built for 1.9 and apparently can only be upgraded to 2.0, not 2.1. Is there a way to extract the raw data as a csv or cypher file (with a bunch of CREATE statements) from either the tarballs (which contain a graph.db, which I do not understand) or the associated github repositories (which I also do not understand)? 回答1: It's up to us to update the datasets, thanks for pointing

How do I add a second label to a node in Spring Data Neo4J 3.0.0 (Release)?

こ雲淡風輕ζ 提交于 2019-12-12 15:36:31
问题 In Neo4J I have a @NodeEntity Person . I'd like to be able to also add additional labels such as :USER , :CUSTOMER , :OWNER , :AGENT , etc. It seems that spring-data-neo4j:3.0.0-RELEASE has support for an @Labels annotation, but I get a NullPointerException when trying to use it. @NodeEntity public class Person { @GraphId Long id @Indexed(unique=true) String email @Labels // <- Seems this is unsupported. private Collection<String>labels public void addLabel(String label) { this.labels.add

How to ask Neo4j to take cycles into account

≡放荡痞女 提交于 2019-12-12 15:22:42
问题 It seems Neo4j intentionally omits cycles so a query like: MATCH (n1)-[:R]->(n2)<-[:R]-(n1) RETURN n1, n2; Always returns nothing unless there are two relations with type R between n1 and n2 (which is absolutely possible and a bad hack). But I have a scenario in which this cycle might happen and it's desired: MATCH (n1)-[:R]->(n2)<-[:R]-(n3) RETURN n1, n2, n3; In this query, n1 and n3 might be the same node or different ones and it all depends on the data (both are valid). One way to

Neo4j Index creation fails

房东的猫 提交于 2019-12-12 15:08:20
问题 I am currently getting to know Neo4j and the abilities of a graph database. I also did the movie tutorial that comes with neo4j. Now I have to work on a big database (~135 GB, 500 mio. nodes, 950 mio. relationships) and want to add an index for a special type of nodes. This type of nodes, called Transaction, has a property called txid, which is a hash and looks like this: a56e849c19dfecbe93c9e8bfca8e6df0902775c9ecc2e082eea80436c3d93a51 I try to add the index with the cypher query: CREATE