官方網(wǎng)站
git項(xiàng)目地址
中文文檔
NoSql圖形數(shù)據(jù)庫摹芙,嵌入式、高性能宛瞄、輕量級(jí)浮禾,面向網(wǎng)絡(luò)的數(shù)據(jù)庫,它是一個(gè)嵌入式的份汗、基于磁盤的盈电、具備完全的事務(wù)特性的Java持久化引擎,它將結(jié)構(gòu)化數(shù)據(jù)存儲(chǔ)在網(wǎng)絡(luò)上而不是表中裸影。
安裝
- 安裝jdk
-
安裝neo4j
bin\Neo4j.bat
localhost:7474
原密碼:neoj4 neo4j
修改后密碼:neo4j 123456
名詞
Nodes - graph data records
Relationships - connect nodes
Properties - named data values
Cypher查詢語言--Neo4j中的SQL
Cypher查詢語言--Neo4j中的SQL
- Neo4j它支持兩種類型的API:
- Neo4j的原生的Java API
- Neo4j的Cypher支架的Java API
create (SpeedAndFurious8:movie{title:'Speed And Furious 8',viewTime:'2017-04-15 20:50',viewer:'zhangsan,lisi'})
create (ADogStory:movie{title:'A Dog\'s Story',viewTime:'2017-03-11 18:50',viewer:'wangwu,zhuqi'})
create (guma:writer{name:'guman',sex:'female'})
create (guma1:writer{name:'guman1',sex:'female',age:35})
create (guma2:writer{name:'guman2',sex:'female',age:25})
match (writer {name:'guman'}) return writer
match (movie {title:'Speed And Furious 8'}) return movie
match(movies:movie) return movies.title limit 5
match(peoples:writer) where peoples.age>30 return peoples
CREATE (n:Person { name: 'Ann' })
CREATE (n:Person { name: 'Dan' })
MATCH (a:Person { name: 'Ann' }), (b:Person { name: 'Dan' }) CREATE (a)-[:KNOWS]->(b)
MATCH p=()-[r:KNOWS]->() RETURN p LIMIT 25
match (n:writer) where n.name=~'.*man.*' return n limit 4
JAVA引用
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>3.2.0-alpha08</version>