A Unifying Framework for Incompleteness, Inconsistency, and