neo4j(3)Setup neo4j Server and Know Concepts
1. Installation
Fetch and unzip the latest files
>wget http://dist.neo4j.org/neo4j-community-2.1.3-unix.tar.gz
Follow the README.txt file and place the zip package in working directory.
Open the working console
>bin/neo4j console
In the browser, visit this page
http://localhost:7474
For the REST Interface
http://localhost:7474/db/data/
2. Concept
Nodes
Data is stored as Properties (Simple name/value pairs, Properties can be strings, numbers, or booleans)
Labels (A node can have zero or more labels, no properties for label)
Relationships (describe how the records are related; always have direction, type;)
Relationship Properties
3. Cypher
Create a node with properties
create (ee:Person {name:"Emil",from:"Sweden",klout:99})
create - is the key word to create data
() to indicate a node
ee:Person - a variable ‘ee’ and label ‘Person’ for the new node
{} - properties for the node
Match
match (ee:Person) where ee.name = "Emil" return ee;
match - keyword for a pattern
Create Relationship
(ee)-[:KNOWS { since: 2001} ] -> (js)
(ee)-[:KNOWS {rating: 5}] ->(ir)
(js)-[:KNOWS]->(ir)
…snip…
KNOWS is a name for the relationship, Person is the label for type of nodes.
Pattern Matching
MATCH (ee:Person)-[:KNOWS]-(friends)
WHERE ee.name = “Emil” RETURN ee, friends
(friends) will be bound to Emil’s friends.
Recommend Using Patterns
match (js:Person)-[:KNOWS]-()-[:KNOWS]-(surfer) where js.name = "Johan" AND surfer.hobby = "surfing" RETURN DISTINCT surfer
Find from Johan’s friends’s friends whose hobby is “surfing”
References:
http://www.hascode.com/2012/01/neo4j-graph-database-tutorial-how-to-build-a-route-planner-and-other-examples/
http://stackoverflow.com/questions/14814124/get-all-routes-between-two-nodes-neo4j
official website
http://www.neo4j.org/download
all clients
http://neo4j.com/contrib/
http://docs.neo4j.org/chunked/stable/tutorials-java-embedded.html
https://github.com/neo4j-contrib/java-rest-binding
http://docs.neo4j.org/chunked/milestone/rest-api.html
https://github.com/AnormCypher/AnormCypher
Installation
http://neo4j.com/docs/2.1.3/server-installation/#osx-install
scala client
https://github.com/AnormCypher/AnormCypher
tips
http://www.cnblogs.com/ljhero/archive/2012/05/13/2498039.html
I used to reading some documents
http://sillycat.iteye.com/blog/1551278
http://sillycat.iteye.com/blog/1551281
google cayley
https://github.com/google/cayley
- 浏览: 2500498 次
- 性别:
- 来自: 成都
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
相关推荐
Neo4j Desktop Setup 1.4.8 安装包
Neo4j Desktop Setup 1.3.4.exe
Neo4j Desktop桌面版安装包
Neo4j Desktop Setup 1.4.15.windows.zip
Graph Database Applications and Concepts with Neo4j.pdf
Neo4j Desktop Setup 1.5.7 for windows(include key) 留底用
Neo4j Desktop ,适合图数据库的爱好者以及初学者
Chapter 2, Getting Started with Neo4j, introduces the specific Neo4j implementation of a graph database and looks at key concepts and characteristics. Chapter 3, Modeling Data for Neo4j, covers the ...
Chapter 3: Get Up and Running with Neo4j Chapter 4: Meet Cypher Chapter 5: Managing Your Data in Neo4j Chapter 6: Importing and Exporting Data Chapter 7: Querying Data in Neo4j with Cypher Chapter 8: ...
Starting with a practical and vital introduction to Neo4j and various aspects of Neo4j installation, you will learn how to connect and access Neo4j servers from programming languages such as Java, ...
neo4j社区版 用户名 neo4j 密码neo4j
这是一本相对比较新的关于Neo4j的电子书,看不惯那些收费的资源,这个免费!
Neo4j Vue 安装步骤 克隆或下载该库到本地 下载neo4j并安装到本地,启动neo4j服务 进入到该工程的根目录,输入命令:npm run update进行npm包的导入 使用命令:npm run dev启动该工程 默认端口是:8081 neo4j账号...
Linux的neo4j安装包
课程涉及Neo4j概念、原理、实战、综合完整项目(Neo4j+D3.js可视化)全方位深入讲解,深入讲解图数据库查询语言Cyther,可帮助学员快速掌握Cyther开发技能。深入讲解Neo4j Java API,并在Neo4j+D3.js完整Web项目中...
neo4j-community-5.11.0-windows.zip
Using this book, you'll get everything up and running, and then learn how to use Neo4j to build up recommendations, relationships, and calculate the shortest route between two locations. With example ...
neo4j设置 设置Neo4j + vis应用
Neo4j Vue 安装步骤 克隆或下载该库到本地 下载neo4j并安装到本地,启动neo4j服务 进入到该工程的根目录,输入命令:npm run update进行npm包的导入 使用命令:npm run dev启动该工程 默认端口是:8081 neo4j账号...
由于现在网上已有的d3+neo4j的整合资源少之又少,个人大致了解了下很多代码代码例子都是用的测试例子展示而已,甚至有的网上平台的一个学习资源视频就卖到六七百块,在这里先上一个简单demo,实现的是从图数据库查询...