Line bundles and the Thom construction in noncommutative geometry