What is the difference between lore and folklore? What are the best examples where to use one and not the other?
Folklore, on the other hand, is much more recent. It was famously coined in 1846 by William Thoms, a British writer who was particularly interested in antiquities, including myths, fairy tales, and other sorts of oral traditions.
Folklore is related to lore, as you might expect, because folklore is exactly that: the lore of the folk. In other words, folklore is the body of knowledge that constitutes the myths, old wives' tales, legends, and other cultural foundations of a group of people.
Folklore can be contrasted with herb lore, for instance, which is the body of knowledge concerning the means of cultivating and using plants for medicinal purposes.
Lore is a rather "dated" term for the "corpus of knowledge" in any particular area. It is still used today, but often in a slightly facetious way (the "arcane lore of software gurus", for example).
Folklore has survived as a somewhat "idiomatic" usage that's so common people often think of it as a single unit, so they don't register the "lore" component as archaic in the vocabulary sense.
But the referent of folklore itself implies "accumulated wisdom from the past" just as much as "...from ordinary folk, rather than recognised specialists and experts". So although there's a sense of the past in the word's meaning, the word itself doesn't sound particularly dated.