The $W$-curvature tensor on relativistic space-times