neo4j 入门教学_2
来源:互联网 发布:夜来听雨声,花落知多少 编辑:程序博客网 时间:2024/04/29 07:24
neo4j入门教程
1.进入官网下载http://neo4j.com/developer/get-started/
2.下完后点击安装就可以了
3.开启软件
4.点击链接进入
5.进入后就可以看到如下界面
6.在界面的顶部就是neo4j的查询语言的编辑窗口,在这里你可以编辑你的代码,当然用的是cypher语言,这里简单写个例子:
7.代码如下
CREATE (shakespeare:Author {firstname:’William’, lastname:’Shakespeare’}),
(juliusCaesar:Play {title:’Julius Caesar’}),
(shakespeare)-[:WROTE_PLAY {year:1599}]->(juliusCaesar),
(theTempest:Play {title:’The Tempest’}),
(shakespeare)-[:WROTE_PLAY {year:1610}]->(theTempest),
(rsc:Company {name:’RSC’}),
(production1:Production {name:’Julius Caesar’}),
(rsc)-[:PRODUCED]->(production1),
(production1)-[:PRODUCTION_OF]->(juliusCaesar),
(performance1:Performance {date:20120729}),
(performance1)-[:PERFORMANCE_OF]->(production1),
(production2:Production {name:’The Tempest’}),
(rsc)-[:PRODUCED]->(production2),
(production2)-[:PRODUCTION_OF]->(theTempest),
(performance2:Performance {date:20061121}),
(performance2)-[:PERFORMANCE_OF]->(production2),
(performance3:Performance {date:20120730}),
(performance3)-[:PERFORMANCE_OF]->(production1),
(billy:User {name:’Billy’}),
(review:Review {rating:5, review:’This was awesome!’}),
(billy)-[:WROTE_REVIEW]->(review),
(review)-[:RATED]->(performance1),
(theatreRoyal:Venue {name:’Theatre Royal’}),
(performance1)-[:VENUE]->(theatreRoyal),
(performance2)-[:VENUE]->(theatreRoyal),
(performance3)-[:VENUE]->(theatreRoyal),
(greyStreet:Street {name:’Grey Street’}),
(theatreRoyal)-[:STREET]->(greyStreet),
(newcastle:City {name:’Newcastle’}),
(greyStreet)-[:CITY]->(newcastle),
(tyneAndWear:County {name:’Tyne and Wear’}),
(newcastle)-[:COUNTY]->(tyneAndWear),
(england:Country {name:’England’}),
(tyneAndWear)-[:COUNTRY]->(england),
(stratford:City {name:’Stratford upon Avon’}),
(stratford)-[:COUNTRY]->(england),
(rsc)-[:BASED_IN]->(stratford),
(shakespeare)-[:BORN_IN]->stratford
- neo4j 入门教学_2
- neo4j 入门教学_2
- neo4j入门
- Neo4j入门
- neo4j的入门示例
- 图数据库 Neo4j 入门
- 图数据库Neo4j入门
- neo4j图数据库入门
- Neo4j:Cypher查询入门
- 图形数据库Neo4j入门
- HIVE入门_2
- Vue入门篇_2
- 从零开始入门密码学_2
- Neo4j入门一基本操作
- Neo4j安装&入门&一些优缺点
- Neo4j安装&入门&一些优缺点
- neo4j图数据库--Cypher入门
- python入门练习笔记_2
- Android探索之旅(第十六篇)Android APP启动过程分析(1)——Measure、Layout、Draw
- poj 2229 B
- 迪杰斯特拉-java实现
- windows下安装配置nutch-0.9
- String直接赋值和new一个对象的理解
- neo4j 入门教学_2
- neo4j入门开发,以及在sns关系中的应用(原创)
- 微信小程序-template模版
- android集成第三方支付
- 2017年ACM模板(常用)弱渣整理 一、暴力
- what is spring boot
- 用CHttpFile实现简单的GET/POST数据
- 转:推荐系统十条经验和教训
- vbs脚本学习整人Demo