add Resource & ResourceMetadata interface
sha calculation for data & metas