Modeling Semistructured Data by using graph-based constraints