Script converts query output to JanusMetadata