Quaternions have the axis and a rotation angle, so presumably if you know how much you want to rotate by, then you're done.
Note that rotations (whether by quaternions or any other method) are not absolute; if you've done a rotation, then further rotations will be done with respect to the new axes, not some theoretical "absolute x-y-z".