Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
signet::forge::DataClassificationOntology Class Reference

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< DataClassificationRuleall_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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DataClassificationOntology()

signet::forge::DataClassificationOntology::DataClassificationOntology ( const std::string &  ontology_id = "default")
inlineexplicit

Construct an ontology with the given identifier.

Definition at line 116 of file data_classification.hpp.

Member Function Documentation

◆ add_rule()

void signet::forge::DataClassificationOntology::add_rule ( const DataClassificationRule rule)
inline

Add a classification rule for a field.

Definition at line 122 of file data_classification.hpp.

◆ all_rules()

std::vector< DataClassificationRule > signet::forge::DataClassificationOntology::all_rules ( ) const
inline

Get all registered rules.

Definition at line 142 of file data_classification.hpp.

◆ financial_default()

static DataClassificationOntology signet::forge::DataClassificationOntology::financial_default ( )
inlinestatic

Build a default ontology with standard financial/compliance field rules.

Definition at line 194 of file data_classification.hpp.

◆ lookup()

DataClassificationRule signet::forge::DataClassificationOntology::lookup ( const std::string &  field_name) const
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.

◆ ontology_id()

const std::string & signet::forge::DataClassificationOntology::ontology_id ( ) const
inline

Ontology identifier.

Definition at line 153 of file data_classification.hpp.

◆ size()

size_t signet::forge::DataClassificationOntology::size ( ) const
inline

Number of registered rules.

Definition at line 150 of file data_classification.hpp.

◆ validate_handling()

expected< void > signet::forge::DataClassificationOntology::validate_handling ( const std::string &  field_name,
bool  is_encrypted,
bool  is_pseudonymised,
bool  purpose_is_allowed = true 
) const
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.


The documentation for this class was generated from the following file: