neo4j

Neo4J server startup error after enabling the unmanaged extension configuration

跟風遠走 提交于 2019-12-06 10:01:31
I am using Neo4J community edition 2.3.0 on windows OS 10. Everything works well until I changed the configuration at neo4j-server.properties files as: org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.examples.server.unmanaged=/examples/unmanaged The error at server startup is: Starting Neo4j failed: org.neo4j.server.web.NeoServletContainer-5b85e832@73766070==org.neo4j.server.web.NeoServletContainer,-1,false If I disable this change then server starts very well. I am trying to run the HelloWorld example for the unmanaged extension as given with the Neo4J tutorial and follow all the

Neo4j cypher time interval histogram query of time tree

早过忘川 提交于 2019-12-06 09:46:07
I would like to build an histogram on time series stored as time tree in neo4j. The data structures are event done by a user each has timestamp, say user purchases category. What I need to have is the number of browsing on each category by each user between start and end time, with interval of (1 second to days) My model feats graph db very nicely, as I read neo4j documentation I could not find any way to do it in one query, and I'm afraid that calling for each user would be very slow. I am aware to cypher capabilities, but I have no idea how to create such query. I am looking for something

neo4j LOAD CSV returns Couldn't Load external resource

左心房为你撑大大i 提交于 2019-12-06 09:42:31
Trying CSV import to Neo4j - doesn't seem to be working. I'm loading a local file using the syntax: LOAD CSV WITH HEADERS FROM "file:///location/local/my.csv" AS csvDoc Am wondering if there's something wrong with my CSV file, or if there's some syntax problem here. If you didn't read the title, the error is: Couldn't load the external resource at: file:/location/local/my.csv [Neo.TransientError.Statement.ExternalResourceFailure] HieroB Neo4j seems to need a full path spec to get a file on the local system. On linux or mac try LOAD CSV FROM "file:/Users/you/location/local/my.csv" On windows

Unable to find neo4j-cypher-dsl version 1.9.M04 anywhere

时间秒杀一切 提交于 2019-12-06 09:30:30
org.springframework.data:spring-data-neo4j:2.2.1.RELEASE depends on neo4j-cypher-dsl:org.neo4j:1.9.M04 but I am unable to find this dsl artifact in any public mvn repositories. Any idea on where to get this jar? Found this in neo4j repo here http://m2.neo4j.org/content/repositories/releases/org/neo4j/neo4j-cypher-dsl/1.9.M04/ 来源: https://stackoverflow.com/questions/16653128/unable-to-find-neo4j-cypher-dsl-version-1-9-m04-anywhere

Have both Gremlin-Server AND NEO4J Server running at the same time

杀马特。学长 韩版系。学妹 提交于 2019-12-06 09:29:08
Current it seems we cannot run both Neo4J Server and Gremlin Server at the same time. Is there any way to have run both? NEO4J is running and I try to start to Gremlin Server then I get the following error java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [class org.apache.tinkerpop.gremlin.neo4j.structure.Neo4jGraph].......................(truncated) Gremlin Server is running and I try to start NEO4J Server then I get the following error Caused by: org.neo4j.kernel.StoreLockException: Store and its lock file has been locked by another process: /home

Determine Neo4j database version

微笑、不失礼 提交于 2019-12-06 09:16:12
The Neo4j Java API automatically updates outdated databases to the current version when I call new GraphDatabaseFactory().newEmbeddedDatabase(File storeDir) I would like to check what version the database is before doing that. Is there a way to do that with the Java API? Or alternatively: Where is the database version stored so I can read it out manually? Release version I dug into the Neo4j API source and found an answer. Neo4j reads out the previous version from the debug.log file in the logs directory. Whenever the database is started the version is printed into the log file as Kernel

Understanding of Neo4j object cache

限于喜欢 提交于 2019-12-06 09:14:23
I'm trying to understand Neo4j object cache by some investigation into it. My first impression of Object cache come from the slides in this link: http://www.slideshare.net/thobe/an-overview-of-neo4j-internals Specifically the Node/Relationship object in cache should look like slide 9 or 15/42. To verify this, I wrote a simple server script using existing graph database contents. The way I do it is trying to look into the starting virtual address of the node/relationship object using sun.misc.Unsafe. The program for obtaining virtual address is from the following link: How can I get the memory

neo4j import slowing down

你离开我真会死。 提交于 2019-12-06 09:05:24
问题 I'm trying to import a medium data set of about 500,000 nodes into neo4j using cypher. I am running neo4j-community-2.0.0-M05 locally on my 3.4 GHz i7 iMac with SSD. I am piping the cypher to neo4j shell, wrapping every 40k lines into a transaction. I am using labels and before I started, I created indices on one property per labeled node. When I left last night, MATCH CREATE UNIQUE were taking about 15ms each. This morning they are taking about 6000ms. The slow queries looks something like

Neo4j Cypher Console Changing Database

给你一囗甜甜゛ 提交于 2019-12-06 08:57:43
I've just started to learn the Neo4j graphs db, i am a .net developer and i have downloaded the .net version also the sample MVC project for .net (hour ago), I manage to make the project run and playing with it. Upon playing with the Cyphers Console, somehow i cant find the data's from the sample, maybe the default database of the console is pointing to the default db, how do i move to the database that is created by my sample project. is there such thing as database/schema here just like in MSSql/MySQL that tables are grouped by database? thanks for response. Look at neo4j-server.properties

Session.run() VS transaction.run() in Neo4j Bolt

 ̄綄美尐妖づ 提交于 2019-12-06 08:55:42
What is the difference between the Session.run() and transaction.run() in Neo4j Bolt driver? My knowledge is: Session.run() will execute a single statement transaction.run() executes multiple statements. Those are the information I know which are correct. What are the all other differences? Session.run() will actually create a transaction, execute the statement, and commit the transaction. Transaction.run() will leave the transaction open until you commit it, but the statement will still be sent and interpreted and executed, and results will be returned. However, any changes won't actually be