Skip to content

improved TTL export#108

Merged
odungern merged 5 commits into
devfrom
28-transform-cascara-to-rdfturtle
Jul 12, 2026
Merged

improved TTL export#108
odungern merged 5 commits into
devfrom
28-transform-cascara-to-rdfturtle

Conversation

@odungern

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 12, 2026 15:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/common/lib/revision-tracker.ts
Comment thread src/common/lib/revision-tracker.ts Outdated
Comment thread src/common/lib/platform-independence.ts
Comment thread src/common/schema/pig/ts/pig-metaclasses.ts
Comment thread src/common/export/ttl/getTTL.ts
odungern and others added 4 commits July 12, 2026 17:22
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>
@odungern

Copy link
Copy Markdown
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.

@odungern odungern merged commit 0bbb8b1 into dev Jul 12, 2026
2 checks passed
@odungern odungern deleted the 28-transform-cascara-to-rdfturtle branch July 12, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants