Make RDF script compatible with upcoming API change.