Virtual resources for the Internet of Things