Files
myWiki/concepts/relational-graph.md

36 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Relational Graph"
created: 2026-05-15
updated: 2026-05-15
type: concept
tags: [database, graph, relational-data]
sources: [raw/papers/zeng-neurida-2025.md]
---
# Relational Graph
**关系图**是将关系数据库中的元组表示为图的数据结构,是 DIME 中 [[dynamic-relation-modeling|动态关系建模]] 的基础。
## 构造方式
在 NeurIDA 中,关系图基于 [[data-slice|Data Slice]] 构建:
- **节点**:每个元组为一个节点,按源表标注节点类型
- **边**:通过主键-外键PK-FK约束形成连接
## 与通用图神经网络的差异
- 关系图是**异构图**(多种节点类型,对应不同表)
- 边有明确的**关系语义**(由 schema 定义,不是学习得到的)
- 无需图构建的启发式方法(如 kNN关系由数据库 schema 直接提供
## 在 DIME 中的作用
1. 定义消息传递的邻域结构
2. 为元组嵌入编码跨表依赖关系
3. 使模型能利用数据库中已编码的结构化知识
## 来源
- [[zeng-neurida-2025|NeurIDA 论文]]