An Ontology-Based Context Management and Reasoning on the DOG Gateway