Exploiting context-aware capabilities over the internet of things for industry 4.0 applications