Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用neo4j使用属性值建立关系_Neo4j_Nosql_Graph Databases_Spring Data Neo4j - Fatal编程技术网

如何使用neo4j使用属性值建立关系

如何使用neo4j使用属性值建立关系,neo4j,nosql,graph-databases,spring-data-neo4j,Neo4j,Nosql,Graph Databases,Spring Data Neo4j,如何使用属性的值建立关系 示例:导入了名为customers的数据集,其节点标签为CUSTOMER,数据量大: id, mobile number, city, contact type, date 还有另一个数据集名称calllogdetails,它的节点标签是log,属性是持续时间、事件日期、传入呼叫、传出呼叫 注意:日志节点中的传入号码的值也存在于客户节点的移动号码值中 如何建立与客户{Mobile'Value'}==呼叫日志(传入号码'Value')的关系 客户数据库(手机号

如何使用属性的值建立关系

示例:导入了名为customers的数据集,其节点标签为
CUSTOMER
,数据量大:

 id, mobile number, city, contact type, date  

还有另一个数据集名称
calllog
details,它的节点标签是log,属性是持续时间、事件日期、传入呼叫、传出呼叫

注意:日志节点中的传入号码的值也存在于客户节点的移动号码值中

如何建立与
客户{Mobile'Value'}==呼叫日志(传入号码'Value')的关系

客户数据库(手机号码)包含与通话记录数据库(来电)相同的值

我想用neo4j加入他们

图3
我该怎么做?用代码解释谢谢节点是客户和日志节点代码(无更改,无记录)这出现了我可以有一封电子邮件以便我可以看到屏幕快照请看图片3我在前面的屏幕快照上看到了标签。如果你的评论更清楚,你可能会在这里得到一些帮助。例如,解释什么对我的代码片段有效/无效。阅读也有帮助;)
mobile no:'07123456'  == incoming number : '07123456'
MATCH (log:Log)
WITH log
MATCH (cust:Customer)
WHERE cust.mob=log.incomming
CREATE (log)-[:MYNEWRELATIONTYPE]->(cust)