note/smartedu国家智慧教育平台结构.md

23 lines
2.4 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.

# 国家智慧教育平台结构
1. 总的结构文件: `https://s-file-2.ykt.cbern.com.cn/zxx/ndrs/prepare_lesson/teachingmaterials/parts.json`
1. 这个文件会结下出来多个part_100.json part_101.json part.102.json
2. 再继续解析
2. 再继续解析到每一本书的part_100.json: 以高中数学A必修第一册为例
1. 书本id也可以称teachingmaterialId85c19ef2-23a4-43b6-94dd-8c7898639b5d
2. 拼接成资源文件url`https://s-file-2.ykt.cbern.com.cn/zxx/ndrs/prepare_lesson/teachingmaterials/85c19ef2-23a4-43b6-94dd-8c7898639b5d/resources/part_100.json`
3. 拼接成课本结构章节url`https://s-file-2.ykt.cbern.com.cn/zxx/ndrv2/national_lesson/trees/85c19ef2-23a4-43b6-94dd-8c7898639b5d.json`
3. 每一本书的part_100.json含有所有的资源索引。接下来继续解析
1.
## smartedu 下载json和创建目录
1. 目录结构:
1. 最上层根目录all_parts.json; 这个文件固定从这个文件里找tag_dimension_id学段zxxxd、学科zxxxk建立相应的目录找global_resource_id教科书id拼接教科书的urlpart_100.json和trees.json; 拼接方法https://s-file-1.ykt.cbern.com.cn/zxx/ndrs/national_lesson/teachingmaterials/{global_resource_id}/resources/part_100.json https://s-file-2.ykt.cbern.com.cn/zxx/ndrv2/national_lesson/trees/{global_resource_id}.json ; 建立教科书目录title在教科书目录title里存放拼接并下载的两个json
2. 第二层目录:学段,分为:小学 初中 高中
3. 第三层目录:学科,如:数学、英语、化学等;
4. 第四层目录教科书人教版第一册、苏教版第二册等文件part_100.json trees.json; all_classroom_links.json(需要自己组织);根据trees.json内容创建下面的目录只要第一层的title建立目录不需要后面的child_nodes建立目录
5. 第五层目录:以章为单位的,如:第三章 函数的概念与性质、第四章 指数函数与对数函数;文件details.json需要自己组织; 小节_detail.json; 小节_小小节_detail.json;
6. 第四层all_classroom_links.json如何构造 在part_100.json中查找chapter_ids;一般有2个-3个或许有更多根据chapter_ids,在trees.json中查找trees.json中id对应的title名字chapter_ids的第一个字段是“章”最后一个字段是最小单位的“小节”中间字段是中间的节我们最终要
2.