This document discusses extending direct mapping (DM) with a constraint rewriting (Γ) to preserve constraints when mapping a relational database to RDF. DM maps databases to RDF in a monotonic way but is not semantics preserving. Γ extends DM by rewriting constraints to SHACL shapes, making the mapping constraint and weakly semantics preserving. However, Γ is not fully semantics preserving when schemas lack primary keys or databases violate key constraints. The goal is to find the maximally semantics preserving rewriting.