improved TTL export#108
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates CASCaRA exports and validation to better support “configurable” package metadata (e.g., contributor/license) and improves TTL/JSON-LD/HTML export behavior, alongside a version bump and refreshed test fixtures.
Changes:
- Extend PIG constraint checks to validate enumerated properties/links on packages in addition to entities/relationships.
- Enhance TTL export with an explicit ontology header and improved SHACL constraint generation for external predicates.
- Add revision/UUID utilities and update fixtures/build metadata to reflect the new export format and release version.
Reviewed changes
Copilot reviewed 13 out of 16 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/data/XML/21/Project 'Very Simple Model (FMC) with Requirements'.cas.xml | Updates XML fixture to represent contributor/license as configurable properties and adjusts Package metamodel. |
| tests/data/XML/11/Alice_works_for_ACME.cas.xml | Updates XML fixture to represent contributor/license as configurable properties and updates Package metamodel definition. |
| tests/data/XML/05/Project 'Requirement with Enumerated Property'.cas.xml | Updates XML fixture to represent contributor/license as configurable properties and updates Package metamodel definition. |
| src/common/schema/pig/ts/pig-package-constraints.ts | Validates enumerated properties/links for packages as well as entities/relationships. |
| src/common/schema/pig/ts/pig-metaclasses.ts | Exports IIdentifiable, adjusts package construction, and enables a debug log during package set. |
| src/common/lib/revision-tracker.ts | Introduces revision/update helper utilities for import workflows. |
| src/common/lib/platform-independence.ts | Adds a makeUUID() helper for cross-platform UUID generation. |
| src/common/lib/definitions.ts | Updates CAS version string used across the codebase. |
| src/common/export/ttl/getTTL.ts | Adds ontology definition output and refines SHACL constraints for enumerated properties/links. |
| src/common/export/jsonld/getJSONLD.ts | Flattens configurable properties/links into JSON-LD output for package/entity/relationship instances. |
| src/common/export/html/getHTML.ts | Centralizes configurable-property rendering via propertiesToHTML for package/entity views. |
| src/build-info.ts | Regenerates build metadata for the new release. |
| package.json | Bumps package version to 0.2.8. |
| package-lock.json | Updates lockfile versions to align with the new release version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Contributor
Author
|
Has been checked by Copilot. Bypassing further review, as this has been already reviewed by Chris and only minor changes have been made since. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.