![]() |
Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
|
DEMO |
A named collection of data classification rules forming a formal ontology. More...
#include <data_classification.hpp>
Public Member Functions | |
| DataClassificationOntology (const std::string &ontology_id="default") | |
| Construct an ontology with the given identifier. | |
| void | add_rule (const DataClassificationRule &rule) |
| Add a classification rule for a field. | |
| DataClassificationRule | lookup (const std::string &field_name) const |
| Look up the classification rule for a field. | |
| std::vector< DataClassificationRule > | all_rules () const |
| Get all registered rules. | |
| size_t | size () const |
| Number of registered rules. | |
| const std::string & | ontology_id () const |
| Ontology identifier. | |
| expected< void > | validate_handling (const std::string &field_name, bool is_encrypted, bool is_pseudonymised, bool purpose_is_allowed=true) const |
| Validate that a field's actual handling meets classification requirements. | |
Static Public Member Functions | |
| static DataClassificationOntology | financial_default () |
| Build a default ontology with standard financial/compliance field rules. | |
A named collection of data classification rules forming a formal ontology.
Validates field-level data handling against the registered rules. Supports lookup by field name and bulk validation.
Definition at line 113 of file data_classification.hpp.
|
inlineexplicit |
Construct an ontology with the given identifier.
Definition at line 116 of file data_classification.hpp.
|
inline |
Add a classification rule for a field.
Definition at line 122 of file data_classification.hpp.
|
inline |
Get all registered rules.
Definition at line 142 of file data_classification.hpp.
|
inlinestatic |
Build a default ontology with standard financial/compliance field rules.
Definition at line 194 of file data_classification.hpp.
|
inline |
Look up the classification rule for a field.
Returns a default PUBLIC/NEUTRAL rule if the field is not registered.
Definition at line 128 of file data_classification.hpp.
|
inline |
Ontology identifier.
Definition at line 153 of file data_classification.hpp.
|
inline |
Number of registered rules.
Definition at line 150 of file data_classification.hpp.
|
inline |
Validate that a field's actual handling meets classification requirements.
Returns an error if the field is classified above the actual sensitivity level (e.g., a HIGHLY_RESTRICTED field being processed without encryption).
Definition at line 159 of file data_classification.hpp.