发明名称 System and method for dynamic hierarchical data parsing
摘要 A method is provided for parsing a configuration file. The method comprises determining whether an element in a sequence of configuration file elements is a type of element expected at the configuration file element's position in the sequence; when the configuration file element is not the expected type, consulting a set of rules for handling unexpected configuration file elements; and following a rule in the rule set. The rules cause different actions to be taken at a given position in the configuration file at different times of executing the method for parsing. One of the rules specifies that subsequent configuration file elements in the sequence are to be analyzed and, if at least one subsequent configuration file element is an expected type, the at least one subsequent configuration file element is to be considered valid and is to be parsed in a manner appropriate for the subsequent configuration file element.
申请公布号 US8990148(B1) 申请公布日期 2015.03.24
申请号 US201313736722 申请日期 2013.01.08
申请人 Sprint Communications Company L.P. 发明人 Ziegler Bruce Edward;Bryan William Peter
分类号 G06F17/30;H04W28/04 主分类号 G06F17/30
代理机构 代理人
主权项 1. A method for dynamic parsing of a configuration file of a telecommunication system, comprising: receiving, on a dynamic parser stored in a non-transitory memory of a server of the telecommunication system and executed by a processor of the server, from a communicatively coupled switch, data of the configuration file that is generated on the switch of a telecommunications network, wherein the data of the configuration file comprises a plurality of configuration file elements that form a sequence of configuration file elements, each of the configuration file elements having a type and a position in the sequence, and wherein the data of the configuration file comprises errors generated on the switch associated with configuration file elements that include at least one of a character, a delimiter, a selector, and a vector; analyzing, by the dynamic parser, the type of configuration file element at a corresponding position in the sequence of configuration file elements; determining, by the dynamic parser, whether the configuration file element in the sequence of configuration file elements is an expected type of configuration file element at the corresponding position in the sequence of configuration file elements; responsive to a determination that the configuration file element is not the expected type, selecting, by the dynamic parser, a rule of a set of rules based on the analyzed type of configuration file element, the expected type of configuration file element, and consulting the set of rules that at least handle configuration file elements that are not the expected type; and applying, by the dynamic parser, the selected rule of the set of rules to the configuration file element that is not the expected type, wherein applying the selected rule of the set of rules causes dynamic parsing to continue for at least one subsequent configuration file element in the sequence that is in a position subsequent to the configuration file element which is not the expected type; dynamically parsing, by the dynamic parser, the configuration file element that is not the expected type by at least one of replacing the configuration file element that is not the expected type, creating at least one column associated with a vector in a database element file, and validating the configuration file element that is not the expected type at the position in the sequence; and writing, by the dynamic parser, the data of the configuration file that is dynamically parsed into a communicatively coupled database.
地址 Overland Park KS US