init: edu-content 内容库骨架(L1-L4 四层数据模型 + B类迁移 + lint/CI 工具)
这个提交包含在:
41
schemas/vocab-1.1.schema.json
普通文件
41
schemas/vocab-1.1.schema.json
普通文件
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "vocab-1.1 word entry",
|
||||
"description": "词库条目。在原有 vocab 记录上新增 source.source_id(必填)血缘字段;保留 licence(英式)记录级标注。",
|
||||
"type": "object",
|
||||
"required": ["id", "level", "headword", "pos", "origin", "source", "gloss"],
|
||||
"properties": {
|
||||
"id": { "type": "string" },
|
||||
"level": { "type": "string", "enum": ["A2", "B1"] },
|
||||
"headword": { "type": "string" },
|
||||
"pos": { "type": "array", "items": { "type": "string" } },
|
||||
"pos_notes": { "type": ["string", "null"] },
|
||||
"examples": { "type": ["array", "null"], "items": { "type": "object" } },
|
||||
"phrases": { "type": ["array", "null"] },
|
||||
"topics": { "type": ["array", "null"] },
|
||||
"origin": { "type": "string" },
|
||||
"source": {
|
||||
"type": "object",
|
||||
"required": ["source_id"],
|
||||
"properties": {
|
||||
"source_id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
||||
"source_item_id": { "type": ["string", "null"] },
|
||||
"file": { "type": ["string", "null"] },
|
||||
"url": { "type": ["string", "null"] },
|
||||
"publisher": { "type": ["string", "null"] },
|
||||
"licence": { "type": "string", "enum": ["official-free", "cc-by", "cc-by-sa", "cc-nc-education", "restricted", "internal-only", "llm-generated", "unknown"] }
|
||||
}
|
||||
},
|
||||
"gloss": {
|
||||
"type": "object",
|
||||
"required": ["zh", "source", "licence"],
|
||||
"properties": {
|
||||
"zh": { "type": "string" },
|
||||
"phonetic": { "type": ["string", "null"] },
|
||||
"phonetic_source": { "type": ["string", "null"] },
|
||||
"source": { "type": "string" },
|
||||
"licence": { "type": "string", "enum": ["official-free", "cc-by", "cc-by-sa", "cc-nc-education", "restricted", "internal-only", "llm-generated", "unknown"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户