A non-transitory computer recordable storage medium storing computer code which, when executed by a processor, performs a computer-implemented method of improving processing of image data by a processor using a distance-based quality score in a geospatial-temporal semantic graph, the computer code comprising:
- computer code for specifying, by the processor, a subgraph search template in the geospatial-temporal semantic graph, wherein the subgraph search template includes nodes and edges, and wherein the nodes include both a required set of nodes and an optional set of nodes;
- computer code for defining, by the processor, an allowable range for each attribute in the subgraph search template;
- computer code for defining, by the processor, a preferred range for each attribute in the subgraph search template;
- computer code for executing, by the processor, a search of the geospatial-temporal semantic graph using the allowable range;
- computer code for comparing, by the processor, for each match, attribute values of each match element against the preferred range and the allowable range to compute a corresponding distance of each match attribute from the subgraph search template;
- computer code for converting, by the processor, the corresponding distance to a corresponding required quality score for each match element in the required set of nodes, wherein each corresponding required quality score comprises a corresponding first distance-based quality score;
- computer code for converting, by the processor, the corresponding distance to a corresponding optional quality score for each match element in the optional set of nodes, wherein each corresponding optional quality score comprises a corresponding second distance-based quality score;
- computer code for determining, by the processor, a corresponding overall match quality score for each match from the subgraph search template, wherein determining the corresponding overall match qualities is performed using the corresponding required quality score and the corresponding optional quality score;
- computer code for sorting, by the processor, all corresponding overall quality scores into an ordered list;
- and
- computer code for displaying, on a display device, the ordered list.