Research Article

SmartOntoSensor: Ontology for Semantic Interpretation of Smartphone Sensors Data for Context-Aware Applications

Algorithm 3

Example of event-condition-action format.
IF EXIST event/sensors/GPS THEN
    CREATE INDIVIDUAL OF CLASS GPS IN
    SMARTONTOSENSOR WITH NAME event/sensors/GPS/@locationname
    IF EXIST event/sensors/GPS/@LatitudeValue THEN
        
           SET DATATYPE PROPERTY hasLatitude TO
           event/sensors/GPS/@LatitudeValue
        
    IF EXIST event/sensors/GPS/@LongnitudeValue THEN
        
           SET DATATYPE PROPERTY hasLongnitude TO
           event/sensors/GPS/@LongnitudeValue