Loading [MathJax]/jax/output/CommonHTML/config.js
前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >【Nebula Graph】:数据模型

【Nebula Graph】:数据模型

作者头像
WEBJ2EE
发布于 2021-10-27 02:13:27
发布于 2021-10-27 02:13:27
62700
代码可运行
举报
文章被收录于专栏:WebJ2EEWebJ2EE
运行总次数:0
代码可运行
代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
目录
1. 数据模型

1. 数据模型

Nebula Graph data model uses six data structures to store data. They are:

  1. graph spaces
  2. vertices
  3. edges
  4. tags
  5. edge types
  6. properties

  • Graph spaces: Graph spaces are used to isolate data from different teams or programs. Data stored in different graph spaces are securely isolated. Storage replications, privileges, and partitions can be assigned. (图空间(Graph space)类似 Oracle 中的 User、MySql 中的 Database,图空间之间的数据相互隔离)
  • Vertices: Vertices are used to store entities.(顶点,用于储存实体且由 VID 在图空间中唯一标识)
    • In Nebula Graph, vertices are identified with vertex identifiers (i.e. VID). The VID must be unique in the same graph space. VID should be int64, or fixed_string(N).
    • A vertex must have at least one tag or multiple tags.
  • Edges: Edges are used to connect vertices. An edge is a connection or behavior between two vertices. (边,用于连接两个顶点)
    • There can be multiple edges between two vertices. (两个顶点之间可以有多条边)
    • Edges are directed. -> identifies the directions of edges. Edges can be traversed in either direction.(边是有方向的)
    • An edge is identified uniquely with a source vertex, an edge type, a rank value, and a destination vertex. Edges have no EID.
    • An edge must have one and only one edge type. (边,有且只能有一种边类型)
    • The rank value is an immutable user-assigned 64-bit signed integer. It identifies the edges with the same edge type between two vertices. Edges are sorted by their rank values. The edge with the greatest rank value is listed first. The default rank value is zero. (等级值在边排序的时候有用,越大越靠前)
  • Tags: Tags are used to categorize vertices. Vertices that have the same tag share the same definition of properties. (标签,用于给顶点分类)
  • Edge types: Edge types are used to categorize edges. Edges that have the same edge type share the same definition of properties. (边属性,用于给边分类)
  • Properties: Properties are key-value pairs. Both vertices and edges are containers for properties.(属性,键值对,顶点和边上都可以有属性)

参考:

