Where is the best place to put Schema markup

For maximum benefit where is the best place to incorporate Schema markup. I thought it was the head or footer? But I was also told that you should place it in the sidebar. Any help would be greatly appreciated.

Marc