Algebraic characterizations of chordality