Skip to content

CASCaRA Validation Tool - new v0.2.7#107

Merged
odungern merged 16 commits into
mainfrom
dev
Jul 11, 2026
Merged

CASCaRA Validation Tool - new v0.2.7#107
odungern merged 16 commits into
mainfrom
dev

Conversation

@odungern

Copy link
Copy Markdown
Contributor

Export to CASCaRA Turtle included.

Copilot AI review requested due to automatic review settings July 10, 2026 17:21

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 the CASCaRA Validation Tool to v0.2.7 and introduces/aligns CASCaRA Turtle (TTL) export support alongside schema + validation updates and refreshed example fixtures.

Changes:

  • Adds a full “Export Packages as Turtle (TTL)” UI with export options and filename handling.
  • Updates PIG/CASCaRA schema + validation logic (namespace-prefix validation, datatype requirements, RDF/Turtle term mapping).
  • Refreshes unit tests and XML/JSON-LD/TTL fixture datasets to match the new metamodel/schema expectations.

Reviewed changes

Copilot reviewed 51 out of 56 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/unit/pig-package-constraints.spec.ts Adds missing owl:/xs: prefixes in contexts and corrects OWL class casing in tests.
tests/unit/pig-metaclasses-jsonld.spec.ts Minor text normalization and updates around unit handling.
tests/unit/import-xml.spec.ts Adds xs namespace and adjusts relationship assertion typing in test.
tests/unit/import-reqif.spec.ts Updates expected graph item count/type ordering for ReqIF import.
tests/data/XML/21/Project 'Very Simple Model (FMC) with Requirements'.cas.xml Removes embedded metamodel boilerplate elements from XML fixture.
tests/data/XML/11/Alice_works_for_ACME.cas.xml Updates IDs/titles and restructures fixture to align with new class/property naming.
tests/data/XML/05/Project 'Requirement with Enumerated Property'.cas.xml Removes embedded metamodel boilerplate and adjusts enumeration specialization order.
tests/data/TTL/11/Alice.cas.ttl Removes old TTL fixture.
tests/data/TTL/11/Alice_works_for_ACME.cas.ttl Adds new TTL fixture aligned to updated metamodel/schema.
tests/data/TTL/05/Project_'Requirement_with_Enumerated_Property'.cas.ttl Adds new TTL fixture aligned to updated metamodel/schema.
tests/data/TTL/05/Project 'Requirement with Enumerated Property'.cas.ttl Removes old TTL fixture.
tests/data/JSON-LD/27/Dimmer - Semantically Integrated Specification (2021-01-28).cas.jsonld Updates context and removes embedded metamodel items from JSON-LD fixture.
tests/data/JSON-LD/22/Small Autonomous Vehicle.cas.jsonld Removes embedded metamodel items from JSON-LD fixture.
tests/data/JSON-LD/21/Project 'Very Simple Model (FMC) with Requirements'.cas.jsonld Removes embedded metamodel items from JSON-LD fixture.
tests/data/JSON-LD/11/Alice.cas.jsonld Removes old JSON-LD fixture.
tests/data/JSON-LD/11/Alice_works_for_ACME.cas.jsonld Adds new JSON-LD fixture aligned to updated metamodel/schema.
tests/data/JSON-LD/05/Project 'Requirement with Enumerated Property'.cas.jsonld Removes embedded metamodel items from JSON-LD fixture.
src/plugins/import/xml/import-xml.vue Updates import button label/styling.
src/plugins/import/reqif/import-reqif.vue Updates import button label/styling.
src/plugins/import/jsonld/import-jsonld.vue Updates import button label/styling.
src/plugins/import/fmi/import-fmi.vue Updates import button label/styling.
src/plugins/export/ttl/mount-export-ttl.ts Renames plugin/component identifiers for TTL export.
src/plugins/export/ttl/export-ttl.vue Implements TTL export dialog, options, filename rules, and write-out flow.
src/plugins/export/jsonld/export-jsonld.vue Updates export button label and filename rules (.cas.jsonld/.cas.json).
src/components/PageHome.vue Re-enables export plugin listing section in UI.
src/common/schema/pig/ts/pig-package-constraints.ts Adds namespace-prefix validation and updates several constraint checks.
src/common/schema/pig/ts/pig-metaclasses.ts Refactors multilanguage text normalization/validation and adds default-namespace tracking.
src/common/schema/pig/json/pig-schemata.ts Bumps schema path version and makes datatype required for Property/Enumeration classes.
src/common/lib/mvf.ts Adds mapping tables for RDF/Turtle term conversion.
src/common/lib/messages.ts Improves package validation messages and adds namespace-prefix error message.
src/common/lib/helpers.ts Adds ontology helpers + filename sanitization helper.
src/common/lib/definitions.ts Adds ontology definition structures, shape naming helpers, and increases max XML size.
src/common/import/fmi/import-fmi.ts Adjusts logging behavior for FMI import result reporting.
src/build-info.ts Updates build metadata for v0.2.7.
src/App.vue Re-enables “Document” navigation entry.
README.md Updates project name/wording and collaboration rules section formatting.
public/assets/xslt/ReqIF-to-CAS.xsl Adds SKOS namespace and injects semantic infrastructure items into ReqIF transform output.
public/assets/xslt/FMI-to-CAS.xsl Ensures enumerations emitted from FMI include sh:datatype.
public/assets/jsonld/Relationship.json Updates $id to new schema version path.
public/assets/jsonld/Property.json Updates $id, removes cas:unit, and requires sh:datatype.
public/assets/jsonld/Link.json Updates $id to new schema version path.
public/assets/jsonld/Enumeration.json Updates $id, removes cas:unit, and requires sh:datatype.
public/assets/jsonld/Entity.json Updates $id and reformats/normalizes $defs indentation.
public/assets/jsonld/aRelationship.json Updates $id to new schema version path.
public/assets/jsonld/aPackage.json Updates $id and all referenced schema URLs to new schema version path; formatting fixes.
public/assets/jsonld/anEntity.json Updates $id to new schema version path.
public/assets/index.html Updates “latest” schema link to 2026-07-03 and keeps prior versions listed.
package.json Bumps version to 0.2.7.
package-lock.json Bumps version/name metadata and updates some dependency lock entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/common/schema/pig/ts/pig-metaclasses.ts
Comment thread src/common/schema/pig/ts/pig-package-constraints.ts
odungern and others added 3 commits July 10, 2026 19:32
Include complemented _context in _pkg before validation.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Improve on Copilot suggestion.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@odungern

Copy link
Copy Markdown
Contributor Author

Bypassing merge rules, as those changes have been reviewed already before merge to 'dev'. Another Copilot review has been done and 2 suggestions have been implemented.

@odungern odungern merged commit 163a3b6 into main Jul 11, 2026
2 checks passed
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