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 REST API中添加关系属性;s批处理操作_Neo4j - Fatal编程技术网

在neo4j REST API中添加关系属性;s批处理操作

在neo4j REST API中添加关系属性;s批处理操作,neo4j,Neo4j,此JSON格式成功加载关系: {"method":"POST","to":"/node/25612/relationships","id":25612,"body":{"to":"25614","type":"father"}} 向关系中添加“权重”属性的格式是什么 使用REST API的批处理操作时,body.data对象指定关系属性,如下所示: { "method":"POST", "to":"/node/25612/relationships", "id":25612,

此JSON格式成功加载关系:

{"method":"POST","to":"/node/25612/relationships","id":25612,"body":{"to":"25614","type":"father"}}

向关系中添加“权重”属性的格式是什么

使用REST API的
批处理
操作时,
body.data
对象指定关系属性,如下所示:

{
  "method":"POST",
  "to":"/node/25612/relationships",
  "id":25612,
  "body":{
    "to":"25614",
    "type":"father",
    "data": {
      "weight": 175
    }
  }
}

使用REST API的批处理操作时,
body.data
对象指定关系属性,如中所示:

{
  "method":"POST",
  "to":"/node/25612/relationships",
  "id":25612,
  "body":{
    "to":"25614",
    "type":"father",
    "data": {
      "weight": 175
    }
  }
}

这不是CSV,而是JSON。这个在哪里用?用于创建与属性的关系的RESTAPI是有文档记录的。是的,JSON。我查看了文档并尝试了几种格式,例如{“方法”:“POST”,“to”:“/node/3/relationships”,“id”:3,“body”:{“to”:“608”,“type”:“father”,“property”:{“wt”:“500”}}},但它们不起作用。征求建议。你想在哪里使用这些数据?RESTAPI?不是CSV,而是JSON。这个在哪里用?用于创建与属性的关系的RESTAPI是有文档记录的。是的,JSON。我查看了文档并尝试了几种格式,例如{“方法”:“POST”,“to”:“/node/3/relationships”,“id”:3,“body”:{“to”:“608”,“type”:“father”,“property”:{“wt”:“500”}}},但它们不起作用。征求建议。你想在哪里使用这些数据?剩下的API?太好了。请记住,最好的答案可以解决你的任何问题。太好了。请记住,最好的答案可以解决您的任何问题。