Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Create a Schema Profile
A schema profile identifies the name, technology and content of the schema as a precursor to defining how the schema is generated. You can create and edit as many schema profiles as you need. Schema profiles are typically bound to a single technology and will either map to a generated schema or a sub-setting transform.
Access Tools | Schema Composer
Creating a new Profile
If you are creating a schema for a particular technology, start by opening a model that has the requisite meta-model loaded. Sparx Systems make a number of meta-models available when using the Model Wizard and/or from the Sparx RAS/Cloud services. If you are using a customized or domain specific model, make sure that model is loaded. Once you have a suitable model and have opened the Schema Composer, you can follow these steps to build a new Profile.
Field/Option/Button |
Action |
See also |
---|---|---|
Profile (name) |
This field is initially blank. When you have created a schema, the name displays in this field. |
|
New |
Click on this button to start creating the schema profile. The 'New Message' dialog displays.
|
|
Model Ref |
Depending on the standard you have selected for the Schema Set, this field takes an automatic value or remains blank. If blank, you can type in a reference name if required. |
|
<other options> |
Depending on the standard you have selected for the Schema Set, other fields might display. Either leave blank, type in the appropriate value, or click on the button and select the appropriate library Package. |
|
Update |
Click on this button to save the schema details you have defined. |
Define Schema Content
These steps walk you through the basic procedure of adding elements to a Schema profile and show how you might customize the content of the profile to create the required schema output.
Step |
Action |
See also |
---|---|---|
1 |
Drag the required Class elements from the Project Browser into the 'Classes' panel. As you add an element:
If necessary, you can list the elements and attributes in reverse alphabetical order (and change the sequence back again) by clicking on the column title. |
|
2 |
If a selected Class is in a Generalization relationship with another Class, and you want to include attributes that the selected Class inherits, select the 'Show Inheritance' checkbox underneath the 'Attributes' panel. The inherited attributes are shown - also with checkboxes - at the end of the list in the 'Attributes' panel. |
|
3 |
Click on a Class in the 'Classes' list and, in the 'Attributes' list, select the checkbox against each attribute and Association from that Class to include in the schema. The element and its selected attributes and Associations are added to the 'Schema' panel. You can select all checkboxes for an element at once by clicking on the , and clear all selected checkboxes by clicking on the . If you select the checkbox for an Association that links to an element you have not added to the 'Classes' list, that element is automatically added and reported in the status panel in the top right of the screen. |
|
4 |
In the 'Classes' list, right-click on a Class and set element properties as required:
You can double-click on the element to display its 'Properties' dialog, where you can define a wider range of element properties as necessary. |
Cardinality Properties Dialog |
5 |
In the 'Attributes' list, right-click on a selected attribute or Association and select:
The values you have set display after the attribute or Association name in the 'Schema' panel. You can double-click on the attribute or Association to display its 'Properties' dialog, where you can define a wider range of properties as necessary. |
Create and Manage Attributes |
6 |
Click on the to validate and save your schema profile. If there are any problems with the profile, they are identified in the status panel in the top right of the screen. |
|
7 |
You can now go on to generate schema based on your profile. |
Notes
- The process of creating and generating schema for NIEM has additional notes in the MDG Technology for NIEM Help topic
- The Schema Composer is supported in the Corporate, Systems Engineering, Business and Software Engineering and Ultimate editions of Enterprise Architect
Learn more