move resourceUri attribute to Resource class