Added query for same class triplesmaps' predicates