neo4j

connect to Neo4j through Android - impossible task?

与世无争的帅哥 提交于 2020-01-06 02:33:27
问题 Is there any way I can connect to a remote Neo4j server from an Android Project at all ? I have used several approaches: JDBC driver and through REST API using Jersey Client however none of these approaches are successful. All of these work in a pure Java project but fail miserably in Android. At this stage I lost hope that there exists a way I can talk to the database through android. Is that feasible or am I wasting my time trying to find impossible solution ? 回答1: If Neo4j exposes an HTTP

Neo4jClient/Cypher query returns object but without setting properties

痴心易碎 提交于 2020-01-05 19:14:19
问题 I just can't get an object out of Neo4j through Neo4jClient and Cypher. var client = new GraphClient(new Uri("http://mymachine:7474/db/data")); client.Connect(); var myList = client.RootNode.StartCypher("root") .Match("root-[:RELATED_TO]->(user)") .Return<User>("user").Results; I get a User object in myList[0] alright but its properties are empty. I get the same (object with empty properties) through client.ExecuteGetCypherResults<User>( new CypherQuery("start n=node(1) return n;",null,

Neo4j data not showing up in web console

风格不统一 提交于 2020-01-05 12:13:23
问题 I'm trying to write a program that takes data and enters it into a Neo4j database. The program appears to be working well - I say that as it runs without issue and the System.out.println(node.getProperty("Name")); line returns the value of each node that I create. Yet when I go to the web console I do not see ANY of these nodes in the database. I'm positive I am writing it to the correct directory. Doing a ls -l shows the db getting modified each time I run the program: new-host-4:new_graph

How to get Neo4j 2.2 Auth/API Token

女生的网名这么多〃 提交于 2020-01-05 11:43:11
问题 Is there a way to retrieve the API token from the REST API? I want to use the py2neo set_auth_token method. A blog post stated that the server command would return the api token but it does not. :server connect It only lists my user. I installed a completely new Neo4j 2.2 and did not change any configuration. Unforntunately the docs are not very detailed in regards to the api token feature or i did not find the correct page. All i found was: http://neo4j.com/docs/snapshot/rest-api-security

How to get Neo4j 2.2 Auth/API Token

ぃ、小莉子 提交于 2020-01-05 11:40:03
问题 Is there a way to retrieve the API token from the REST API? I want to use the py2neo set_auth_token method. A blog post stated that the server command would return the api token but it does not. :server connect It only lists my user. I installed a completely new Neo4j 2.2 and did not change any configuration. Unforntunately the docs are not very detailed in regards to the api token feature or i did not find the correct page. All i found was: http://neo4j.com/docs/snapshot/rest-api-security

Neo4j cannot read certain nodes. Throws NotFoundException. Corrupt database

我只是一个虾纸丫 提交于 2020-01-05 10:53:41
问题 After aborting an import-process I wound up with a corrupt database. Reading nodes with a certain label almost always throws an error: "Unable to load one or more relationships from Node[160147]. This usually happens when relationships are deleted by someone else just as we are about to load them." The said node is a superconnected one with lots of relations. I cannot delete it nor it's relationships (using cypher) as it throws the same error. This happened in version 2.1.0, however öI have

Neo4j cannot read certain nodes. Throws NotFoundException. Corrupt database

本秂侑毒 提交于 2020-01-05 10:53:27
问题 After aborting an import-process I wound up with a corrupt database. Reading nodes with a certain label almost always throws an error: "Unable to load one or more relationships from Node[160147]. This usually happens when relationships are deleted by someone else just as we are about to load them." The said node is a superconnected one with lots of relations. I cannot delete it nor it's relationships (using cypher) as it throws the same error. This happened in version 2.1.0, however öI have

Neo4j cannot read certain nodes. Throws NotFoundException. Corrupt database

依然范特西╮ 提交于 2020-01-05 10:53:26
问题 After aborting an import-process I wound up with a corrupt database. Reading nodes with a certain label almost always throws an error: "Unable to load one or more relationships from Node[160147]. This usually happens when relationships are deleted by someone else just as we are about to load them." The said node is a superconnected one with lots of relations. I cannot delete it nor it's relationships (using cypher) as it throws the same error. This happened in version 2.1.0, however öI have

Neo4j - Invalid Query error occured

对着背影说爱祢 提交于 2020-01-05 10:18:26
问题 I have tried following query in cypher. START other=node(*) WHERE other.FirstName =~ "(?i)dh.*" AND other.UserID <> 1 WITH other, me=node:node_auto_index(UserID = '1') MATCH me-[myR:friends]-(x) RETURN other.UserID, other.UserName, other.FirstName, other.LastName, other.ImagePath // myR.ApprovalStatus, COUNT(distinct pMutualFriends) AS mutualFriends //ORDER BY mutualFriends DESC LIMIT 100; but it is giving me error. These columns can't be listen in the WITH statement without renaming: me=node

neo4j improving cypher query performance

别来无恙 提交于 2020-01-05 10:16:39
问题 I have items graph db. each item is connected to multiple properties , which can be shared by multiple items . I add a search node which is defined by few properties . So I have (search_node) connected to multiple (properties_nodes) connected to multiple (items_nodes) Now I would like to get a list of items who answer this search by {x} properties or more. Ordered by number of matching properties. start se=node:node_auto_index(name = {name}), pr = node:node_auto_index(type="item_property")