Sensor-based linked open rules (S-LOR): An automated rule discovery approach for IoT applications and its use in smart cities