当前查询到3条专利与查询词 "Zhou Gangping"相关,搜索用时0.2500882秒!排序方式:
发明专利:1实用新型: 2外观设计: 0
1 条,当前第 1-1 条 返回搜索页
申请号:201911284276.6 公开号:CN111125265A 主分类号:G06F16/28
摘要:【中文】本发明涉及数据库技术领域,提供了一种基于关系型数据库数据生成图数据的方法和装置。方法包括加载关系型数据库到内存中,作为原始数据;确定原始数据的图数据目标类型;其中,所述图数据包括节点、关系、节点属性和关系属性;构建图数据目标类型的数据结构,并将原始数据填充到所述图数据目标类型的数据结构中。本发明提供的技术为使用链表将关系连接起来,也就是链表中的节点是属于该顶点的关系,并且在每一个关系中都保存了对前向关系和后向关系的链接,使得关系的查询更加方便。另外,本发明中的属性和关系都采用ID标识,使得相同的属性可以采用ID引用的方式,减少重复创建相同的值,缩减空间利用。 【EN】The invention relates to the technical field of databases, and provides a method and a device for generating graph data based on relational database data. The method comprises the steps of loading a relational database into a memory as original data; determining a graph data target type of the original data; wherein the graph data comprises nodes, relationships, node attributes and relationship attributes; and constructing a data structure of a graph data object type, and filling the original data into the data structure of the graph data object type. The technology provided by the invention is that the linked list is used for connecting the relations, namely the nodes in the linked list belong to the relation of the vertex, and the links of the forward relation and the backward relation are stored in each relation, so that the inquiry of the relation is more convenient. In addition, the attributes and the relations in the invention are identified by the ID, so that the same attribute can be referenced by the ID, repeated creation of the same value is reduced, and space utilization is reduced.
详细信息 下载全文

1 条,当前第 1-1 条 返回搜索页