简体   繁体   English

Neo4J Rest API理解

[英]Neo4J Rest API comprehension

I'm currently implementing the Neo4J Rest API for Dart language and I'm confuse with some APIs! 我目前正在为Dart语言实现Neo4J Rest API,并且对某些API感到困惑!

Concerning chapter 20.11.7, how can I build the URL http://yourhost.com:7474/db/data/label/Actor/nodes ? 关于第20.11.7章,如何构建URL http://yourhost.com:7474/db/data/label/Actor/nodes Ok for the last part of the URL but what about the first part (ie http://yourhost.com:7474/db/data/label ). 可以确定URL的最后一部分,但是第一部分呢(即http://yourhost.com:7474/db/data/label )。 The service root does not return a link to labels' queries and I don't think that hard coded such a link is a good solution ;-) 服务根目录不会返回指向标签查询的链接,并且我不认为将这样的链接硬编码是一个很好的解决方案;-)

I have the same problem with relationships "Get by ID" query 19.7.1 ( http://yourhost.com:7474/db/data/relationship/30 ) : the service root answer does not return any link to query relationships (except using a node). 我对关系“通过ID获取”查询19.7.1( http://yourhost.com:7474/db/data/relationship/30 )有相同的问题:服务根答案不返回任何查询关系链接(除非使用节点)。

Don't you think there's some missing links from the service root answer ? 您是否不认为服务根目录答案中缺少某些链接? Typically I would have add to the root's answer the following property: 通常,我会将以下属性添加到根的答案中:

{
"..." : "...",
"label" : "http://yourhost.com:7474/db/data/label",
"relationship" , "http://yourhost.com:7474/db/data/relationship",
"..." : "..."
}

Does anyone has already implemented these methods and how did you do? 有没有人已经实现了这些方法,您如何做?

Thanks for your answer 感谢您的回答

Well, I would not bother with the REST API but rather use Cypher and the http://docs.neo4j.org/chunked/snapshot/rest-api-cypher.html , since it supports al of the REST calls, except the handling of manual indexes. 好吧,我不会打扰REST API,而是使用Cypher和http://docs.neo4j.org/chunked/snapshot/rest-api-cypher.html ,因为它支持除处理之外的所有REST调用手动索引。

Would that be an option? 这是一个选择吗?

Please keep us updated on your progress! 请让我们了解您的进度!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM