Constraints on writing terms
The business terms that you define must comply with certain naming constraints.
In a business model definition file, you create terms to define the entity and event types, and their attributes. There are certain constraints that apply when you define business terms.
Numbers, special characters, and term length
- A term cannot start with a number.
- A term cannot contain special characters, except underscore ( _ ).
- If a term has more than four words or contains a word that is
a number, enclose it in single quotation marks:
- If a term is more than four words.
For example, you can write a 'flight late departure external event'.
- If one of the words of a term is a number or contains a number.
For example, you can write a 'flight 742'.
- If a term is more than four words.
Consistency and capitalization of terms
Write a term consistently and use the same capitalization throughout the business model (.bmd) files of your BOM project. If you do not write a term consistently and with the same capitalization, the editor flags an error or creates a new type in the BOM.To create a relationship to an existing concept, make sure that you refer to the concept by using the same capitalization. If you change the capitalization, an attribute of type String is created instead of the relationship.
For example, consider the expression a ticket is related to a trip. If trip is an existing concept, a relationship to this concept is created. If trip does not exist, it is considered as an attribute of type String.
A term that defines an entity, event, concept, or enumeration creates a class in the BOM. A term that defines an attribute in the business model definitions creates an attribute in the BOM. In the BOM classes that are created from the business terms, the first letter is always uppercase. However, in the BOM attributes that are created from the definitions attributes, the first letter is always lowercase.
In the generated rule vocabulary, the term has the same capitalization as the one that you defined in the business model definition.
Example of terms and generated BOM classes
If you write "a bike station" in any of the following ways, the generated BOM class is BikeStation:- a bike station
- a Bike station
- a BikeStation
- a Bike Station
- a bike_station
- a bikeStation
If you then write "a bike station" in either of the following ways, a new Bikestation BOM class is created:
- a Bikestation
- a bikestation
If you change the capitalization inside the term, a new BOM class is also created. For example, if you write a bike staTion, this creates a BikeStaTion class in the BOM.
If you use these terms as attributes, the generated BOM attributes start with a lowercase letter. For example, if you write a bike station as an attribute, the generated BOM attribute is bikeStation.