Add predicate/rule maps to rules and predicates.