SDML(1) | User Commands | SDML(1) |
sdml convert - Convert a module into an alternate representation.
sdml convert [OPTIONS] --output-format <OUTPUT_FORMAT> [MODULE]
Convert a module into an alternate representation.
This command allows the conversion of a module from the SDML surface syntax into one of a number of alternate representations.
- RDF :: This uses the surface to RDF mapping defined in the SDML Language Reference. The mapping is normative and stable.
- JSON :: This is a direct representation of the in-memory model in the Rust package `sdml_core` in JSON. This mapping is non-normative and may change according to any model structure change.
- S-Expression :: This is a debugging representation, and supported as the underlying tree-sitter library uses s-expressions as a parse-tree visualization.
-f, --output-format <OUTPUT_FORMAT>
-o, --output <OUTPUT>
-i, --input <INPUT>
-h, --help
-V, --version
October 2024 | sdml convert 0.3.1+20241014 |