A NeSy Framework for Learning with Requirements