-
Notifications
You must be signed in to change notification settings - Fork 0
55 get html only an entity #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
55 get html only an entity #63
Conversation
…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>
…E-Reference-Implementation into 54-XML-import-export
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
There was a problem hiding this 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.
8c4c847
into
50-design-a-gui-plugin-to-visualize-a-pig-data-set-package
... a new pull request to merge with branch #50 as suggested by Chris.