Enriched attributes

In the business model statements, you can use external data to enrich entity attributes that you defined in the business model.

In the business model definitions, you define the entities, their attributes, and the data providers.

In the business model statement, you specify the attribute that you want to enrich and the data provider from which the data is used to enrich the attribute:

  1. The bound entity type.
  2. The data provider from which data is used to enrich the attributes.
  3. The attributes of the bound entity.
  4. The bound entity for which the attributes are enriched.
  5. The attributes that are enriched.

You can use one or more attributes to link the entity to the data provider.

Restriction: The use of aggregation operators and current-time operators is not supported.

Example

In this example, an airport entity and an external weather data provider are defined in the business model definitions:
an airport is a business entity identified by an IATA code with
   a latitude (a number),
   a longitude (a number),
   a precipitation level (a number),
   a wind speed (a number),
   a temperature (a number).
   
a weather provider is a data provider,
   accepts a longitude (numeric) and a latitude (numeric),
   returns a temperature (numeric), a wind speed (numeric) and a precipitation (numeric).
In the business model statements, the temperature, wind speed, and precipitation level attributes of the airport entity are enriched by using the weather provider:
an airport is enriched by the weather provider,
   given the latitude from the latitude of this airport
      and the longitude from the longitude of this airport,
   setting the temperature to the temperature of this weather provider,
      the wind speed to the wind speed of this weather provider
      and the precipitation level to the precipitation of this weather provider.