Generate Schema

Having defined a schema profile and added the necessary elements and customizations, you can quickly and easily generate the necessary output schema according to the specifications of the relevant technology you are working with. Depending on the technology you are targeting and working with, there may be different output options and formats available to choose from. Note that you may elect to generate multiple output files at once where you are targeting multiple output formats. 

If the Schema technology you selected is NIEM, you will generate a Model Subset instead, which you can customize at the model level and output as a schema using the 'Generate NIEM Schema' facility.

One of the options available for all schema sets is Execute custom script; you can use any script that you have written to perform operations on a schema. When you select the Execute custom script option you are prompted to enter the script name, in the format group_name.script_name. The script is then executed.

Access Tools | Schema Composer: Generate

Generate/Export Schema

Field/Option/Button

Action

See also

Technologies

Select the checkbox against each Technology for which you want to generate a schema.

If you originally selected, as the Schema Set:

  • * CIM, these options are available:
         -  XML Schema (XSD)
         -  Resource Description Framework Schema (RDFS)
         -  Resource Description Framework Schema - Augmented (RDFS)
         -  JavaScript Object Notation (JSON)
         -  Execute Custom Script
  • * NIEM, these options are available:
         -  Model Subset
         -  Execute Custom Script
  • * UN/CEFACT NDR 3.0, these options are available:
         -  Business Data Type (BDT) Transform
         -  Business Information Entity (BIE) Transform
         -  XML Schema (XSD)
         -  Execute Custom Script
  • * UN/CEFACT NDR 2.1, these options are available:
         -  Unqualified Data Type (UDT) Transform
         -  Qualified Data Type (QDT) Transform
         -  Business Information Entity (BIE) Transform
         -  XML Schema (XSD)
         -  Execute Custom Script
  • * UBL,  these options are available:
         -  XML Schema (XSD)
         -  Execute Custom Script
  • Generic, these options are available:
         -  Resource Description Framework Schema (RDFS)
         -  JavaScript Object Notation (JSON)
         -  Generic Model Subset
         -  Execute Custom Script

Create a Schema Profile

Generate

Click on this button to generate the schema. If you are generating:

  • Anything other than a NIEM subset, a file Browser window displays; locate and select the directory into which to generate the schema
  • A NIEM Model Subset, the 'Find Package' dialog displays; locate and select the 'IEPD | PIM | Niem-coreSubset Package', and click on the OK button

The message Export of profile <name> completed displays; click on the OK button to clear this message, then either:

  • Use a file browser to locate and open the schema files in the file directory you specified, or
  • Expand the Niem coreSubset Package in the Project Browser to see the model subset

Notes

  • For NIEM, the Niem-core Subset Package element has the Tagged Value defaultPurpose set to subset, to enable the Package to receive the model sub-set
  • To generate a schema from the NIEM model subset, click on the <<ModelPackageDescription>> element and select Extensions | NIEM | Generate NIEM Schema
  • The Schema Composer is supported in the Corporate, Systems Engineering, Business and Software Engineering and Ultimate editions of Enterprise Architect

Learn more