java-rest-binding
java-rest-binding copied to clipboard
Java Bindings for the Neo4J Server REST API, providing an implementation of GraphDatabaseService
When I run this query in the Neo4j webadmin it runs perfectly: ``` text start a = node(0) create unique a-[:Rel]->(b{key:'prop'}) ``` However, when I use the above query like...
Problem issues are documented here: http://stackoverflow.com/questions/16148190/neo4j-queryresult-wont-exit Currently I have this class. When I remove QueryResult it runs the main method and completes on its own. When I add QueryResult I...
The example in the Neo4j docs won't work due to NPE: http://docs.neo4j.org/chunked/milestone/transactions-unique-nodes.html ``` java public Node getOrCreateUserWithUniqueFactory(String username, GraphDatabaseService graphDb ){ UniqueFactory factory = new UniqueFactory.UniqueNodeFactory( graphDb, "users" ) {...
We are trying to switch from running as an embedded DB to using a Neo4j server and hit a consistent problem. It's occurring frequently enough that there must be something...
Can someone provide a heads for java-rest-binding with some demo code?
Trying to use batchRestApi.deleteEntity() to delete a node with relationships causes this error: ``` Exception in thread "main" java.lang.RuntimeException: Error recreating Product nodes at id.co.bippo.mall.admin.RecreateProductNodesFromMagento.run(RecreateProductNodesFromMagento.java:199) at id.co.bippo.mall.admin.RecreateProductNodesFromMagento.main(RecreateProductNodesFromMagento.java:207) Caused by: java.lang.RuntimeException:...
java.lang.UnsupportedOperationException: null when creating `RestGraphDatabase` index via Blueprints
REST Graph Database (v1.6), server powered by Neo4j v1.6.2 is unable to create index via Blueprints with the following error: ``` 01:43:11.983 [main] INFO com.hendyirawan.likebox.dao.LikeDao - Connecting to Neo4j REST...
``` final RestAPI restApi = graphDb.getRestAPI(); log.info("Deleting existing Person nodes..."); RestIndex personIndex = graphDb.index().forNodes("berbatikPerson"); RestCypherQueryEngine cypher = new RestCypherQueryEngine(restApi); for (List rows : Iterables.partition(cypher.query("START n=node:berbatikPerson('*:*') RETURN n", new HashMap()), 100))...
This won't work: ``` graphDb.getRestAPI().executeBatch(new BatchCallback() { @Override public Void recordBatch(RestAPI batchRestApi) { Node node = batchRestApi.getNodeById(nodeId); for (Relationship rel : node.getRelationships()) { rel.delete(); } node.delete(); return null; } });...
While this works: ``` TestBatchResult r = this.restAPI.executeBatch(new BatchCallback() { @Override public TestBatchResult recordBatch(RestAPI batchRestApi) { TestBatchResult result=new TestBatchResult(); result.n1 = batchRestApi.createNode(map("name", "newnode1")); result.n2 = batchRestApi.createNode(map("name", "newnode2")); result.rel = batchRestApi.createRelationship(result.n1,...