SIoT: Giving a Social Structure to the Internet of Things