Compote and jam are fairly similar, and in most cases, you can substitute one for the other. The main difference is that jam is more of a spreadable consistency while compote is more of a sauce with large fruit chunks so it isn't as easily spreadable.