No description
Find a file
2026-04-23 20:28:47 +09:00
node_modules checkpoint before diagram rendering 2026-04-20 11:24:33 +09:00
samples/v03 Complete Model Weave V0.4 authoring and validation workflow 2026-04-23 20:28:47 +09:00
src Complete Model Weave V0.4 authoring and validation workflow 2026-04-23 20:28:47 +09:00
Templates/v03 Complete Model Weave V0.4 authoring and validation workflow 2026-04-23 20:28:47 +09:00
testdata/v03 Stabilize Model Weave V0.3.x and add templates and README_JP 2026-04-23 10:15:00 +09:00
esbuild.config.mjs checkpoint before diagram rendering 2026-04-20 11:24:33 +09:00
main.js Complete Model Weave V0.4 authoring and validation workflow 2026-04-23 20:28:47 +09:00
manifest.json Stabilize Model Weave V0.3.x and add templates and README_JP 2026-04-23 10:15:00 +09:00
package-lock.json Stabilize Model Weave V0.3.x and add templates and README_JP 2026-04-23 10:15:00 +09:00
package.json Stabilize Model Weave V0.3.x and add templates and README_JP 2026-04-23 10:15:00 +09:00
README.md Complete Model Weave V0.4 authoring and validation workflow 2026-04-23 20:28:47 +09:00
README_JP.md Complete Model Weave V0.4 authoring and validation workflow 2026-04-23 20:28:47 +09:00
tsconfig.json checkpoint before diagram rendering 2026-04-20 11:24:33 +09:00
versions.json checkpoint before diagram rendering 2026-04-20 11:24:33 +09:00

Model Weave: V0.4 Samples and Templates

Model Weave is an Obsidian plugin for managing text-first models, relationships, and diagrams in Markdown.

This repository uses the V0.4 modeling file formats below as the formal supported formats.

  • class
  • class_diagram
  • er_entity
  • er_diagram

Legacy formats such as schema: diagram_v1, type: diagram, and type: er_relation are not formal formats anymore. They are kept only under testdata/v03/legacy for unsupported-state checks.

Directory Layout

Template Usage

Use the files in Templates/v03 as the starting point for new modeling files. The directory name is kept for compatibility with earlier sample organization, but the current content follows the V0.4 rules.

Guidelines:

  • Keep the filename aligned with the id field.
  • Use Markdown tables exactly as shown in the templates.
  • Do not use legacy diagram_v1 or type: diagram in new files.
  • For class, use Spec04 relations: id / to / kind / label / from_multiplicity / to_multiplicity / notes. The from side is the current class file's id.
  • For class.Relations.to, use the target class ID, not a wikilink.
  • For er_entity.target_table, er_diagram.Objects.ref, and class_diagram.Objects.ref, prefer wikilinks that point to the actual file path.
  • For abstract classes, use kind: class with stereotype: abstract.

Reference Rules

  • ER file references should be clickable wikilinks such as [[samples/v03/rich/er/ENT-CUSTOMER]]. Internally, ER relation handling uses the linked entity's physical_name.
  • Diagram object refs should also be clickable wikilinks to the object files.
  • Class single-file relations use ID-based to values such as IF-ORDER-REPOSITORY.
  • Class diagram relations still use explicit from / to because they describe diagram-level edges.
  • The old class relation table with an explicit from column is accepted only for compatibility and should not be used for new files.

Sample Purposes

Minimal samples

Use these to confirm that parser, single-object view, and diagram view work with the smallest valid V0.4 input.

Rich relation samples

Use these to confirm denser relation graphs, layout stability, node summaries, and related-object lists.

Warning samples

Use these only for testing warning and note behavior.

Unsupported samples

Use these only to confirm unsupported-state messaging.

Quick Verification Guide

ER single-object view

Open:

Check:

  • Column and index tables
  • Related graph
  • Inbound and outbound relations
  • Mapping summary

ER diagram view

Open:

Check:

  • Diagram object resolution
  • Relation aggregation from er_entity
  • Fit, zoom, pan, and click navigation

Class single-object view

Open:

Check:

  • Attributes, methods, and relations tables
  • Related graph
  • Inbound and outbound class relations

Class diagram view

Open:

Check:

  • Object resolution from ## Objects
  • Explicit diagram relations
  • Fallback auto-collect behavior when diagram relations are empty

Warning and unsupported checks

Open:

Check:

  • Warnings only for real resolution or structure issues
  • Notes for fallback or scope explanations
  • Unsupported state for legacy formats

Naming Rules

  • ER entity IDs: ENT-...
  • ER diagram IDs: ERD-...
  • Class IDs: CLS-..., IF-..., ABS-...
  • Class diagram IDs: CLASSD-...

Keep the filename equal to the ID whenever possible.