Skip to content

Conversation

@odungern
Copy link
Contributor

@odungern odungern commented Feb 3, 2026

... a new pull request to merge with branch #50 as suggested by Chris.

odungern and others added 28 commits January 18, 2026 11:08
…nsformations from XML are thus done. Still missing is the XML schema check.
…, as this is not at hand when using JavaScript.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
54 xml import export - forced merge after implementing most suggestions by Copilot and team member reviews.
…, the styles must be refined and perhaps the content as well.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…rences

- Can enable every single constraint check
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request implements HTML generation functionality for PIG (Product Information Graph) package entities as part of issue #50 (Design a GUI plugin to visualize a PIG data set). The PR includes significant structural refactoring of the codebase with improvements to the schema validation, constraint checking, and multi-format support (JSON-LD, XML).

Changes:

  • Added getHTML() methods to APackage and AnEntity classes for HTML visualization
  • Introduced comprehensive test suites for HTML generation, XML/JSON-LD import, and metaclass operations
  • Refactored constraint validation with configurable checks and expanded validation coverage
  • Created JSON Schema files for JSON-LD validation and new MVF (Multi-Vocabulary Facility) for format mapping
  • Reorganized file structure with ts/ subdirectory for TypeScript implementations

Reviewed changes

Copilot reviewed 33 out of 35 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/unit/pig-package-gethtml.spec.ts New comprehensive test suite for HTML generation from packages and entities
tests/unit/pig-package-constraints.spec.ts Updated tests with new constraint types and validation scenarios
tests/unit/pig-metaclasses-xml.spec.ts New test suite for XML import functionality
tests/unit/pig-metaclasses-jsonld.spec.ts New test suite for JSON-LD import functionality
src/utils/schemas/pig/ts/pig-package-constraints.ts Enhanced constraint validation with enumerated check types and expanded coverage
src/utils/schemas/pig/jsonld/*.json New JSON Schema files for validating JSON-LD documents
src/utils/lib/mvf.ts New Multi-Vocabulary Facility for mapping between formats
src/utils/lib/messages.ts Updated error messages with additional codes and multilingual support
src/utils/lib/helpers.ts Refactored with XML document generation utilities
src/utils/import/xml/import-package-xml.ts New XML import functionality
src/utils/import/jsonld/import-package-jsonld.ts Updated JSON-LD import with async schema validation
Comments suppressed due to low confidence (5)

src/utils/import/jsonld/import-package-jsonld.ts:26

  • Unused import ConstraintCheckType.
    src/utils/schemas/pig/ts/pig-package-constraints.ts:58
  • Unused import logger.
    src/utils/schemas/pig/ts/pig-metaclasses.ts:32
  • Unused import Rsp.
    src/utils/schemas/pig/ts/pig-metaclasses.ts:1630
  • Unused variable errorMsg.
    src/utils/schemas/pig/ts/pig-metaclasses.ts:1683
  • Unused variable errorMsg.

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

@csaenz-psg csaenz-psg merged commit 8c4c847 into 50-design-a-gui-plugin-to-visualize-a-pig-data-set-package Feb 3, 2026
@csaenz-psg csaenz-psg deleted the 55-getHTML-only-anEntity branch February 3, 2026 16:14
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