Data integrity is what SHACL https://www.w3.org/TR/shacl/ is for. (OWL is for inferencing. SHACL is for integrity.)
OWL however is only used when doing selects. It expands queries to allow them to access things they didn't know to ask for. When used on top of an relational database, OWL expresses the kind of statements that exists in a T-box for ontology based access.