Relating Logic and Relating Semantics. Theory and Applications