CN107342881B - Northbound interface data processing method and device for operation and maintenance center - Google Patents

Northbound interface data processing method and device for operation and maintenance center Download PDF

Info

Publication number
CN107342881B
CN107342881B CN201610284660.6A CN201610284660A CN107342881B CN 107342881 B CN107342881 B CN 107342881B CN 201610284660 A CN201610284660 A CN 201610284660A CN 107342881 B CN107342881 B CN 107342881B
Authority
CN
China
Prior art keywords
label
output
configuration
inquired
connection information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610284660.6A
Other languages
Chinese (zh)
Other versions
CN107342881A (en
Inventor
赵晓丹
邱建波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Sichuan Co Ltd
Original Assignee
China Mobile Group Sichuan Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Group Sichuan Co Ltd filed Critical China Mobile Group Sichuan Co Ltd
Priority to CN201610284660.6A priority Critical patent/CN107342881B/en
Publication of CN107342881A publication Critical patent/CN107342881A/en
Application granted granted Critical
Publication of CN107342881B publication Critical patent/CN107342881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]

Abstract

The invention discloses a method and a device for processing OMC northbound interface data, wherein the method comprises the following steps: reading an XML file, and loading configuration according to the type of the XML file, wherein the configuration at least comprises the following steps: configuring tag types and outputting; performing mode matching on the tags in the XML file according to the tag type configuration; and outputting a mode matching result according to the output configuration.

Description

