I've made an actual study of implementing RPKI's outcome in the route-map language, and its not pretty: https://github.com/job/rpki-ov-route-map
I recommend using RTR and native origin validation, not to depend on the route-map language to accomplish the task ;-)