Transforms an Enterprise Architect (EA) UML diagram to RDF (or a serialization)
npm install @oslo-flanders/ea-converter
To use the service from the command line anywhere, you can install it globally.
npm install -g @oslo-flanders/ea-converter
The service is executed from the CLI and expects the following parameters:
Parameter | Description | Required | Possible values |
---|---|---|---|
--umlFile |
The URL or local file path of an EA UML diagram | ✔️ | |
--diagramName |
The name of the UML diagram within the EAP file | ✔️ | |
--publicationEnvironment |
The base URI of environment where the document will be published | ✔️ | |
--versionId |
Version identifier for the document | ✔️ | |
--outputFile |
The name of the RDF output file | No, but if omitted, output is written to process.stdout | |
--outputFormat |
RDF content-type specifiying the output format | ✔️ | application/ld+json |
--allTags |
Add all tags from EA to the generated output | No, default false
|
true or false
|
--debug |
A flag to enable debug mode which is more resilient to errors | false |
oslo-converter-ea --umlFile path/to/uml/diagram.eap --diagramName "diagramName" --versionId "test/1" --outputFile path/to/output.jsonld --outputFormat application/ld+json --publicationEnvironment https://data.vlaanderen.be
oslo-converter-ea --umlFile https://github.com/path/to/uml/diagram.eap --diagramName "My UML diagram" --versionId "test/1" --outputFormat application/ld+json --publicationEnvironment https://data.vlaanderen.be
oslo-converter-ea --umlFile https://github.com/path/to/uml/diagram.eap --diagramName "My UML diagram" --versionId "test/1" --outputFormat application/ld+json --publicationEnvironment https://data.vlaanderen.be --allTags true