Maintain the information in the Semantic Analysis sub-node of the database view

The semantic analysis functionality for database views scans the query of the database view for references to Alfabet object classes and object class properties thereof. The Show Usage functionality in the context menu of object class properties evaluates the use of the object class property in configured reports on basis of the semantic analysis results.

The results of the semantic analysis are listed in a node Semantic Analysis beneath the node of each datase view in a hierarchical structure going down from object classes to object class properties to values of object class properties. The Name property of object classes and object class properties is used in the explorer.

If object class properties restrict the content of the database view via a WHERE clause definition in the underlying query, the values will be included into the semantic analysis for object class properties returning one of the following:

In addition, the semantic analysis maps all column names in the database view with the object class and object class property for which data is returned in the column. The results are listed in a sub-folder Aliases.

Scanning is done automatically after the query for the database view has been defined.

Please note the following:

  • If the Semantic Analysis node is empty, this is an idicator for an error in the underlying query, for example a typo in an object class name.

The analysis scans both Alfabet queries and native SQL queries. It comprises object class properties referenced by any part of the query including joins and the object class properties of the type ReferenceArray which are included in native SQL queries via the PROPERTY column of the RELATIONS database table.

Alfabet queries and native SQL queries are handled differently:

Information about object classes and object class properties may be missing in the analysis for one of the following reasons:

If the semantic analysis of a correct native SQL query is incomplete, missing information can be added manually to complete the analysis: