101 render the document outline with collapsible folders per tree - #109
Conversation
odungern
commented
Jul 21, 2026
- Updated core to align with lastest metamodel revision
- Refactored import-JSONLD
- Improved export-TTL
There was a problem hiding this comment.
Pull request overview
This PR updates the CASCaRA core schema/import-export pipeline and refreshes associated fixtures to match a newer metamodel revision, including adjustments to JSON-LD import/export semantics and Turtle export options.
Changes:
- Align metamodel parsing/validation with the latest revision (e.g., new fields like
readOnly,revisionAware, updated JSON-LD tag mappings/handling). - Refactor JSON-LD import/export handling for configurables (properties/links) and update unit tests accordingly.
- Refresh and add updated JSON-LD/TTL test fixtures; bump application version/build metadata.
Reviewed changes
Copilot reviewed 36 out of 39 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/pig-metaclasses-jsonld.spec.ts | Updates expected JSON-LD import semantics for itemType (e.g., Priority as target link). |
| tests/unit/import-jsonld.spec.ts | Reduces noisy console output during dynamic JSON-LD test runs. |
| tests/data/TTL/21/Project_'Very_Simple_Model_(FMC)_with_Requirements'.cas.ttl | Adds updated TTL fixture for metamodel revision. |
| tests/data/TTL/11/Alice.with-itemTypes.cas.ttl | Adds updated TTL fixture including cas:itemType triples. |
| tests/data/TTL/11/Alice_works_for_ACME.cas.ttl | Updates TTL fixture prefixes/ontology header and metamodel definitions. |
| tests/data/TTL/05/Project_'Requirement_with_Enumerated_Property'.cas.ttl | Updates TTL fixture to new metamodel namespace/content and revised timestamps. |
| tests/data/JSON-LD/21/Project 'Very Simple Model (FMC) with Requirements'.cas.jsonld | Removes outdated JSON-LD fixture (replaced by updated TTL fixture). |
| tests/data/JSON-LD/11/Alice_works_for_ACME.cas.jsonld | Updates JSON-LD fixture to new class metadata and ontology header fields. |
| tests/data/JSON-LD/05/Project_'Requirement_with_Enumerated_Property'.cas.jsonld | Adds new JSON-LD fixture aligned with the updated metamodel revision. |
| tests/data/JSON-LD/05/Project 'Requirement with Enumerated Property'.cas.jsonld | Removes outdated JSON-LD fixture (superseded by updated one). |
| src/plugins/export/ttl/export-ttl.vue | Updates TTL export UI options and option wiring to the updated exporter API. |
| src/plugins/export/jsonld/export-jsonld.vue | Simplifies filename derivation and improves array checks when exporting JSON-LD. |
| src/common/schema/pig/ts/pig-package-constraints.ts | Updates constraint roadmap comments for new metamodel validation needs. |
| src/common/schema/pig/ts/pig-metaclasses.ts | Major refactor: JSON-LD configurable extraction split for properties vs links; adds flags like readOnly/revisionAware; multiple normalization/validation tweaks. |
| src/common/schema/pig/json/pig-schemata.ts | Updates schema path to use configured version; adjusts instance/property/link schema definitions. |
| src/common/lib/revision-tracker.ts | Changes how prior revisions are tracked during updates. |
| src/common/lib/platform-independence.ts | Removes now-redundant inline commentary around UUID fallback. |
| src/common/lib/mvf.ts | Expands JSON-LD/XML/RDF tag mappings (e.g., min/max inclusive, dash:readOnly). |
| src/common/lib/helpers.ts | Refactors filename creation helpers and adds item-based filename derivation. |
| src/common/lib/definitions.ts | Bumps CAS schema/version constant to 2026-07-20. |
| src/common/export/ttl/getTTL.ts | Updates TTL options naming/behavior; adjusts prefix handling and SHACL requirements; refactors/extends shape generation. |
| src/common/export/jsonld/getJSONLD.ts | Refactors JSON-LD export helpers (context/graph/configurables) naming and flow. |
| src/common/export/html/getHTML.ts | Removes idRef fallback in HTML rendering of properties (aligns with schema/model change). |
| src/build-info.ts | Updates generated build metadata (version, time, commit, branch). |
| public/assets/jsonld/Relationship.json | Bumps schema $id version to 2026-07-20. |
| public/assets/jsonld/Property.json | Bumps schema $id and adds dash:readOnly support. |
| public/assets/jsonld/Link.json | Bumps schema $id and adds revision-aware/readOnly/defaultValue fields. |
| public/assets/jsonld/Enumeration.json | Bumps schema $id version to 2026-07-20. |
| public/assets/jsonld/Entity.json | Bumps schema $id version to 2026-07-20. |
| public/assets/jsonld/aRelationship.json | Bumps schema $id version to 2026-07-20. |
| public/assets/jsonld/aPackage.json | Bumps schema $id version and updates internal schema references. |
| public/assets/jsonld/anEntity.json | Bumps schema $id version to 2026-07-20. |
| package.json | Bumps app version to 0.2.9. |
| package-lock.json | Bumps lockfile package version to 0.2.9. |
| design/CASCaRA-Reference-Implementation/1_Source/CASCaRA-Reference-Implementation.archimate.bak | Updates diagram object bounds and adds ArchiMate color reference text. |
| design/CASCaRA-Reference-Implementation/1_Source/CASCaRA-Reference-Implementation.archimate | Adds ArchiMate color reference text in model purpose. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
csaenz-psg
left a comment
There was a problem hiding this comment.
Just a small import error that should be included already in the package.json, otherwise looks good!
csaenz-psg
left a comment
There was a problem hiding this comment.
previous review fixed by running npm install first to track updated packages, good to go
|
Chris has approved the pull-request by e-mail. |