The Internet of Things (IoT) allows physical devices that live inside smart homes, offices, roads, electricity networks and city infrastructures to seamlessly communicate through the Internet while the forthcoming Web of Things (WoT) ensures interoperability at the application level through standardized Web technologies and protocols. In this presentation, we explain the concepts of the IoT and the WoT and their potential through various applications in the aforementioned domains. Then, we examine how the IoT/WoT can be used in the agri-food industry in order to enable novel smart farming technologies and applications,considering the recent technological opportunities for big data analysis.