revise script to allow to get rdf only for last version of annotation sets