问题标签 [node-neo4j]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
node.js - 如何从 Node.js 中的 Cypher 查询中检索非空白对象
给定一个节点,我想查询该节点的任何传入关系并返回具有该关系的节点。我正在修改节点 Neoj4 模板
我期望取回一个节点数组,为每个元素创建对象,然后引用节点属性。相反,我得到了空对象。但是,我确实获得了查询的正确节点数(即 2 个入站关系,返回 2 个元素)。
我已经在 cypher shell 中运行了查询,得到了我期望的结果。我正在使用 Neo4j 1.9.2
关于图:我有一个由 8 个人员节点和 2 种关系类型组成的家谱图:INHERITS_X、INHERITS_Y。这是指决定性别的染色体。例如,如果我有两个孩子,那么我有 2 个传入关系;我的儿子 INHERITS_Y 和我的女儿 INHERITS_X。
任何帮助表示赞赏。
谢谢,
这里是调用查询函数 (getInbound) 的地方:
};
和 getInbound 函数:
运行代码的输出:
和 Person 构造函数:
node.js - Correct way to provide the 'query' parameter to Neo4j within Cypher REST API in node.js
How to compose correct Cypher query through POST request to Neo4j in node.js?
Code:
Result:
Expected result:
List of all nodes (same as POST /db/data/cypher {"query":"START root=node(*) RETURN root"}
in Neo4j console)
Solution (thanks to Andrew Palumbo):
neo4j - 无法使用 UniqueNodeFactory 重新创建刚刚删除的节点
我刚刚用 UniqueNodeFactory 和他与 UniqueRelationshipFactory 的关系创建了一个节点。我用 NeoEclipse 删除了该节点,然后我尝试重新创建相同的节点,但没有出现异常,并且该节点没有再次重新创建。有谁知道这正在发生?
node.js - Neo4j REST API List All Labels 在图表为空时返回标签?
我目前正在为用 node.js 编写的 Neo4j 开发 REST API 包装器。
为什么 REST API 返回已删除节点的标签?我可以获得现有节点的所有标签吗?
代码可以在: https ://github.com/Stofkn/node-neo4j (main.js方法listAllLabels)
neo4j - newEmbeddedDatabase api 需要文件系统上的路径。为什么不能使用内存?
我需要使用嵌入在我的 java 应用程序中的 neo4j。因为我不想在文件系统上存储任何东西,所以我想在内存中创建我的数据库。当 Neo4j 嵌入到我的 Java 应用程序中时,它是否可能?
java - 我的 java 程序更新 Neo4j 数据库失败
我的本地 neo4j 数据库路径是 C:\neo4j-community-1.9.3_bup
我创建了一个简单的 java 程序来连接到 neo4j DB 并插入一些节点。
但是在插入后,当我尝试通过 Neo4jDataBrower 检索这些节点时,这些节点没有列出。
我使用的代码取自 neo4j 门户本身,
为什么它不起作用?
请建议我..我给出的 vth 路径是否有问题或 vth 代码有问题?
嗨,维尔纳,
运行时异常是
新日志,
新的例外,
neo4j - 识别两个图形图像之间的增量
我们如何不时识别 Neo4j 中两个节点之间的差异。换句话说,我有两个图形图像,我的任务是识别这两个节点之间的差异。
有什么建议么?
在这里,我将可以访问 neo4j 数据库,该数据库将由应用程序更新为我无权访问。我的工作是识别对数据库所做的更改,时间间隔如 4 小时一次等。这里节点没有没有任何时间戳。以前我将其视为两个图像,因为我的要求是识别在某个时间间隔内发生在同一个数据库上的更改。例如,下午 1 点(一个图形实例)到下午 4 点(第二个图形实例),时间间隔为 4 小时。
希望我的查询很清楚..
谢谢..
java - 使用 GraphRepository 时 spring 数据 neo4j 示例中的错误
嗨,我已经下载了 spring data neo4j 的一个示例代码。我面临以下错误,有人可以帮忙吗?
代码片段:
应用程序.java
错误 :
有人可以帮我解决这个问题吗?
neo4j - Consolidating results of cypher query when two result nodes are the same
Take for example the following scenario:
A hospital node is related to many doctor nodes. Doctor nodes are related to other doctors representing when they refer a patient to another doctor. These referrals can be to a doctor at a different hospital. The relationship between doctors has a property called count that indicates how many times that doctor has referred any of their patients to that second doctor.
What I'm trying to do is take these referral relationships and look at it from the hospital level. My query currently looks like this:
It sounds complicated but the query is pretty straight forward. Here's the only problem. Let's say two doctors from Hospital A refer a patient to two doctors from Hospital B, I'll end up with two records where hospital1 = Hospital A, and hospital2 = Hospital B. I want to combine these results together and add the referral.count properties together. Is there any way to do this with Cypher?
neo4j - 如何在 windows 7 中将数据导入 neo4j (neo4j-community-2.0.0)?
我得到了下面的链接来做到这一点,但问题是它是为 linux 用户准备的!!!
http://blog.neo4j.org/2013/03/importing-data-into-neo4j-spreadsheet.html
请帮我在 Windows 上完成这项工作?提前致谢。
我是 neo4j 的新手,对 java 的经验只有一点点。
我从以下链接将 neo4jtools 添加到我的 neo4j 服务器
https://github.com/jexp/neo4j-shell-tools
然后我按照这个命令将少量数据导入图形数据库
我在命令提示符下收到这样的消息
我的 import.txt 文件内容是这些
我可以看到在 test5.db 文件夹中创建了很多东西,
但是当我转到浏览器控制台时,我看不到那里的任何节点?
还有什么事情要做吗?走对了吗?请帮助我继续前进!
++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++
我的 ne04j.properties 内容是
和 neo4j-server.properties 在这里