MetaKB encoding/decoding implemented