Watch the Four Giants online guitar lesson by Angus Clark from Essentials: Neoclassical Rock Soloing
The first run is based on a Paul Gilbert pattern, I'm just shifting positions with each repetition so that the starting note is a chord tone over an E chord. The second passage is a more psychedelic sounding E Mixolydian motif that uses pull-offs and slides.
Then, there's an open string pedal point lick on the high E string. Very Blackmore. Next, we use an Yngwie pattern for the chord changes, and then we GO FULL SCHENKER! Play your minor pent blues licks, but take the third major every time it appears.