Loading...
Loading...
Compare original and translation side by side
obsidian-data-importer/
├── core/ → Processing engines (5 phases + 4 modules)
├── knowledge/ → Reference documentation (syntax, types, errors)
├── templates/ → Pattern library (8 templates + partials)
└── examples/ → Complete demonstrations (12 workflows)obsidian-data-importer/
├── core/ → 处理引擎(5个阶段 + 4个模块)
├── knowledge/ → 参考文档(语法、类型、错误)
├── templates/ → 模板库(8个模板 + 片段)
└── examples/ → 完整演示(12个工作流)[Data Input]
↓
[DataParser] ──→ [FieldAnalyzer] ──→ [TemplateGenerator] ──→ [Validator]
↓ ↓ ↓ ↓
Parsed Field Inventory Template String Validation
Structure Report
↓
[InstructionComposer]
↓
Complete Package[Data Input]
↓
[DataParser] ──→ [FieldAnalyzer] ──→ [TemplateGenerator] ──→ [Validator]
↓ ↓ ↓ ↓
解析后结构 字段清单 模板字符串 验证报告
↓
[InstructionComposer]
↓
完整交付包| Phase | Purpose | Documentation | Output |
|---|---|---|---|
| 1. Ingestion | Parse & analyze data structure | Phase 1 | Field inventory |
| 2. Strategy | Map fields & select pattern | Phase 2 | Mapping decisions |
| 3. Construction | Generate Handlebars template | Phase 3 | Template string |
| 4. Validation | Verify syntax & preview output | Phase 4 | Validation report |
| 5. Delivery | Package with instructions | Phase 5 | Complete deliverable |
CSV/JSON → Parse → Analyze → Map → Generate → Validate → Deliver| 阶段 | 目标 | 文档 | 输出 |
|---|---|---|---|
| 1. 数据摄入 | 解析并分析数据结构 | Phase 1 | 字段清单 |
| 2. 策略制定 | 映射字段并选择模板模式 | Phase 2 | 映射决策 |
| 3. 模板构建 | 生成Handlebars模板 | Phase 3 | 模板字符串 |
| 4. 验证 | 验证语法并预览输出 | Phase 4 | 验证报告 |
| 5. 交付 | 打包模板与使用说明 | Phase 5 | 完整交付物 |
CSV/JSON → 解析 → 分析 → 映射 → 生成 → 验证 → 交付| Module | Responsibility | Documentation | Key Functions |
|---|---|---|---|
| DataParser | Input format handling | data-parser.md | parseCSV(), parseJSON() |
| FieldAnalyzer | Type inference & analysis | field-analyzer.md | inferType(), detectIssues() |
| TemplateGenerator | Handlebars construction | template-generator.md | buildTemplate(), escapeYAML() |
| Validator | Syntax & correctness checking | validator.md | validateYAML(), testRender() |
| 模块 | 职责 | 文档 | 核心功能 |
|---|---|---|---|
| DataParser | 处理输入格式 | data-parser.md | parseCSV(), parseJSON() |
| FieldAnalyzer | 类型推断与分析 | field-analyzer.md | inferType(), detectIssues() |
| TemplateGenerator | 构建Handlebars模板 | template-generator.md | buildTemplate(), escapeYAML() |
| Validator | 语法与正确性检查 | validator.md | validateYAML(), testRender() |
| Topic | Content | Documentation |
|---|---|---|
| YAML Safety | Character escaping, quoting strategies | yaml-safety.md |
| Handlebars Syntax | Variables, conditionals, iteration | handlebars-syntax.md |
| Type Mapping | Detection algorithms, strategies | type-mapping.md |
| Error Resolution | Common problems & solutions | error-resolution.md |
| Best Practices | Optimization guidelines | best-practices.md |
| 主题 | 内容 | 文档 |
|---|---|---|
| YAML安全 | 字符转义、引用策略 | yaml-safety.md |
| Handlebars语法 | 变量、条件语句、迭代 | handlebars-syntax.md |
| 类型映射 | 检测算法、策略 | type-mapping.md |
| 错误解决 | 常见问题与解决方案 | error-resolution.md |
| 最佳实践 | 优化指南 | best-practices.md |
| Task | Complexity | Example | Duration |
|---|---|---|---|
| Import simple CSV | ⭐ | 01-task-list-csv | 3 min |
| Handle special characters | ⭐⭐ | 02-contacts-csv | 5 min |
| Process nested JSON | ⭐⭐⭐ | 04-nested-json-projects | 10 min |
| Fix YAML errors | ⭐⭐ | 10-special-chars-fix | 5 min |
| Link entities | ⭐⭐⭐ | 08-complex-relationships | 15 min |
| 任务 | 复杂度 | 示例 | 耗时 |
|---|---|---|---|
| 导入简单CSV | ⭐ | 01-task-list-csv | 3分钟 |
| 处理特殊字符 | ⭐⭐ | 02-contacts-csv | 5分钟 |
| 处理嵌套JSON | ⭐⭐⭐ | 04-nested-json-projects | 10分钟 |
| 修复YAML错误 | ⭐⭐ | 10-special-chars-fix | 5分钟 |
| 关联实体 | ⭐⭐⭐ | 08-complex-relationships | 15分钟 |
templates/templates/[[Wikilinks]]project/alpha/task-001[[维基链接]]project/alpha/task-001undefinedundefinedundefinedundefined