Introduction
Installation
JDK
Neo4j
设置NEO4J_HOME环境变量
1 | |
1 | |
Neo4j Web Admin Console
Neo4j Web Admin Console (localhost)

Neo4j Shell
neo4j shell是neo4j自带的客户端,可以连接访问本地或远程neo4j数据库
- 连接本地
1 | |
- 连接远程
默认没有开启远程shell服务,通过修改neo4j.conf中如下配置开启
1 | |
1 | |
Cypher Shell
GraphDatabaseService
schema-less,无模式
1 | |
Node
Vertice,顶点,节点
1 | |

id是neo4j自动生成的
Label
可以理解为Node Type
1 | |
1 | |
1 | |
DynamicLabel
动态创建Label
1 | |
RelationShip
Edge,关系,边

id是neo4j自动生成的
RelationShipType
1 | |
1 | |
1 | |
DynamicRelationshipType
动态创建RelationShipType
1 | |
Properties
1 | |
Transaction
1 | |
or
1 | |
GlobalGraphOperations
1 | |
Traversal
Using Neoj4 Core Java API
1 | |
Node和RelationShip也自带一些一级检索方法,具体参见前文。
Using Neo4j Traversal API
1 | |
Index

manual index
1 | |
1 | |
1 | |
1 | |
schema indexing
1 | |
1 | |
auto-indexing
server mode
1 | |
embedded
1 | |
1 | |
Cypher
1 | |
node(s) lookup by ID
1 | |
node(s) lookup using an index
1 | |
getting the results
return nodes, properties, relationship, path and paging.
1 | |
1 | |
create
1 | |
1 | |
delete
1 | |
update
1 | |
aggregation
聚合
function
函数
piping using the with clause
管道
cypher compatibility
cypher兼容性