Files
K12Study/docs/1/postgres - k12study - ai.graphml
2026-04-16 11:30:30 +08:00

178 lines
10 KiB
XML
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.

<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:java="http://www.yworks.com/xml/yfiles-common/1.0/java" xmlns:sys="http://www.yworks.com/xml/yfiles-common/markup/primitives/2.0" xmlns:x="http://www.yworks.com/xml/yfiles-common/markup/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd">
<key for="node" id="nodegraph" yfiles.type="nodegraphics"/>
<key for="edge" id="edgegraph" yfiles.type="edgegraphics"/>
<graph edgedefault="directed" id="G">
<node id="entity0">
<data key="nodegraph">
<y:GenericNode configuration="com.yworks.entityRelationship.big_entity">
<y:Geometry height="370" width="421.48" x="440" y="40"/>
<y:Fill color="#FFFFE1" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" configuration="com.yworks.entityRelationship.label.name" fontFamily="Courier" fontSize="12" fontStyle="plain" hasLineColor="false" modelName="internal" modelPosition="t" backgroundColor="#FFFFE1" textColor="#FFFFFF" visible="true" horizontalTextPosition="center" iconTextGap="4" height="22" width="357" x="0" y="4">tb_ai_graph_entity</y:NodeLabel>
<y:NodeLabel alignment="left" autoSizePolicy="content" configuration="com.yworks.entityRelationship.label.attributes" fontFamily="Courier" fontSize="12" fontStyle="plain" hasLineColor="false" modelName="custom" modelPosition="t" backgroundColor="#FFFFFF" textColor="#000000" visible="true" horizontalTextPosition="center" iconTextGap="4" height="304" width="357" x="2" y="31.66796875">entity_id: varchar(64) NOT NULL - 实体ID
file_id: varchar(64) - 来源知识文件ID
entity_type: varchar(64) NOT NULL - 实体类型
entity_name: varchar(255) NOT NULL - 实体名称
normalized_name: varchar(255) - 标准化实体名称
graph_vertex_id: varchar(128) - 图数据库顶点ID
entity_status: varchar(32) NOT NULL - 实体状态
sync_status: varchar(32) NOT NULL - 同步状态
properties_json: jsonb NOT NULL - 实体属性JSON
adcode: varchar(12) - 行政区划编码
tenant_id: varchar(64) - 租户ID
tenant_path: varchar(255) - 租户路径
dept_id: varchar(64) - 部门ID
dept_path: varchar(255) - 部门路径
created_at: timestamp NOT NULL - 创建时间
updated_at: timestamp NOT NULL - 更新时间 <y:LabelModel>
<y:ErdAttributesNodeLabelModel/>
</y:LabelModel>
<y:ModelParameter>
<y:ErdAttributesNodeLabelModelParameter/>
</y:ModelParameter>
</y:NodeLabel>
</y:GenericNode>
</data>
</node>
<node id="entity1">
<data key="nodegraph">
<y:GenericNode configuration="com.yworks.entityRelationship.big_entity">
<y:Geometry height="390" width="411.24" x="40" y="40"/>
<y:Fill color="#FFFFE1" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" configuration="com.yworks.entityRelationship.label.name" fontFamily="Courier" fontSize="12" fontStyle="plain" hasLineColor="false" modelName="internal" modelPosition="t" backgroundColor="#FFFFE1" textColor="#FFFFFF" visible="true" horizontalTextPosition="center" iconTextGap="4" height="22" width="341" x="0" y="4">tb_ai_graph_relation</y:NodeLabel>
<y:NodeLabel alignment="left" autoSizePolicy="content" configuration="com.yworks.entityRelationship.label.attributes" fontFamily="Courier" fontSize="12" fontStyle="plain" hasLineColor="false" modelName="custom" modelPosition="t" backgroundColor="#FFFFFF" textColor="#000000" visible="true" horizontalTextPosition="center" iconTextGap="4" height="324" width="341" x="2" y="31.66796875">relation_id: varchar(64) NOT NULL - 关系ID
src_entity_id: varchar(64) NOT NULL - 源实体ID
dst_entity_id: varchar(64) NOT NULL - 目标实体ID
relation_type: varchar(64) NOT NULL - 关系类型
relation_name: varchar(128) - 关系名称
graph_edge_id: varchar(128) - 图数据库边ID
relation_weight: numeric(6, 4) NOT NULL - 关系权重
relation_status: varchar(32) NOT NULL - 关系状态
sync_status: varchar(32) NOT NULL - 同步状态
properties_json: jsonb NOT NULL - 关系属性JSON
adcode: varchar(12) - 行政区划编码
tenant_id: varchar(64) - 租户ID
tenant_path: varchar(255) - 租户路径
dept_id: varchar(64) - 部门ID
dept_path: varchar(255) - 部门路径
created_at: timestamp NOT NULL - 创建时间
updated_at: timestamp NOT NULL - 更新时间 <y:LabelModel>
<y:ErdAttributesNodeLabelModel/>
</y:LabelModel>
<y:ModelParameter>
<y:ErdAttributesNodeLabelModelParameter/>
</y:ModelParameter>
</y:NodeLabel>
</y:GenericNode>
</data>
</node>
<node id="entity2">
<data key="nodegraph">
<y:GenericNode configuration="com.yworks.entityRelationship.big_entity">
<y:Geometry height="430" width="545.28" x="940" y="220"/>
<y:Fill color="#FFFFE1" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" configuration="com.yworks.entityRelationship.label.name" fontFamily="Courier" fontSize="12" fontStyle="plain" hasLineColor="false" modelName="internal" modelPosition="t" backgroundColor="#FFFFE1" textColor="#FFFFFF" visible="true" horizontalTextPosition="center" iconTextGap="4" height="22" width="452" x="0" y="4">tb_ai_knowledge_file</y:NodeLabel>
<y:NodeLabel alignment="left" autoSizePolicy="content" configuration="com.yworks.entityRelationship.label.attributes" fontFamily="Courier" fontSize="12" fontStyle="plain" hasLineColor="false" modelName="custom" modelPosition="t" backgroundColor="#FFFFFF" textColor="#000000" visible="true" horizontalTextPosition="center" iconTextGap="4" height="364" width="452" x="2" y="31.66796875">file_id: varchar(64) NOT NULL - 知识文件ID
file_code: varchar(64) NOT NULL - 知识文件编码
file_name: varchar(255) NOT NULL - 知识文件名称
source_file_id: varchar(64) - 来源文件IDupms.tb_sys_file.file_id
file_type: varchar(32) NOT NULL - 文件类型
file_status: varchar(32) NOT NULL - 文件状态
graph_sync_status: varchar(32) NOT NULL - 图谱同步状态
vector_sync_status: varchar(32) NOT NULL - 向量库同步状态
graph_doc_ref: varchar(128) - 图谱侧文档/对象引用
vector_doc_ref: varchar(128) - 向量库侧文档/对象引用
content_checksum: varchar(128) - 内容校验值
metadata_json: jsonb NOT NULL - 文件元数据JSON
adcode: varchar(12) - 行政区划编码
tenant_id: varchar(64) - 租户ID
tenant_path: varchar(255) - 租户路径
dept_id: varchar(64) - 部门ID
dept_path: varchar(255) - 部门路径
created_at: timestamp NOT NULL - 创建时间
updated_at: timestamp NOT NULL - 更新时间 <y:LabelModel>
<y:ErdAttributesNodeLabelModel/>
</y:LabelModel>
<y:ModelParameter>
<y:ErdAttributesNodeLabelModelParameter/>
</y:ModelParameter>
</y:NodeLabel>
</y:GenericNode>
</data>
</node>
<node id="entity3">
<data key="nodegraph">
<y:GenericNode configuration="com.yworks.entityRelationship.big_entity">
<y:Geometry height="350" width="520.84" x="440" y="480"/>
<y:Fill color="#FFFFE1" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" configuration="com.yworks.entityRelationship.label.name" fontFamily="Courier" fontSize="12" fontStyle="plain" hasLineColor="false" modelName="internal" modelPosition="t" backgroundColor="#FFFFE1" textColor="#FFFFFF" visible="true" horizontalTextPosition="center" iconTextGap="4" height="22" width="429" x="0" y="4">tb_ai_knowledge_sync_task</y:NodeLabel>
<y:NodeLabel alignment="left" autoSizePolicy="content" configuration="com.yworks.entityRelationship.label.attributes" fontFamily="Courier" fontSize="12" fontStyle="plain" hasLineColor="false" modelName="custom" modelPosition="t" backgroundColor="#FFFFFF" textColor="#000000" visible="true" horizontalTextPosition="center" iconTextGap="4" height="284" width="429" x="2" y="31.66796875">task_id: varchar(64) NOT NULL - 同步任务ID
file_id: varchar(64) NOT NULL - 知识文件ID
target_store: varchar(16) NOT NULL - 目标存储GRAPH/VECTOR
task_type: varchar(16) NOT NULL - 任务类型UPSERT/DELETE/REBUILD
task_status: varchar(32) NOT NULL - 任务状态
retry_count: int4 NOT NULL - 重试次数
error_message: text - 错误信息
payload_json: jsonb NOT NULL - 任务载荷JSON
adcode: varchar(12) - 行政区划编码
tenant_id: varchar(64) - 租户ID
tenant_path: varchar(255) - 租户路径
dept_id: varchar(64) - 部门ID
dept_path: varchar(255) - 部门路径
created_at: timestamp NOT NULL - 创建时间
updated_at: timestamp NOT NULL - 更新时间 <y:LabelModel>
<y:ErdAttributesNodeLabelModel/>
</y:LabelModel>
<y:ModelParameter>
<y:ErdAttributesNodeLabelModelParameter/>
</y:ModelParameter>
</y:NodeLabel>
</y:GenericNode>
</data>
</node>
<edge id="edge0-0" source="entity0" target="entity2">
<data key="edgegraph">
<y:PolyLineEdge>
<y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
<y:LineStyle color="#000000" type="dashed" width="1.0"/>
<y:Arrows source="white_diamond" target="circle"/>
<y:BendStyle smoothed="false"/>
</y:PolyLineEdge>
</data>
</edge>
<edge id="edge1-0" source="entity1" target="entity0">
<data key="edgegraph">
<y:PolyLineEdge>
<y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
<y:LineStyle color="#000000" type="dashed" width="1.0"/>
<y:Arrows source="white_diamond" target="circle"/>
<y:BendStyle smoothed="false"/>
</y:PolyLineEdge>
</data>
</edge>
<edge id="edge1-1" source="entity1" target="entity0">
<data key="edgegraph">
<y:PolyLineEdge>
<y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
<y:LineStyle color="#000000" type="dashed" width="1.0"/>
<y:Arrows source="white_diamond" target="circle"/>
<y:BendStyle smoothed="false"/>
</y:PolyLineEdge>
</data>
</edge>
<edge id="edge3-0" source="entity3" target="entity2">
<data key="edgegraph">
<y:PolyLineEdge>
<y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/>
<y:LineStyle color="#000000" type="dashed" width="1.0"/>
<y:Arrows source="white_diamond" target="circle"/>
<y:BendStyle smoothed="false"/>
</y:PolyLineEdge>
</data>
</edge>
</graph>
</graphml>