SDML(1)
β¨ NAME β¨
sdml convert β bestie, this one converts a module into an alternate representation π
π¦ SYNOPSIS π¦
sdml convert [OPTIONS] --output-format <OUTPUT_FORMAT> [MODULE]
π DESCRIPTION π
Okay so, converting a module into an alternate representation. That's the whole mission, that's the vibe π
This command lets you take a module from the SDML surface syntax and turn it into any one of a bunch of other representations. Choose your fighter:
- RDF</> :: this uses the surface-to-RDF mapping defined in the SDML Language Reference. And no cap, that mapping is normative and stable β it's the trustworthy one, the main character π
- JSON</> :: this is a direct representation of the in-memory model in the Rust package
sdml_core, rendered as JSON. Heads up though: this mapping is non-normative and may change according to any model structure change. It's giving "fashion, but it evolves" π¦ - S-Expression</> :: this one is a debugging representation. It's supported because the underlying tree-sitter library uses s-expressions as a parse-tree visualization. It's the backstage-pass format π
π«Ά Arguments:
[MODULE]β an SDML module, loaded using the standard resolver. Drop it in and let the resolver do its thing β¨
πΈ OPTIONS πΈ
-f,--output-format <OUTPUT_FORMAT>β the format you want out the other side. Possible values are:jsonβ JSONjson-prettyβ Pretty-printed JSONrdfβ RDF Abstract Models-exprβ S-Expressions
-o,--output <OUTPUT>β file name to write to, or-to write to stdout. Default is-, so by default she's streaming straight to your terminal, periodt π-i,--input <INPUT>β input SDML file name to read from, or-to read from stdin. Default is-π-h,--helpβ print help (see a summary with'-h') π-V,--versionβ print version π
fr fr, just remember: --output-format is not optional, bestie. If you skip it, she's not going anywhere π
That's the whole page, you ate it π this was sdml convert version 0.3.2+20250310, written down back in October 2025 β and it lives as SDML(1) in the manual, iconic as ever ππ
π¦ where this page comes from
- ubuntu resolute: sdml 0.3.2+20250310-5 Β· Apache-2.0
- ubuntu stonking: sdml 0.3.2+20250310-5 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms