Saturday, March 8, 2025

Semantic Type

A semantic type applies a human-centric meaning to a primitive data type in the domain of the application. For example, defining an EmailAddress type instead of using the more loosely typed String helps guard against bug and provides validation ensuring the value of the semantic type is always valid.

Most of semantic data types detection engines are rule based with regular expressions or data dictionaries inside. Most rules are quite simple.

Most common usage are:

  •     to find the data that should be secured (personal identifiable information)
  •     to implement quality control metrics and ensure data integrity
  •     to integrate data automatically by type

So keywords here are observability, security and integration.

source: Semantic data types

See Semantic data types registry

See also Opaque Identifier Validation (twotw)

No comments:

Post a Comment