Northbound interface data processing method and device for operation and maintenance center
Technical Field
The invention relates to an Operation and Maintenance Center (OMC) northbound interface data processing technology in the field of comprehensive resource management, in particular to an OMC northbound interface data processing method and device.
Background
The Northbound Interface (Northbound Interface) is an Interface for a manufacturer or an operator to access and manage a network, i.e., an Interface provided upward. Various application systems are developed by using interface programming in the network to manage the managed objects by collecting and analyzing various data generated by the managed objects in the running process. Management in a telecommunication Network and a Next Generation Network (NGN) is implemented hierarchically, and as shown in fig. 1, such Network management can be divided into three layers: the system comprises a data application layer, a data processing layer and a data acquisition layer. The data interaction between the data application layer and the data processing layer defines an interface, and the interface is called a northbound interface because the data application layer is positioned above the data processing layer.
The north interface file is generally an Extensible Markup Language (XML) file, and Java or Perl Java may be used to parse the XML file, where currently, the commonly used XML file parser mainly includes: XML Simple application Programming interface (SAX, Simple API for XML), Document Object Model (DOM, Document Object Model).
The advantages of SAX processing are very similar to those of streaming media. The analysis can start immediately instead of waiting for all data to be processed. Furthermore, since the application only checks the data when reading it, there is no need to store the data in memory, which is a great advantage for large documents.
DOM and generalized tree-based processing have several advantages. Since the tree is persistent in memory, it can be modified so that the application can make changes to the data and structure. It can also navigate up and down the tree at any time, rather than being a one-time process like SAX. The DOM is also much simpler to use. On the other hand, constructing such a tree in memory involves a large amount of overhead.
JDOM is intended to be a Java specific document model that simplifies interaction with XML and is faster than DOM implementations. JDOM has been greatly expanded and promoted by the first Java-specific model. DOM4J is an intelligent branch of JDOM that incorporates many functions beyond basic XML document representation, including integrated XPath support, XML, Schema support, and event-based processing for large documents or streamed documents.
Since Java operation has a limit to file size, Java processing is laborious for transmission files often exceeding several G. Files are commonly processed by Perl, which is relatively easy to migrate and develop.
The Perl parsing XML file is divided into packet parsing and pattern matching parsing.
Packet parsing: xml:: Parser. xml:: Parser series initial Perl Parser xml:: Parser:: Expat, written by LarryWall several years ago and kept running by ClarkCooper. The interface as ExpatXMLparser is written in the C language by james clark and has been adopted by some scripting languages. The Expat in Perl parsing XML file is event based, meaning that a specific condition triggers a processing function. For example, a start or end marker will trigger the appropriate user-defined subroutine. And (5) constructing a Parser module for common application on the basis of the function of the Expat. Note that Expat does not validate XML before parsing and fails when an error is encountered. These limitations make the XML Parser module very fast.
Pattern matching and analyzing: and performing pattern matching labeling by using a regular expression so as to obtain labels and values.
Theoretically, packet parsing is effective, but because the network manager has the manually input Chinese name, the Chinese name of the network element is messy due to manual operation. When encountering code messiness, the Expat fails, thereby causing failure in acquisition and resolution.
In the traditional analysis and summarization, each manufacturer independently updates and summarizes data association because of field difference. The prior art has the following defects:
analyzing the frequent interruption: because packet analysis is adopted, when network management has messy codes, network management manufacturers are many, data is not standard, and formats are difficult to unify, analysis is frequently interrupted, so that data storage and analysis cannot normally work.
Chinese disappears without cause: if Chinese characters or partial full-angle characters exist in the analysis, the characters disappear or cannot be processed without any reason in the prior art, and the data storage is also influenced.
The data value length is not sufficient: the use of the sequence generation ID makes the numerical length insufficient as resources are changed and the mobile network size is enlarged.
Associated resource refresh is slow: because of the need to convert various attributions into IDs, database resources, particularly relevance data, are consumed greatly, and processing time is extremely slow.
The summary takes too long: because a part of network management data tables are very large, for example, transmission time slots are not split, corresponding time slots can not be found frequently in the process of channel route serial communication. Leading to channel route collusion failures, which are time consuming to summarize.
In the prior art, due to the defects, the acquisition quality and the comparison condition of the comprehensive resource system are directly influenced, and the perception for maintainers and interface manufacturers is extremely poor. In the daily comprehensive resource management process, user perception is influenced to a certain degree, smoothness of a network access flow acquisition and comparison link and success rate of circuit scheduling channel communication are influenced due to interruption of data acquisition and analysis, a flow needs to wait for data acquisition, and the confidence of a user on a system is influenced due to overlong data gathering time. Influences the stability and timeliness of the external interface and influences the timeliness and accuracy of data acquisition, and becomes a great problem which puzzles resource management and data application.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a method and an apparatus for processing OMC northbound interface data.
The OMC northbound interface data processing method provided by the embodiment of the invention comprises the following steps:
reading an XML file, and loading configuration according to the type of the XML file, wherein the configuration at least comprises the following steps: configuring tag types and outputting;
performing mode matching on the tags in the XML file according to the tag type configuration;
and outputting a mode matching result according to the output configuration.
In the embodiment of the present invention, the method further includes:
determining the type of a label aiming at the label matched with the mode, and processing the label according to the type of the label;
and storing the processed result into a hash array indexed by field for standardized output.
The method in the embodiment of the invention further comprises the following steps:
for a tag of a pattern match, loading object attributes of the tag when the tag exists in a tag rule, the object attributes including: analyzing rules and prefixes;
determining the value of the label according to the analysis rule, and determining the label according to whether the label is split or not and whether the prefix is added;
and storing the label as a key (key) and the value of the label as a value (value) into a hash array.
In the embodiment of the present invention, the outputting the pattern matching result according to the output configuration includes:
according to the output configuration, obtaining the object attribute of the output field corresponding to the pattern matching result, wherein the object attribute comprises: field type, field source, processing function;
and outputting the object attributes of the output fields corresponding to the pattern matching result in sequence.
In the embodiment of the present invention, the method further includes:
in the process of pattern matching, the result is standardized through the processing function of the output field, and the correlation character string is obtained by encrypting the standard version number in the northbound interface object.
In the embodiment of the present invention, the method further includes:
acquiring channel information;
starting from the first end of the channel, judging whether high-order and low-order conversion is needed;
inquiring cross connection information, wherein the cross connection information is inquired by a low order firstly, and the cross connection information is inquired by a high order when the cross connection information is not inquired;
when the cross connection information is inquired, cross terminal information is obtained;
when the cross terminal is not matched with the second terminal, inquiring topological information;
and when the topology information is inquired, continuously judging whether high-low order conversion is needed or not, and continuously executing inquiry of the cross connection information.
The OMC northbound interface data processing device provided by the embodiment of the invention comprises:
the reading unit is used for reading the XML file;
a loading unit, configured to load a configuration according to the type of the XML file, where the configuration at least includes: configuring tag types and outputting;
the mode matching unit is used for carrying out mode matching on the tags in the XML file according to the tag type configuration;
and the output unit is used for outputting the mode matching result according to the output configuration.
In the embodiment of the present invention, the apparatus further includes:
the processing unit is used for determining the type of the label aiming at the label matched with the mode and processing the label according to the type of the label;
and the storage unit is used for storing the processed result into the hash array indexed according to the field so as to carry out standardized output.
In this embodiment of the present invention, the loading unit is further configured to, for a tag matched with a pattern, load an object attribute of the tag when the tag exists in a tag rule, where the object attribute includes: analyzing rules and prefixes;
the device further comprises: the determining unit is used for determining the value of the label according to the analysis rule and determining the label according to whether the label is split or added with the prefix;
and the storage unit is used for storing the label as a key and the value of the label as a value into the hash array.
In this embodiment of the present invention, the output unit is further configured to obtain an object attribute of an output field corresponding to the pattern matching result according to the output configuration, where the object attribute includes: field type, field source, processing function; and outputting the object attributes of the output fields corresponding to the pattern matching result in sequence.
In the embodiment of the present invention, the apparatus further includes: and the standard versioning and encryption unit is used for standardizing the result through the processing function of the output field in the mode matching process and encrypting the standard version name in the northbound interface object to obtain the associated character string.
In the embodiment of the present invention, the apparatus further includes: the serial unit is used for acquiring channel information; starting from the first end of the channel, judging whether high-order and low-order conversion is needed; inquiring cross connection information, wherein the cross connection information is inquired by a low order firstly, and the cross connection information is inquired by a high order when the cross connection information is not inquired; when the cross connection information is inquired, cross terminal information is obtained; when the cross terminal is not matched with the second terminal, inquiring topological information; and when the topology information is inquired, continuously judging whether high-low order conversion is needed or not, and continuously executing inquiry of the cross connection information.
In the technical solution of the embodiment of the present invention, an XML file is read, and a configuration is loaded according to the type of the XML file, where the configuration at least includes: configuring tag types and outputting; performing mode matching on the tags in the XML file according to the tag type configuration; and outputting a mode matching result according to the output configuration. The embodiment of the invention at least has the following advantages: 1. reliability: file analysis interruption or character disappearance cannot occur due to network management Chinese messy codes or special Chinese characters; the progress of the network access process and the timeliness of data acquisition are improved, and the user perception is greatly improved. And complaints of interface manufacturers are reduced, and the work of supplementing interface data is reduced. 2. Resolving ID size restrictions and skipping a large number of association summaries: because various resource NAMEs (NAME) of the network manager are unique, the encrypted characters are used as ID, the ID size limitation is solved, the summary association refreshing is also solved, the summary process is accelerated, and the summary script is unified. Can meet the requirement of city data acquisition in time. 3. No dependency: the channel serial connection does not need time slots to exist certainly any more, and the mutual conversion from high order to low order is automatically carried out, so that the serial connection speed is accelerated. The problem that the earth market personnel need to wait for data acquisition because the time slot is not scattered in the circuit process is solved. The efficiency of circuit opening and the confidence of city personnel in the process of walking are improved. 4. And (3) timeliness: the method provides favorable technical innovation for a group system data acquisition layer, greatly improves the network access acquisition efficiency of resources, and solves the problem of analysis interruption caused by data problems, thereby delaying the data acquisition. Due to the fact that the collection analysis efficiency is improved, the collection normalization and unified processing are achieved, the overall collection degree is improved, and increment collection and collection can be flexibly conducted.
Drawings
FIG. 1 is a three-layer architecture diagram of network management;
FIG. 2 is a flow chart of an OMC northbound interface data processing method according to an embodiment of the present invention;
FIG. 3 is a label description diagram of an embodiment of the invention;
FIG. 4 is an illustration of an output field according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating a collusion according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an OMC northbound interface data processing apparatus according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
The embodiment of the invention provides a method for processing OMC northbound interface data, which is a new analysis, refreshing and summarizing scheme and solves the problems of the prior art, such as analysis interruption, Chinese messy code and loss, slow correlation refreshing and long summarizing time.
According to the technical scheme of the embodiment of the invention, the tag is found according to a mode matching mode through object processing of the tag, so that the problems of messy codes and special characters are solved, then the object standard is output, and the associated resources are obtained through encrypting a Message Digest Algorithm (MD) 5 of the associated resource character string, so that all manufacturers collect and normalize the information, and the collection speed is greatly increased and the problem of overlarge ID is solved. And according to the particularity of the time slot character strings, the low-order character strings comprise the high-order character strings, and topology string communication is performed by automatically performing high-order and low-order conversion, so that the trouble of overlarge time slot management is solved, and the success rate and the efficiency of channel string communication are improved.
Fig. 2 is a schematic flow diagram of an OMC northbound interface data processing method according to an embodiment of the present invention, and as shown in fig. 2, the OMC northbound interface data processing method includes the following steps:
step 201: reading an XML file, and loading configuration according to the type of the XML file, wherein the configuration at least comprises the following steps: tag type configuration, output configuration.
In the embodiment of the invention, the XML file is uniformly analyzed in a tag object mode, so that the problems of messy code interruption and no-cause disappearance of Chinese characters are solved.
In the embodiment of the invention, because the integrity of the XML node needs to be verified by packet parsing, the XML node cannot be checked when network management messy codes exist, and parsing is interrupted, and in addition, because packet parsing has a plurality of reserved characters, when 2 half Chinese characters are exactly the reserved characters, part of Chinese characters disappear, so that the embodiment of the invention parses the XML file through mode matching.
Before analyzing the XML file through pattern matching, the XML file needs to be read firstly; and then objectifying the tag in the XML file, namely loading configuration according to the type of the XML file, wherein the configuration at least comprises the following steps: tag type configuration, output configuration.
Step 202: and performing mode matching on the tags in the XML file according to the tag type configuration.
In the embodiment of the invention, the XML file is processed line by line in a mode of pattern matching, the integrity check is skipped, and only the label needs to be subjected to pattern matching, so that the problems of interruption and disappearance of the Chinese are solved.
In the embodiment of the invention, the XML file is loaded first, and the configuration is loaded according to the type of the XML file. The description of the tags in the XML file can refer to fig. 3, and the meaning of the tags is described as follows:
Figure BDA0000980737170000081
in the definition of the above A tags, the tags in each < > are defined, and the tags which need to be split and prefixed are also defined.
Through the label description, the labels in the XML file are subjected to objectification classification processing, the type of the matched labels is judged firstly and then the matched labels are processed, and the processed results are all stored in a hash array indexed according to fields to prepare for standardized output.
It can be seen that, for a tag with a pattern matching, when the tag exists in a tag rule, an object attribute of the tag is loaded, where the object attribute includes: analyzing rules and prefixes;
determining the value of the label according to the analysis rule, and determining the label according to whether the label is split or not and whether the prefix is added;
and taking the label as a key and the value of the label as a value, and storing the value into a hash array.
Step 203: and outputting a mode matching result according to the output configuration.
In the embodiment of the invention, in the process of outputting data, a warehousing script is generated by loading output field sequencing, and output field attributes are loaded to explain the field source. Referring to fig. 4, the description of the related field processing is as follows: "field" ═ type, "field source", "physical function" ];
according to the output configuration, obtaining the object attribute of the output field corresponding to the pattern matching result, wherein the object attribute comprises: field type, field source, processing function;
and outputting the object attributes of the output fields corresponding to the pattern matching result in sequence.
In the embodiment of the invention, in the analysis process, whether a record is ended or not is judged according to whether a data block (datablock) is Cross Connect or not. If one datablock is finished, acquiring corresponding object attributes of the output field according to the configuration, wherein the method comprises the following steps: field type, field source, processing function. And writing the converted data into a file according to the output sequence.
In the embodiment of the invention, all analysis can be performed by only performing one label description and one output description through objectification processing on each output field. And the data analysis of the northbound interface of all factories is supported.
In the embodiment of the invention, in the mode matching process, the result is standardized by the processing function of the output field, and the associated character string is obtained by encrypting the standard version name in the northbound interface object. Specifically, in the pattern matching process, the output field is subjected to objectification processing, the content is standardized through a related processing function, and the standard version name in the northbound interface object is subjected to MD5 encryption to obtain the associated character string, so that the problems of overlarge ID and slow aggregation are solved, and the attribution character string is subjected to MD5 encryption: (EMS & ltZTE/1; ManagedElement & lt 61306134 (P); PTP & ltrack & gt 0/shelf & lt1/slot & lt13 & gt
port 101) gets the required association string.
The embodiment of the invention unifies the output fields of various manufacturers by formatting the data fields; namely, the same type of resources of each manufacturer are uniformly output, and the summary scripts are unified. The association relation is obtained in the analysis process, and the summarizing process is greatly accelerated.
In addition, the embodiment of the invention directly reserves the original time slot character string in the analysis process, carries out the high-order time slot and the low-order time slot in the serial communication process, and judges whether the high order is converted into the low order or the low order is converted into the high order in the serial communication process. The serial communication does not depend on a time slot table, the speed of the serial communication is accelerated, and the main flow of the serial communication comprises the following steps:
acquiring channel information;
starting from the first end of the channel, judging whether high-order and low-order conversion is needed;
inquiring cross connection information, wherein the cross connection information is inquired by a low order firstly, and the cross connection information is inquired by a high order when the cross connection information is not inquired;
when the cross connection information is inquired, cross terminal information is obtained;
when the cross terminal is not matched with the second terminal, inquiring topological information;
and when the topology information is inquired, continuously judging whether high-low order conversion is needed or not, and continuously executing inquiry of the cross connection information.
In the embodiment of the invention, the label-oriented mode is uniformly analyzed, so that the problems of messy code interruption and no-reason disappearance of Chinese characters are solved. In the process of pattern matching analysis, output fields are processed in an objectification mode, contents are standardized and versioned through related processing functions, and the associated character strings are obtained through MD5 encryption of standard version names in the northbound interface objects. In the analysis process, an original time slot character string is directly reserved, in the serial communication process, a high-order time slot and a low-order time slot are carried out, and in the serial communication process, whether the high-order is converted into the low-order or whether the low-order is converted into the high-order is judged. The collusion does not depend on a time slot table, and the collusion speed is accelerated.
Fig. 5 is a schematic flow chart of collusion according to an embodiment of the present invention, and as shown in fig. 5, the flow chart includes:
501: and acquiring channel information.
Here, the channel signal includes: the system comprises an A network element, an A port, an A time slot, a Z network element, a Z port and a Z time slot.
502: and (4) taking information of the A terminal.
503: it is determined whether high-order and low-order conversion is required.
504: cross-connect information is queried.
Here, the cross-connect information is queried with a lower level, the cross-connect information is queried with a higher level instead of the cross-connect information, if the cross-connect information exists, the step 505 is continued, and if the cross-connect information does not exist, the flow is exited.
505: and acquiring cross terminal information.
Here, if the cross end information does not match the Z end, the process continues to step 506, and if the cross end information matches the Z end, the collusion successfully exits the flow.
506: and inquiring topological information.
Here, if the topology information is queried, the process proceeds to step 507, and if the topology information is not queried, the process exits.
507: a determination is made as to whether high-low order conversion is required and step 504 is performed.
Fig. 6 is a schematic structural composition diagram of an OMC northbound interface data processing apparatus according to an embodiment of the present invention, and as shown in fig. 6, the OMC northbound interface data processing apparatus includes:
a reading unit 61 for reading an XML file;
a loading unit 62, configured to load a configuration according to the type of the XML file, where the configuration at least includes: configuring tag types and outputting;
a pattern matching unit 63, configured to perform pattern matching on the tag in the XML file according to the tag type configuration;
and the output unit 64 is used for outputting the mode matching result according to the output configuration.
The device further comprises:
a processing unit 65, configured to determine, for a tag with a matched pattern, a type of the tag, and process the tag according to the type of the tag;
and the storage unit 66 is used for storing the processed result into the hash array indexed by the field so as to perform standardized output.
The loading unit 62 is further configured to, for a tag of the pattern matching, load an object attribute of the tag when the tag exists in the tag rule, where the object attribute includes: analyzing rules and prefixes;
the device further comprises: a determining unit 67, configured to determine a value of a tag according to the parsing rule, and determine the tag according to whether to split and add a prefix;
and the storage unit 66 is used for storing the label as a key and the value of the label as a value into the hash array.
The output unit 64 is further configured to obtain an object attribute of an output field corresponding to the pattern matching result according to the output configuration, where the object attribute includes: field type, field source, processing function; and outputting the object attributes of the output fields corresponding to the pattern matching result in sequence.
The device further comprises: and the standard version and encryption unit 68 is used for standardizing the result through the processing function of the output field in the mode matching process, and obtaining the associated character string by encrypting the standard version number in the northbound interface object.
The device further comprises: a collusion unit 69 for acquiring channel information; starting from the first end of the channel, judging whether high-order and low-order conversion is needed; inquiring cross connection information, wherein the cross connection information is inquired by a low order firstly, and the cross connection information is inquired by a high order when the cross connection information is not inquired; when the cross connection information is inquired, cross terminal information is obtained; when the cross terminal is not matched with the second terminal, inquiring topological information; and when the topology information is inquired, continuously judging whether high-low order conversion is needed or not, and continuously executing inquiry of the cross connection information.
Those skilled in the art will understand that the implementation functions of each unit in the OMC northbound interface data processing apparatus shown in fig. 6 can be understood by referring to the related description of the OMC northbound interface data processing method. The functions of the units in the OMC northbound interface data processing apparatus shown in fig. 6 may be implemented by a program running on a processor, or may be implemented by specific logic circuits.
The technical schemes described in the embodiments of the present invention can be combined arbitrarily without conflict.
In the embodiments provided in the present invention, it should be understood that the disclosed method and intelligent device may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one second processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.

