The rules are simple. (1) Use semicolons to connect sentences that are so closely related that they belong in the same sentence. (2) When your sentence has a series of items that are too long to separate with commas or that have internal punctuation, separate the items with semicolons. You can read Professor Enquist’s article (including examples) here.