In this paper we study monomial ideals attached to posets, introduce generalized Hibi rings and investigate their algebraic and homological properties. The main tools to study these objects are Groebner basis theory, the concept of sortability due to
Sturmfels and the theory of weakly polymatroidal ideals.
Let $Isubset S=K[x_1,...,x_n]$ be a lexsegment edge ideal or the Alexander dual of such an ideal. In both cases it turns out that the arithmetical rank of $I$ is equal to the projective dimension of $S/I.$
In this paper we characterize the componentwise lexsegment ideals which are componentwise linear and the lexsegment ideals generated in one degree which are Gotzmann.