A Multi-relational hierarchical Clustering Method for Datalog Knowledge Bases