Add name property to samples and resources.