A Semantic Web Approach to Simplifying Trigger-Action Programming in the IoT