A combinatorial characterization of parabolic quadrics