Claims (8)

1. An operation maintenance center OMC northbound interface data processing method, characterized by comprising:
reading an extensible markup language (XML) file, and loading configuration according to the type of the XML file, wherein the configuration at least comprises the following steps: configuring tag types and outputting;
performing mode matching on the tags in the XML file according to the tag type configuration; when the label exists in the label rule, loading the object attribute of the label, wherein the object attribute comprises: analyzing rules and prefixes; determining the value of the label according to the analysis rule, and determining the label according to whether the label is split or not and whether the prefix is added; taking the label as a key and taking the value of the label as a value, and storing the value into a hash array;
and outputting a mode matching result according to the output configuration.
2. The method of claim 1, wherein outputting the result of the pattern matching according to the output configuration comprises:
according to the output configuration, obtaining the object attribute of the output field corresponding to the pattern matching result, wherein the object attribute comprises: field type, field source, processing function;
and outputting the object attributes of the output fields corresponding to the pattern matching result in sequence.
3. The method of claim 2, wherein the method further comprises:
in the process of pattern matching, the result is standardized through the processing function of the output field, and the correlation character string is obtained by encrypting the standard version number in the northbound interface object.
4. The method of claim 1, wherein the method further comprises:
acquiring channel information;
starting from the first end of the channel, judging whether high-order and low-order conversion is needed;
inquiring cross connection information, wherein the cross connection information is inquired by a low order firstly, and the cross connection information is inquired by a high order when the cross connection information is not inquired;
when the cross connection information is inquired, cross terminal information is obtained;
when the cross terminal is not matched with the second terminal, inquiring topological information;
and when the topology information is inquired, continuously judging whether high-low order conversion is needed or not, and continuously executing inquiry of the cross connection information.
5. An Operation and Maintenance Center (OMC) northbound interface data processing apparatus, comprising:
the reading unit is used for reading the XML file;
a loading unit, configured to load a configuration according to the type of the XML file, where the configuration at least includes: configuring tag types and outputting;
the mode matching unit is used for carrying out mode matching on the tags in the XML file according to the tag type configuration;
the loading unit is further configured to, for a tag of the pattern matching, load an object attribute of the tag when the tag exists in a tag rule, where the object attribute includes: analyzing rules and prefixes;
the determining unit is used for determining the value of the label according to the analysis rule and determining the label according to whether the label is split or added with the prefix;
the storage unit is used for storing the label as a key and the value of the label as a value into a hash array;
and the output unit is used for outputting the mode matching result according to the output configuration.
6. The operation and maintenance center OMC northbound interface data processing apparatus of claim 5,
the output unit is further configured to obtain an object attribute of an output field corresponding to a pattern matching result according to the output configuration, where the object attribute includes: field type, field source, processing function; and outputting the object attributes of the output fields corresponding to the pattern matching result in sequence.
7. The operation and maintenance center, OMC, northbound interface data processing apparatus of claim 6, further comprising: and the standard versioning and encryption unit is used for standardizing the result through the processing function of the output field in the mode matching process and encrypting the standard version name in the northbound interface object to obtain the associated character string.
8. The operation and maintenance center, OMC, northbound interface data processing apparatus of claim 5, further comprising: the serial unit is used for acquiring channel information; starting from the first end of the channel, judging whether high-order and low-order conversion is needed; inquiring cross connection information, wherein the cross connection information is inquired by a low order firstly, and the cross connection information is inquired by a high order when the cross connection information is not inquired; when the cross connection information is inquired, cross terminal information is obtained; when the cross terminal is not matched with the second terminal, inquiring topological information; and when the topology information is inquired, continuously judging whether high-low order conversion is needed or not, and continuously executing inquiry of the cross connection information.
CN201610284660.6A 2016-05-03 2016-05-03 Northbound interface data processing method and device for operation and maintenance center Active CN107342881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610284660.6A CN107342881B (en) 2016-05-03 2016-05-03 Northbound interface data processing method and device for operation and maintenance center

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610284660.6A CN107342881B (en) 2016-05-03 2016-05-03 Northbound interface data processing method and device for operation and maintenance center

