Capturing moving objects data is now possible and becoming cheaper with the advances in the positioning and sensor technologies. The increasing amount of such data and the various fields of applications call for intensive research work for building a spatiotemporal DBMS. This involves several aspects such as modeling the moving objects data, designing query methods, query optimization, etc. This PhD project goes in this direction. The authors' goal is to design and implement a language for the Spatio-Temporal Pattern queries (STP queries).