Generate metadata on a resource