Which term describes a general

relationship between a group of words or ideas?

The term that describes a general relationship between a group of words or ideas is "theme."