neo4j

neo4j logic gate simulation, how to?

China☆狼群 提交于 2019-12-11 03:14:39
问题 I would like to create a bunch of "and" and "or" and "not" gates in a directed graph. And then traverse from the inputs to see what they results are. I assume there is a ready made traversal that would do that but I don't see it. I don't know what the name of such a traversal would be. Certainly breadth first will not do the job. I need to get ALL the leaves, and go up toward the root. In other words A = (B & (C & Z)) I need to resolve C @ Z first. I need to put this type of thing in a graph

Case of certain special characters in Neo4j case insensitive regex searches don't seem to be matching

拥有回忆 提交于 2019-12-11 03:13:44
问题 It appears that characters like ü and Ü or ł and Ł are treated like completely separate characters in Neo4j for case insensitive regex searches. The following Cypher should return a node but it doesn't: CREATE (t:Thing { name: "Łomza Überbrew" }) MATCH (t:Thing) WHERE t.name=~'(?i)łomza überbrew' RETURN t Is this expected with Neo4j? Using Neo4j Enterprise-2.1.2 Thanks 回答1: You need to use case-insensitive unicode regex instead of just case-insensitive which just applies to ascii chars.

Cannot start rails server with Neo4j db, response coed 401 instead of 200

柔情痞子 提交于 2019-12-11 03:09:19
问题 Any clue how to fix this? rails s -d => Booting WEBrick => Rails 4.2.1 application starting in development on http://localhost:3000 => Run `rails server -h` for more startup options /Users/levi/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/neo4j-core-4.0.5/lib/neo4j-server/resource.rb:33:in `handle_response_error': Expected response code 200 Error for request http://localhost:7474/db/data/, 401, 401 (Neo4j::Server::Resource::ServerException) from /Users/levi/.rbenv/versions/2.2.1/lib/ruby

How to convert Neo4j Result to GraphJSON

十年热恋 提交于 2019-12-11 03:05:20
问题 I want to use GraphJSON format in Alchemy.js for visualization . After getting the Result of CQL execution , I want to convert the Result data to GraphJSON format . Is there some API available or I will have to iterate the collection and create the GraphJSON format?. I am using Java API. Thanks in advance. 回答1: I wrote an demo app that queries Neo4j and returns graphjson to render with alchemy.js you can find it here: http://jexp.github.io/cy2neo running against an non-authenticated local

cannot find org.neo4j.batchimport

半城伤御伤魂 提交于 2019-12-11 02:55:44
问题 I am continuing to have trouble with the import.bat file for the Neo4j batch importer. I started a new thread as the original problem was resolved. from the command prompt I run import.bat test.db sample\nodes.csv sample\rels.csv With some variations on the path listing for the files, including absolute paths. I continue to get the following error message The system cannot find the path specified. Error: Could not find or load main class org.neo4j.batchimport.Importer I also tried running

Returning most common paths in neo4j

别来无恙 提交于 2019-12-11 02:55:00
问题 I have a very simple structure: U1-:VISITS->P1-:VISITS->P2-:VISITS->P3-VISITS->P4... Each VISITS relationship has a rating on a scale 1 to 10. I am interested in relationships that start with U1-:VISITS->P1-:VISITS->P2 where 1st rating is <2 and 2nd rating is greater than 5. Each page node has page link as a property. After that, I am interested in the next 2 pages the user visits. This should return a list of paths. I am interested in the most frequent paths the user takes and ordering them

How to include time into graph mapping (Neo4j)

我只是一个虾纸丫 提交于 2019-12-11 02:54:01
问题 I'm building a simple system for profiling people. I'm currently using neo4j to build simple relations between users. For example I have simple tuple mike met sara But how could I integrate time? For example mike met sara 2 days ago OR mike will meet sara in 3 days The main reason is because the relation can happen multiple times at different times. My goal is to be able to answer questions: has mike met sara in last week? are mike and sara dating (dating = they meet at least 5 times a week)?

Unable to start neo4j server 2.1.2

时光毁灭记忆、已成空白 提交于 2019-12-11 02:46:57
问题 I'm unable to start the latest Neo4j community server 2.1.2 on OSX with java 7. After downloading and extracting the neo4j-community-2.1.2-unix.tar.gz I've tried to run ./bin/neo4j start without modifying any configuration or data dir, but it fails with neo4j-community-2.1.2 markus$ ./bin/neo4j start Using additional JVM arguments: -server -XX:+DisableExplicitGC - org.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j

Neo4j database execution error searching against an index with a node name containing a space

陌路散爱 提交于 2019-12-11 02:46:55
问题 I'm playing around with neo4j community edition 2.0.1, and I've struck a problem which I can't find a solution to. My ineptitude with Cypher may be contributing to my issues! I have a small number of nodes, with an index on a "Name" property. For demonstration purposes, I have two nodes "Foo" and "Foo Bar". Running any of the following Cypher queries in the browser interface works fine - returning either one or both nodes: START n=node:node_auto_index("Name:Foo") match n RETURN n START n=node

Given node A find all nodes in A's subgraph with linear time complexity in Neo4j

て烟熏妆下的殇ゞ 提交于 2019-12-11 02:37:36
问题 I am in the process of evaluating Neo4j for use in a production environment and I have encountered some difficulty when doing something that I expected to be simple. I have managed to solve it, but in a suboptimal and quite complicated way so I was thinking if there might be a simpler way to accomplish the same thing. Preamble Neo4j version 2.3.2 TL;DR This is a bit of a long explanation so the summary is as follows: Given node A, I need to find all nodes in the subgraph of A with a