XPath Query Relaxation through Rewriting Rules