Publications (2)

Publication Number Publication Date
CN107342881A CN107342881A (en) 2017-11-10
CN107342881B true CN107342881B (en) 2021-03-19

Family

ID=60221746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610284660.6A Active CN107342881B (en) 2016-05-03 2016-05-03 Northbound interface data processing method and device for operation and maintenance center

Country Status (1)

Country Link
CN (1) CN107342881B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487566B1 (en) * 1998-10-05 2002-11-26 International Business Machines Corporation Transforming documents using pattern matching and a replacement language
CN101055578A (en) * 2006-04-12 2007-10-17 龙搜(北京)科技有限公司 File content dredger based on rule
CN101221556A (en) * 2008-02-01 2008-07-16 中国建设银行股份有限公司 Method and device for XML document analysis
CN101504654A (en) * 2009-03-17 2009-08-12 东南大学 Method for implementing automatic database schema matching
CN102760173A (en) * 2012-07-02 2012-10-31 河海大学 Bottom-up XML (eXtensible Markup Language) twig pattern matching method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050108630A1 (en) * 2003-11-19 2005-05-19 Wasson Mark D. Extraction of facts from text

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6487566B1 (en) * 1998-10-05 2002-11-26 International Business Machines Corporation Transforming documents using pattern matching and a replacement language
CN101055578A (en) * 2006-04-12 2007-10-17 龙搜(北京)科技有限公司 File content dredger based on rule
CN101221556A (en) * 2008-02-01 2008-07-16 中国建设银行股份有限公司 Method and device for XML document analysis
CN101504654A (en) * 2009-03-17 2009-08-12 东南大学 Method for implementing automatic database schema matching
CN102760173A (en) * 2012-07-02 2012-10-31 河海大学 Bottom-up XML (eXtensible Markup Language) twig pattern matching method

