没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
The Neo4j REST API
Documentation v3.1
Table of Contents
Service root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê2
Streaming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê3
Legacy Cypher HTTP endpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê4
Property values. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê19
Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê20
Relationships. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê26
Relationship types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê37
Node properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê38
Relationship properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê43
Node labels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê49
Node degree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê56
Indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê58
Constraints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê60
Traversals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê64
Graph Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê90
Batch operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê97
Legacy indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê105
Unique indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê112
WADL Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê123
Using the REST API from WebLogic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ê124
© 2017 Neo Technology
License: Creative Commons 3.0
Detailed documentation of the Neo4j Server REST API.
The Neo4j REST API is designed with discoverability in mind, so that you can start
with a GET on the Service root and from there discover URIs to perform other
requests. While the examples below use correct URIs best practice is to discover
URIs where possible, rather than relying on the layout in these examples. This
allows for handling changes to the URI structure gracefully.
The default representation is json (http://www.json.org/), both for responses and for
data sent with POST/PUT requests.
To interact with the JSON interface you must explicitly set the request header
Accept:application/json for those requests that responds with data. You should
also set the header Content-Type:application/json if your request sends data, for
example when you’re creating a relationship. The examples include the relevant
request and response headers.
The server supports streaming results, with better performance and lower
memory overhead. See Streaming for more information.
1
Service root
Get service root
The service root is your starting point to discover the REST API. It contains the basic starting points for
the database, and some version and extension information.
Figure 1. Final Graph
Example request
• GET http://localhost:7474/db/data/
• Accept: application/json; charset=UTF-8
Example response
• 200: OK
• Content-Type: application/json; charset=UTF-8
{
Ê "extensions" : { },
Ê "node" : "http://localhost:7474/db/data/node",
Ê "relationship" : "http://localhost:7474/db/data/relationship",
Ê "node_index" : "http://localhost:7474/db/data/index/node",
Ê "relationship_index" : "http://localhost:7474/db/data/index/relationship",
Ê "extensions_info" : "http://localhost:7474/db/data/ext",
Ê "relationship_types" : "http://localhost:7474/db/data/relationship/types",
Ê "batch" : "http://localhost:7474/db/data/batch",
Ê "cypher" : "http://localhost:7474/db/data/cypher",
Ê "indexes" : "http://localhost:7474/db/data/schema/index",
Ê "constraints" : "http://localhost:7474/db/data/schema/constraint",
Ê "transaction" : "http://localhost:7474/db/data/transaction",
Ê "node_labels" : "http://localhost:7474/db/data/labels",
Ê "neo4j_version" : "3.1.2"
}
2
Streaming
All responses from the REST API can be transmitted as JSON streams, resulting in better performance
and lower memory overhead on the server side. To use streaming, supply the header X-Stream: true
with each request.
Example request
• GET http://localhost:7474/db/data/
• Accept: application/json
• X-Stream: true
Example response
• 200: OK
• Content-Type: application/json; charset=UTF-8; stream=true
{
Ê "extensions" : { },
Ê "node" : "http://localhost:7474/db/data/node",
Ê "relationship" : "http://localhost:7474/db/data/relationship",
Ê "node_index" : "http://localhost:7474/db/data/index/node",
Ê "relationship_index" : "http://localhost:7474/db/data/index/relationship",
Ê "extensions_info" : "http://localhost:7474/db/data/ext",
Ê "relationship_types" : "http://localhost:7474/db/data/relationship/types",
Ê "batch" : "http://localhost:7474/db/data/batch",
Ê "cypher" : "http://localhost:7474/db/data/cypher",
Ê "indexes" : "http://localhost:7474/db/data/schema/index",
Ê "constraints" : "http://localhost:7474/db/data/schema/constraint",
Ê "transaction" : "http://localhost:7474/db/data/transaction",
Ê "node_labels" : "http://localhost:7474/db/data/labels",
Ê "neo4j_version" : "3.1.2"
}
3
剩余126页未读,继续阅读
资源评论
zhizh
- 粉丝: 2
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Screenshot_20240427_031602.jpg
- 网页PDF_2024年04月26日 23-46-14_QQ浏览器网页保存_QQ浏览器转格式(6).docx
- 直接插入排序,冒泡排序,直接选择排序.zip
- 在排序2的基础上,再次对快排进行优化,其次增加快排非递归,归并排序,归并排序非递归版.zip
- 实现了7种排序算法.三种复杂度排序.三种nlogn复杂度排序(堆排序,归并排序,快速排序)一种线性复杂度的排序.zip
- 冒泡排序 直接选择排序 直接插入排序 随机快速排序 归并排序 堆排序.zip
- 课设-内部排序算法比较 包括冒泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、归并排序和堆排序.zip
- Python排序算法.zip
- C语言实现直接插入排序、希尔排序、选择排序、冒泡排序、堆排序、快速排序、归并排序、计数排序,并带图详解.zip
- 常用工具集参考用于图像等数据处理
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功