One term in linguistics for omitting words, but retaining the semantic meaning, is ellipsis , or elliptical construction. Another term for your first example is the null relative pronoun .
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.