Also Published As

Publication number Publication date
CN107342881A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
US11030243B2 (en) Structure based storage, query, update and transfer of tree-based documents
US9060007B2 (en) System and methods for facilitating the synchronization of data
US7536711B2 (en) Structured-document processing
US9626368B2 (en) Document merge based on knowledge of document schema
US20020002567A1 (en) Method and system for managing documents
US9361398B1 (en) Maintaining a relational database and its schema in response to a stream of XML messages based on one or more arbitrary and evolving XML schemas
US8145674B2 (en) Structure based storage, query, update and transfer of tree-based documents
CN1526104B (en) Parsing structured data
US7457812B2 (en) System and method for managing structured document
CN112949276A (en) Report generation method and device, electronic equipment and storage medium
CN111338637A (en) Code generation method and device
CN109460220A (en) The predefined code generating method of message, device, electronic equipment and storage medium
CN108664546B (en) XML data structure conversion method and device
CN114168149A (en) Data conversion method and device
CN108694172B (en) Information output method and device
CN109947739B (en) Data source management method and device
CN107342881B (en) Northbound interface data processing method and device for operation and maintenance center
CN104717082A (en) Service model adaptation method and system
CN115277402A (en) Method and system for facilitating automatic annotation and dynamic display of switch configurations
KR20010055959A (en) Storing and recovering apparatus and method of sgml/xml entities for information reuse in document management system
US20040015780A1 (en) Position-independent access to data elements in an electronic document
CN113608903A (en) Fault management method based on XML language
CN112752165A (en) Subtitle processing method, subtitle processing device, server and computer-readable storage medium
CN108334560B (en) Information acquisition method and related equipment
CN117435771A (en) Method, device, equipment and storage medium for analyzing file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant