add a way to get a list of all predicates for a resource