XXZ spin-$\frac{1}{2}$ representation of a finite-$U$ Bose-Hubbard chain at half-integer filling