Skip to content

Cleanup shex_shacl_shapes_exporter.#3609

Merged
alex-jansen merged 3 commits intomainfrom
export-shacl
Sep 12, 2024
Merged

Cleanup shex_shacl_shapes_exporter.#3609
alex-jansen merged 3 commits intomainfrom
export-shacl

Conversation

@MatthiasWiesmann
Copy link
Contributor

General cleanups in the shex_shacl_shapes_exporter.py file

  • Made all class method static as neither class has any state.
  • Moved all conversion logic into a function that can be called from python.
  • Use json library to output JSON, instead of hand-crafted string patterns.
  • Call the shex_shacl_shapes_exporter directly in python instead of doing an unsafe system exec.

@alex-jansen alex-jansen merged commit 33d6560 into main Sep 12, 2024
@alex-jansen alex-jansen deleted the export-shacl branch September 12, 2024 14:12
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.

4 participants