-
-
Notifications
You must be signed in to change notification settings - Fork 0
CLI Usage
This section documents every CLI parameter, usage patterns, validation modes, error scenarios and complete examples.
Path to Classes.tsv.
Defines classes, inheritance, definitions and Choice patterns.
Path to Attributes.tsv.
Defines datatype and object properties, multiplicities and facets.
Output ontology file. Format inferred from extension.
Base IRI of the ontology.
Path to Datatypes.tsv for named datatype definitions.
Path to Enumerations.tsv defining enumeration classes.
Path to EnumerationNamedValues.tsv defining enumeration individuals.
Path to AnnotationProperties.tsv.
Path to Annotations.tsv.
Declare one or more prefixes using comma- or semicolon-separated syntax. Each entry may use = or : between prefix and IRI:
--prefixes "iso=http://example/ns#;rdfs=http://www.w3.org/2000/01/rdf-schema#"
--prefix "iso:http://example/ns#,rdfs:http://www.w3.org/2000/01/rdf-schema#"
Mapping profile to apply (generic or iso20022). Current behavior is a no-op placeholder; mapping is driven by TSV content.
Promote validation warnings to errors.
Toggle structural validation (default is enabled).
Set logging verbosity (ERROR, WARNING, INFO, DEBUG).
Build the ontology graph without writing a file.
Serialisation format (rdfxml, turtle, owlxml).
Set xml:base when writing RDF/XML.
Add owl:imports axioms or suppress automatic imports.
Print the tool version and exit.
uml2semantics -c Classes.tsv -a Attributes.tsv -o out.ttl -i http://example.org/ns
uml2semantics -c tsv/Classes.tsv -a tsv/Attributes.tsv --datatypes tsv/Datatypes.tsv -e tsv/Enumerations.tsv -n tsv/EnumerationNamedValues.tsv --annotation-properties tsv/AnnotationProperties.tsv --annotations tsv/Annotations.tsv -o build/iso-model.ttl -p "iso:http://iso20022.example/ontology#,rdfs:http://www.w3.org/2000/01/rdf-schema#" -i http://iso20022.example/ontology
uml2semantics -c C.tsv -a A.tsv --datatypes D.tsv --debug-tsv --debug-iri -o debug.ttl -i http://debug/ns
uml2semantics -c C.tsv -a A.tsv --datatypes D.tsv --validate -o val.ttl -i http://validation/ns --dry-run
| Option | Description |
|---|---|
| -c | Classes.tsv |
| -a | Attributes.tsv |
| --datatypes | Datatypes.tsv |
| -e | Enumerations.tsv |
| -n | EnumerationNamedValues.tsv |
| --annotation-properties | AnnotationProperties.tsv |
| --annotations | Annotations.tsv |
| -o | Output ontology file |
| -i | Base ontology IRI |
| --prefix / --prefixes | Prefix declarations |
| --profile | Mapping profile (generic/iso20022) |
| --imports / --no-imports | Imports control |
| --format | Output format |
| --xml-base | RDF/XML base |
| --strict | Strict validation |
| --validate / --no-validate | Toggle validation |
| --log-level | Logging verbosity |
| --dry-run | Build without writing |
| --version | Print version |