neo4j学习笔记 - 20190728

这篇博客介绍了Neo4j图形数据库的基础概念,包括节点、关系和属性,并通过实例展示了如何建立社会关系图。文章还涉及了Neo4j的标签、关系属性,以及使用Cypher进行查询。同时,博主分享了Neo4j浏览器的使用,包括编辑器、结果流和代码视图。此外,还提供了安装和操作Neo4j的资源链接,如.NET驱动、Python模块py2neo的安装以及pip和pip3的区别。
摘要由CSDN通过智能技术生成

1.

Graph Fundamentals

Basic concepts to get you going.

A graph database can store any kind of data using a few simple concepts:

Nodes - graph data records

Relationships - connect nodes

Properties - named data values

 

图形基础

让你前进的基本概念。

图形数据库可以使用几个简单的概念存储任何类型的数据:

节点-图形数据记录

关系-连接节点

属性-命名数据值

 

2.

A Graph Database

Neo4j stores data in a Graph, with records called Nodes.

The simplest graph has just a single node with some named values called Properties. Let's draw a social graph of our friends on the Neo4j team:

Start by drawing a circle for the node

Add the name Emil

Note that he is from Sweden

Nodes are the name for data records in a graph

Data is stored as Properties

Properties are simple name/value pairs

 

图形数据库

NEO4J将数据存储在一个图表中,其中的记录称为节点。

最简单的图只有一个节点,其中一些命名值称为属性。让我们画一张NEO4J团队中朋友的社交图:

从为节点绘制圆开始

添加名字emil

注意他是瑞典人

节点是图表中数据记录的名称

数据存储为属性

属性是简单的名称/值对

 

3.

Labels

Associate a set of nodes.

Nodes can be grouped together by applying a Label to each member. In our social graph, we'll label each node that represents a Person.

Apply the label "Person" to the node we created for Emil

Color "Person" nodes red

A node can have zero or more labels

Labels do not have any properties

 

标签

关联一组节点。

通过对每个成员应用标签,可以将节点组合在一起。在我们的社会关系图中,我们将标记每个代表一个人的节点。

将标签“person”应用于我们为emil创建的节点

将“人”节点涂成红色

节点可以有零个或多个标签

标签没有任何属性

 

4.

More Nodes

Schema-free, nodes can have a mix of common and unique properties.

Like any database, storing data in Neo4j can be as simple as adding more records. We'll add a few more nodes:

Emil has a klout score of 99

Johan, from Sweden, who is learning to surf

Ian, from England, who is an author

Rik, from Belgium, has a cat named Orval

Allison, from California, who surfs

Similar nodes can have different properties

Properties can be strings, numbers, or booleans

Neo4j can store billions of n

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
neo4j api neo4j学习资料 neo4j教程 │ neo4j官方API(官方各种API的文档整理).7z │ neo4j数据迁移--初探(一).htm │ neo4j笔记.docx │ neo4j错误码状态码.html │ └─01.neo4j学习博客汇总 │ index.html └─neo4j_cypher │ Cypher(神奇的WITH).html │ cypher_index.html │ Cypher查询语言--Neo4j 综合(四) - divenswu - 博客园.html │ Cypher查询语言--Neo4j中的SQL - 爱上包子 - 博客园.html │ DETACH DELETE n 删除node n ,并删除所有与n相关的关系.html │ Neo4j - NOT IN query.html │ Neo4j CQL - (11)- REMOVE删除 DELETE.html │ Neo4j Cypher 复杂查询详解在之With - 何源浩的博客 - CSDN博客.html │ neo4j 中使用sparql查询.html │ Neo4j 中文社区,致力于 Neo4j 的技术研究。.html │ Neo4j 使用cypher语言进行查询 - MHL - 博客园.html │ Neo4j 第一篇:在Windows环境中安装Neo4j - 悦光阴 - 博客园.html │ Neo4j 第三篇:Cypher查询入门 - 悦光阴 - 博客园.html │ Neo4j 第二篇:图形数据库 - 悦光阴 - 博客园.html │ Neo4j 第五篇:批量更新数据 - 悦光阴 - 博客园.html │ Neo4j 第四篇:使用C更新和查询Neo4j - 悦光阴 - 博客园.html │ Neo4J(Cypher语句)初识.html │ Neo4J(Cypher语句)学习 - 赵晓雷的专栏 - CSDN博客.html │ Neo4j_事务&深度遍历.html │ neo4j中的分组查询.html │ Neo4j之Cypher学习总结.html │ NEO4J亿级数据导入导出以及数据更新 - 耶和华靠近伤心的人,拯救灵性痛悔的人 - CS.html │ Neo4j入门点滴(一):Cypher.html │ Neo4j入门点滴(三):用Cypher完善图.html │ Neo4j入门点滴(二):模式与模式匹配.html │ Neo4j入门点滴(五):Windows Shell for Cypher.html │ Neo4j入门点滴(四):Cypher查询优化.html │ Neo4J几种数据导入方式的效率对比 - 何源浩的博客 - CSDN博客.html │ Neo4j模糊查询及分页查询 - c1052981766的专栏 - CSDN博客.html │ neo4j笔记 - Neo4j 中文社区.html │ Neo4j语句 - zhuweiba_321的博客 - CSDN博客.html │ Neo4j语句 - 阿里云.html │ 【程裕强的专栏】大数据学习笔记(1.01^365=37.78,0.99^365=0.025.html │ 五岳之巅-Neo4j入门点滴-博文目录.html │ 关于Neo4j和Cypher批量更新和批量插入优化的5个建议 - 逆水行舟 - CSDN博.html │ 图数据库-Neo4j介绍与Cypher入门.html │ 图数据库之Cypher语言 - 活的洒脱怪我咯的专栏 - CSDN博客.html │ 图数据库之neo4j-jdbc的使用 - 活的洒脱怪我咯的专栏 - CSDN博客.html │ 数据分页处理系列之三:Neo4j图数据分页处理.html │ 暖暖动听.html │ 飘涯 - 简书.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值