Treat Different Negatives Differently: Enriching Loss Functions with Domain and Range Constraints for Link Prediction