Initial travel knowledge graph release
This commit is contained in:
72
docs/kg-redesign/new2_clone_status.md
Normal file
72
docs/kg-redesign/new2_clone_status.md
Normal file
@@ -0,0 +1,72 @@
|
||||
# new2 完整复刻状态
|
||||
|
||||
## 文件复刻
|
||||
|
||||
`/Users/xuexue/new2` 已从 `/Users/xuexue/new` 完整补齐:
|
||||
|
||||
- `.env`
|
||||
- `admin-web/node_modules`
|
||||
- `data`
|
||||
- 后端、前端、脚本、静态编译产物
|
||||
|
||||
同时保留 new2 新增的 KG 重构材料:
|
||||
|
||||
- `docs/kg-redesign/*`
|
||||
- `docs/reports/*`
|
||||
- `app/schemas/kg_extraction_v1.schema.json`
|
||||
- `app/kg_core/spatial.py`
|
||||
- `scripts/sql/001_kg_core_spatial_schema.sql`
|
||||
|
||||
## 独立运行配置
|
||||
|
||||
new2 的 `.env` 已调整为:
|
||||
|
||||
```text
|
||||
DATABASE_URL=...localhost:5433...
|
||||
DB_SCHEMA=kg_admin_new2
|
||||
FALKORDB_PORT=6380
|
||||
FALKORDB_GRAPH=guiyang_new2
|
||||
DEFAULT_TENANT=CityGraph-new2
|
||||
DEFAULT_PROJECT=CityGraph-new2
|
||||
API_PORT=8102
|
||||
```
|
||||
|
||||
因此 new2 启动后默认访问:
|
||||
|
||||
```text
|
||||
http://localhost:8102/admin
|
||||
```
|
||||
|
||||
## 数据层复刻
|
||||
|
||||
PostgreSQL 独立容器:
|
||||
|
||||
```text
|
||||
zn-kg-postgres:5432/kg_admin_new2
|
||||
-> zn-kg-new2-postgres:5433/kg_admin_new2
|
||||
```
|
||||
|
||||
已复制旧 schema 的表结构和数据。
|
||||
|
||||
FalkorDB 独立容器:
|
||||
|
||||
```text
|
||||
zn-kg-falkordb:6379/guiyang_new2
|
||||
-> zn-kg-new2-falkordb:6380/guiyang_new2
|
||||
```
|
||||
|
||||
已复制旧图谱节点与关系。
|
||||
|
||||
## 说明
|
||||
|
||||
当前 new2 已经是独立应用端口 + 独立 PostgreSQL 容器 + 独立 FalkorDB 容器。旧项目仍使用:
|
||||
|
||||
```text
|
||||
8101 / zn-kg-postgres:5432 / zn-kg-falkordb:6379
|
||||
```
|
||||
|
||||
new2 使用:
|
||||
|
||||
```text
|
||||
8102 / zn-kg-new2-postgres:5433 / zn-kg-new2-falkordb:6380
|
||||
```
|
||||
Reference in New Issue
Block a user