Despite its importance in various fields, analogical reasoning has not yet received a unified formal representation. Our contribution proposes a general scheme of inference that is compatible with different types of logic (deductive, probabilistic, non-monotonic). Firstly, analogical assessment precisely defines the similarity of two objects according to their properties, in a relative rather than absolute way. Secondly, analogical inference transfers a new property from one object to a similar one, thanks to an over-hypothesis linking two sets of properties. The belief strength in the conclusion is then directly related to the belief strength in this meta-hypothesis.