Data modeling: https://docs.nebula-graph.io/2.5.1/1.introduction/2.data-model/

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2021-10-20,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 WebJ2EE 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
Nebula Graph 系列(1) —— 初识 Nebula
Nebula Graph 是一个高性能、可线性扩展、开源的分布式图数据库。Nebula Graph 采用 shared-nothing 分布式架构,企业可针对性对业务进行扩缩容。
求和小熊猫
2022/05/07
1.8K0
Nebula Graph 系列(1) —— 初识 Nebula
【Nebula Graph】:数据导入工具——Nebula Importer
Nebula Importer (Importer) is a standalone import tool for CSV files with Nebula Graph. Importer can read the local CSV file and then import the data into the Nebula Graph database. (Nebula Importer 是一个支持把 CSV 文件导入 Nebula 图数据库的工具)
WEBJ2EE
2021/10/27
2K0
使用 MyBatis 操作 Nebula Graph 的实践
我最近注意到很多同学对于 ORM 框架的需求比较迫切,而且有热心的同学已经捐赠了自己开发的项目,Nebula 社区也在 working on it。下面主要介绍一下我们在使用 MyBatis 操作 Nebula Graph 方面的一些经验,希望能够帮助到大家。
NebulaGraph
2022/07/04
6300
使用 MyBatis 操作 Nebula Graph 的实践
GraphX编程指南-官方文档-整理
GraphX 是新的(alpha)的图形和图像并行计算的Spark API。从整理上看,GraphX 通过引入 弹性分布式属性图(Resilient Distributed Property Graph)继承了Spark RDD:一个将有效信息放在顶点和边的有向多重图。为了支持图形计算,GraphX 公开了一组基本的运算(例如,subgraph,joinVertices和mapReduceTriplets),以及在一个优化后的 PregelAPI的变形。此外,GraphX 包括越来越多的图算法和 builder 构造器,以简化图形分析任务。
ZONGLYN
2019/08/08
4.2K0
GraphX编程指南-官方文档-整理
NYOJ129 决策树 【并检查集合】
时间限制: 1000 ms | 内存限制: 65535 KB
全栈程序员站长
2022/07/11
1630
关系型数据库查询语言 SQL 和图数据库查询语言 nGQL 对比
摘要:这篇文章将介绍图数据库 Nebula Graph 的查询语言 nGQL 和 SQL 的区别。
NebulaGraph
2020/07/23
2.4K0
关系型数据库查询语言 SQL 和图数据库查询语言 nGQL 对比
Code Forces Bear and Forgotten Tree 3 639B
B. Bear and Forgotten Tree 3 time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output A tree is a connected undirected graph consisting of n vertices and n  -  1 edges. Vertices are numbered 1 thro
ShenduCC
2018/04/26
5160
hdu---(1325)Is It A Tree?(并查集)
Is It A Tree? Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) To
Gxjun
2018/03/26
8650
hdu---(1325)Is It A Tree?(并查集)
[013] 7种常见数据结构的图画解读
Data structures are fundamental constructs that are used to build programs. Each data structure has its own way of organizing data, which may work efficiently in particular use cases. With their own particular structures, data structures offer alternative solutions to data organization, management, storage, access, and modification tasks.
Sam Gor
2021/02/03
4690
[013] 7种常见数据结构的图画解读
Nebula Graph 源码解读系列|客户端的通信秘密——fbthrift
Nebula Clients 给用户提供了多种编程语言的 API 用于和 Nebula Graph 交互,并且对服务端返回的数据结构进行了重新封装,便于用户使用。
NebulaGraph
2022/02/23
7980
图数据库 Nebula Graph 的数据模型和系统架构设计
Nebula Graph 采用易理解的有向属性图来建模,也就是说,在逻辑上,图由两种图元素构成:顶点和边。
NebulaGraph
2019/07/24
3.4K0
图数据库 Nebula Graph 的数据模型和系统架构设计
用 NetworkX + Gephi + Nebula Graph 分析<权力的游戏>人物关系(下篇)
在上一篇1中,我们通过 NetworkX 和 Gephi 展示了<权力的游戏>中的人物关系。在本篇中,我们将展示如何通过 NetworkX 访问图数据库 Nebula Graph。
NebulaGraph
2020/09/02
2.6K0
用 NetworkX + Gephi + Nebula Graph 分析<权力的游戏>人物关系(下篇)
大数据技术之_19_Spark学习_05_Spark GraphX 应用解析 + Spark GraphX 概述、解析 + 计算模式 + Pregel API + 图算法参考代码 + PageRank
  Spark GraphX 是一个分布式图处理框架,它是基于 Spark 平台提供对图计算和图挖掘简洁易用的而丰富的接口,极大的方便了对分布式图处理的需求。那么什么是图,都计算些什么?众所周知社交网络中人与人之间有很多关系链,例如 Twitter、Facebook、微博和微信等,数据中出现网状结构关系都需要图计算。   GraphX 是一个新的 Spark API,它用于图和分布式图(graph-parallel)的计算。GraphX 通过引入弹性分布式属性图(Resilient Distributed Property Graph): 顶点和边均有属性的有向多重图,来扩展Spark RDD。为了支持图计算,GraphX 开发了一组基本的功能操作以及一个优化过的 Pregel API。另外,GraphX 也包含了一个快速增长的图算法和图 builders 的集合,用以简化图分析任务。   从社交网络到语言建模,不断增长的数据规模以及图形数据的重要性已经推动了许多新的分布式图系统的发展。通过限制计算类型以及引入新的技术来切分和分配图,这些系统可以高效地执行复杂的图形算法,比一般的分布式数据计算(data-parallel,如 spark、MapReduce)快很多。
