add types to resources of a certain node