Lie groupoids and Lie algebroids: representations and equivalences