Conversation
… finalized TTL-export including shapes for instances and without shapes for the classes.
28 transform cascara to rdfturtle
Contributor
There was a problem hiding this comment.
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.
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>
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. |
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.
Export to CASCaRA Turtle included.