Closed ccamel closed 8 months ago
The recent updates involve enhancing JSON-LD conversion functionality by introducing a --flatten
option. This modification affects the command-line interface and the underlying conversion logic, streamlining the process of generating flattened JSON-LD outputs. The changes span across the Makefile and Python scripts, specifically targeting the conversion commands and functions to accommodate the new flattening feature.
Files | Change Summary |
---|---|
Makefile , script/cli/cli.py , script/cli/jsonld.py |
Added --flatten option to JSON-LD conversion commands and functions. Adjusted related logic for flattened output. |
🐇✨
In the land of code and lore,
A rabbit hopped, with changes galore.
"Let's flatten," it said, "make JSON-LD neat,
With a command so swift, it can't be beat!"
🎉📜🐾
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
:tada: This PR is included in version 3.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
This PR enhances the build process by adding the flag
--flatten
to the CLI for generating a flattenedJSON-LD
representation, which is better suited for the cognitarium smart contract.By default, this flag is enabled, ensuring that classes and properties are organized at the same hierarchical level. Previously, properties were nested under the class context to which they were associated (i.e., their domain).
before:
now:
While this representation is simpler and seems to be more commonly used, it leads to a reduction in type strictness because the connection between a property and its associated class is no longer explicitly stated.
Summary by CodeRabbit