neo4j

neo4j access control headers

老子叫甜甜 提交于 2019-12-12 04:39:41
问题 i am using neo4j REST api and doing an jquery ajax call This is my first time with REST i was trying to make a call like this: $.ajax({ url: "http://localhost:7474/db/data/cypher", accepts: "application/json; charset=UTF-8", contentType:"application/json", dataType:"json", data:{ "query" : "start n = node(*) return n", "params" : {} }, type:"POSt", success:function(data,xhr,status) { console.log(data); }, error:function(xhr,err,msg){ console.log(xhr); console.log(err); console.log(msg); } });

Spring Data | Neo4J | Querying for the path in the correct order

北城余情 提交于 2019-12-12 04:38:15
问题 Versions: <dependency> <groupId>org.neo4j</groupId> <artifactId>neo4j-ogm-core</artifactId> <version>2.1.1</version> </dependency> <dependency> <!-- If you're using the HTTP driver --> <groupId>org.neo4j</groupId> <artifactId>neo4j-ogm-http-driver</artifactId> <version>2.1.1</version> </dependency> <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-neo4j --> <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-neo4j</artifactId> <version>4

Error using neo4j with jdk 1.7

守給你的承諾、 提交于 2019-12-12 04:38:00
问题 I am using Java 1.7 with neo4j-community-2.0-1.1 to build a sample neo4j graph database. Please see below my code import org.neo4j.graphdb.Direction; import org.neo4j.graphdb.GraphDatabaseService; import org.neo4j.graphdb.Node; import org.neo4j.graphdb.Relationship; import org.neo4j.graphdb.RelationshipType; import org.neo4j.graphdb.Transaction; import org.neo4j.graphdb.factory.GraphDatabaseFactory; public class showData { private static final String Neo4J_DBPath = "/Technology/neo4j

Neo4j 3.1.0 apoc.export.graphml issue

余生长醉 提交于 2019-12-12 04:32:19
问题 I am trying to export my db as a graphml file via the apoc.export.graphml procedure in Neo4j 3.1 + 3.1.0.3: call apoc.export.graphml.all("test",{}) I get this error message: Failed to invoke procedure apoc.export.graphml.all : Caused by: java.lang.RuntimeException: Import from files not enabled, please set apoc.import.file.enabled=true in your neo4j.conf I have edited my neo4j.conf file to add apoc.import.file.enabled=true at the end of the document but I'm still getting the same error

How to extract all subgraph from neo4j

流过昼夜 提交于 2019-12-12 04:30:52
问题 I'm using neo4j and I build a large graph that has a lot of subgraph. For example, in the pic below there are 4 subgraphs. So how can I get 4 groups of nodes by cypher query? I'm using neo4j 3.0 回答1: If you want to display all node along with all relationships, you can use a quick and easy cypher query at your disposal. Assuming there are no restrictions applicable to your account: MATCH (n) RETURN n 来源: https://stackoverflow.com/questions/43337932/how-to-extract-all-subgraph-from-neo4j

Improve Neo4j Cypher Performance On Lengthy Match

女生的网名这么多〃 提交于 2019-12-12 04:25:30
问题 Setup: Neo4j - 1.9.3 ~7,000 nodes ~1.8 million relationships I have the following cypher query that I would like to improve the performance on: START a=node(2) MATCH (a)-[:knowledge]-(x)-[:depends]-(y)-[:knowledge]-(end) RETURN COUNT(DISTINCT end); This returns 471 (188171 ms). Right now I'm only getting a count but later I may want to get the values (471 in this example). The problem is it takes about 3-4 minutes to run. The graph is highly connected with many relationships. Running the

GraphRepository find method on 2nd level relationship

余生颓废 提交于 2019-12-12 04:23:11
问题 I am using spring-data-neo4j-4.2.0.RC1 and neo4j-ogm-core-2.1.0.jar Have the following domain objects User -> Role -> Priviledge public class User extends BaseEntity{ private String firstName; private String lastName; @Relationship(type="ROLE") private Role role; } @NodeEntity public class Role extends BaseEntity{ private String name; @Relationship(type="PRIVILEDGE") private Priviledge priviledge; } @NodeEntity public class Priviledge extends BaseEntity { private String name; } public

Install Neo4j 3.0+ as a windows service

一个人想着一个人 提交于 2019-12-12 04:22:43
问题 Anyone tried installing neo4j version 3 in windows as a service? I tired neo4j community version 3.1.0 and 3.2.0 alpha. I am getting following error when try to start the service. Invoke-Neo4j : Failed to start service 'Neo4j Graph Database - neo4j (neo4j)'. At line:1 char:211 + ... t.psd1'; Exit (Invoke-Neo4j start) + ~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke

Spring Data Neo4j 4 : findByPropertyIsNull is not working

 ̄綄美尐妖づ 提交于 2019-12-12 04:16:15
问题 Using SDN 4.0 and having this entity, offering a tree of Interests (Parent and Children) @NodeEntity public class Interest { @GraphId private Long id; private Interest parent; private List<Interest> children = new ArrayList<Interest>(); private String label; public Interest(){ } public Interest(Interest parent, String label) { super(); this.parent = parent; this.label = label; if (this.parent!=null && !this.parent.getChildren().contains(this)) getChildren().add(this); } public List<Interest>

Migrate Data from Neo4j to SQL

流过昼夜 提交于 2019-12-12 04:13:15
问题 Hi I am using neo4j in my application and my structure is as following: I am using Embedded Graph API I have several databases that I point to using a pool that I maintain in my application eg-> db1, db2, db3, ..... db100 When I want to access a particular database I point to it using new EmbeddedGraphDatabase("Path to db(n)") The problem is that when the connection pool count increases the RAM size being consumed by the application keep increasing and breaks down the application at a point