Implements Repository pattern over TiG data schema.