黑泽君
2019/05/14
2K0
大数据技术之_19_Spark学习_05_Spark GraphX 应用解析 + Spark GraphX 概述、解析 + 计算模式 + Pregel API + 图算法参考代码 + PageRank
使用图数据库 Nebula Graph 数据导入快速体验知识图谱 OwnThink
最近 @Yener 开源了史上最大规模的中文知识图谱——OwnThink(链接:https://github.com/ownthink/KnowledgeGraphData ),数据量为 1.4 亿条。
NebulaGraph
2019/11/26
2.8K0
使用图数据库 Nebula Graph 数据导入快速体验知识图谱 OwnThink
04-SpringBoot集成Nebula Graph
在这里给大家推荐一种方式, 每引入一种新的技术,建议新建一个模块, 来适配这种技术,对外提供接口,在调用的地方应用就可以, 不用搞的到处都是, 防止如果后续替换这种技术, 还要到处修改, 这样的话, 只需要增加一个模块, 对外提供一样的接口, 并替换依赖就可以
彼岸舞
2022/08/24
9680
04-SpringBoot集成Nebula Graph
文心一言 VS 讯飞星火 VS chatgpt (340)-- 算法导论23.1 9题
由于这个证明主要是理论性的,不涉及具体的图数据结构操作,但我们可以给出一个示意性的 Go 代码框架,用于表示图、生成树等概念(注意,这不是一个完整的实现,而是概念性的):
福大大架构师每日一题
2024/09/06
1050
文心一言 VS 讯飞星火 VS chatgpt (340)-- 算法导论23.1 9题
如何实现十亿级离线 CSV 导入 Nebula Graph
这里不做赘述,仅截图展示,更多详情可参考:https://docs.nebula-graph.com.cn/nebula-spark-connector/。
NebulaGraph
2022/06/13
9820
如何实现十亿级离线 CSV 导入 Nebula Graph
Nebula Exchange 工具 Hive 数据导入的踩坑之旅
摘要:本文由社区用户 xrfinbj 贡献,主要介绍 Exchange 工具从 Hive 数仓导入数据到 Nebula Graph 的流程及相关的注意事项。
NebulaGraph
2021/01/11
9650
Nebula Exchange 工具 Hive 数据导入的踩坑之旅
连接 AI,NebulaGraph Python ORM 项目 Carina 简化 Web 开发
在做业务开发时,NebulaGraph Python ORM 项目作者:Sword Elucidator(下文简称:Hao)发现图数据库在某些场景下有比较不错的应用实践,而 NebulaGraph 是他觉得不错、较为先进的一款图数据库产品。在 Hao 的开发过程中,他发现:虽然图数据库被应用在多个业务场景中,但对于像是 App 开发之类的 ISO/OSI 高层实践的话,nebula-python 之类的客户端就略显笨重。
NebulaGraph
2023/03/30
5690
连接 AI,NebulaGraph Python ORM 项目 Carina 简化 Web 开发
文心一言 VS 讯飞星火 VS chatgpt (281)-- 算法导论20.4 2题
二、证明:CONNECTED-COMPONENTS 处理完所有的边后,两个顶点在相同的连通分量中当且仅当它们在同一个集合中。如果要写代码,请用go语言。
福大大架构师每日一题
2024/08/16
1240
文心一言 VS 讯飞星火 VS chatgpt (281)-- 算法导论20.4 2题
推荐阅读
相关推荐
Nebula Graph 系列(1) —— 初识 Nebula
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
本文部分代码块支持一键运行,欢迎体验
本文部分代码块支持一键运行,欢迎体验