table of contents
SDML(1) | User Commands | SDML(1) |
NAME¶
sdml convert - Convert a module into an alternate representation.
SYNOPSIS¶
sdml convert [OPTIONS] --output-format <OUTPUT_FORMAT> [MODULE]
DESCRIPTION¶
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.
Arguments:¶
- [MODULE]
- SDML module, loaded using the standard resolver
OPTIONS¶
-f, --output-format <OUTPUT_FORMAT>
- Possible values: - json: JSON - json-pretty: Pretty-printed JSON - rdf: RDF Abstract Model - s-expr: S-Expressions
-o, --output <OUTPUT>
- File name to write to, or '-' to write to stdout
- [default: -]
-i, --input <INPUT>
- Input SDML file name to read from, or '-' to read from stdin
- [default: -]
-h, --help
- Print help (see a summary with '-h')
-V, --version
- Print version
October 2024 | sdml convert 0.3.0+20240901 |