Local Positioning Systems for Mobile Devices based on Ontology