Thematic investing links long-term trends such as robotics and automation to the companies positioned to benefit. Building a representative index, however, requires more than identifying firms by name or sector: revenue data, industry classifications and quantitative analysis all play a role.