`
sillycat
  • 浏览: 2539501 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

neo4j(3)Setup neo4j Server and Know Concepts

 
阅读更多

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

分享到:
评论

相关推荐

    Neo4j Desktop Setup 1.4.15.windows.zip

    - Neo4j Desktop的安装文件是`Neo4j Desktop Setup 1.4.15.exe`,这是一个可执行的Windows程序,双击后会引导用户完成安装。在安装过程中,用户可以选择安装路径、同意许可协议,并设置是否创建桌面快捷方式等选项...

    Neo4j Desktop Setup 1.3.11.exe

    Neo4j Desktop桌面版安装包

    Neo4j Desktop Setup 1.4.8 安装包

    Neo4j Desktop Setup 1.4.8 安装包

    Neo4j Desktop Setup 1.3.4.exe

    Neo4j Desktop Setup 1.3.4.exe

    Neo4j Desktop Setup 1.5.7 for windows(include key)

    Neo4j Desktop Setup 1.5.7 for windows(include key) 留底用

    Neo4j Desktop Setup 1.4.7.exe

    Neo4j Desktop ,适合图数据库的爱好者以及初学者

    Graph Database Applications and Concepts with Neo4j.pdf

    本文档《Graph Database Applications and Concepts with Neo4j.pdf》由Justin J. Miller撰写,并在2013年南方信息系统协会会议(SAIS)上发表。该文档探讨了图数据库(Graph Database, GDB)作为关系型数据库系统...

    Learning Neo4j 3.x, 2nd Edition-Packt Publishing(2017).epub

    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 ...

    Beginning.Neo4j.1484212

    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: ...

    neo4j桌面版

    neo4j桌面版neo4j桌面版neo4j桌面版neo4j桌面版neo4j桌面版neo4j桌面版

    neo4j社区版 neo4j社区版neo4j社区版

    3. ACID事务:Neo4j支持事务处理,确保数据的一致性和完整性,符合ACID(原子性、一致性、隔离性和持久性)原则。 4. 性能:由于其内置于内存的数据模型,Neo4j能够快速执行复杂的查询,尤其适合实时分析。 5. ...

    Neo4j Cookbook(PACKT,2015)

    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 api neo4j学习资料 neo4j教程 │ neo4j官方API(官方各种API的文档整理).7z │ neo4j数据迁移--初探(一).htm │ neo4j笔记.docx │ neo4j错误码状态码.html │ └─01.neo4j学习博客汇总 │ index.html └...

    neo4j-setup:设置Neo4j + vis应用

    【标题】"neo4j-setup:设置Neo4j + vis应用" 在本文中,我们将深入探讨如何设置Neo4j图数据库以及与之结合使用的vis应用。Neo4j是一款强大的图数据库管理系统,它以图形的形式存储和处理数据,特别适合处理具有复杂...

    图形据库Neo4j入门到精通(含Neo4j+D3.js完整实战项目)

    课程涉及Neo4j概念、原理、实战、综合完整项目(Neo4j+D3.js可视化)全方位深入讲解,深入讲解图数据库查询语言Cyther,可帮助学员快速掌握Cyther开发技能。深入讲解Neo4j Java API,并在Neo4j+D3.js完整Web项目中...

    Linux的neo4j安装包

    Linux上的Neo4j安装包是用于在开源操作系统环境中部署和运行图形数据库的软件包。Neo4j是一款强大的图数据库管理系统,特别适合处理高度关联的数据,广泛应用于社交网络、推荐系统、知识图谱等领域。以下是对Linux上...

    vue-neo4j:vue使用D3对neo4j进行可视化源码开发技术-其它

    Neo4j Vue 安装步骤 克隆或下载该库到本地 下载neo4j并安装到本地,启动neo4j服务 进入到该工程的根目录,输入命令:npm run update进行npm包的导入 使用命令:npm run dev启动该工程 默认端口是:8081 neo4j账号...

    Beginning Neo4j(Apress,2016)

    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-community-3.4.0-alpha04-windows

    3. **ACID事务**:Neo4j支持ACID(原子性、一致性、隔离性和持久性)事务,确保了数据的一致性和可靠性。这在处理多用户环境和并发操作时尤其重要。 4. **Gremlin支持**:3.4版本中, Neo4j开始支持Apache ...

Global site tag (gtag.js) - Google Analytics