CN104750468A - Server side topological data conversion method and device - Google Patents

Server side topological data conversion method and device Download PDF

Info

Publication number
CN104750468A
CN104750468A CN201310740968.3A CN201310740968A CN104750468A CN 104750468 A CN104750468 A CN 104750468A CN 201310740968 A CN201310740968 A CN 201310740968A CN 104750468 A CN104750468 A CN 104750468A
Authority
CN
China
Prior art keywords
data
topological
types
mapping ruler
type
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.)
Granted
Application number
CN201310740968.3A
Other languages
Chinese (zh)
Other versions
CN104750468B (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.)
Beijing BOCO Inter-Telecom Technology Co., Ltd.
Original Assignee
BEIJING BOCO INTER-TELECOM TECHNOLOGY Co Ltd
Bright Oceans Inter Telecom 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 BEIJING BOCO INTER-TELECOM TECHNOLOGY Co Ltd, Bright Oceans Inter Telecom Co Ltd filed Critical BEIJING BOCO INTER-TELECOM TECHNOLOGY Co Ltd
Priority to CN201310740968.3A priority Critical patent/CN104750468B/en
Publication of CN104750468A publication Critical patent/CN104750468A/en
Application granted granted Critical
Publication of CN104750468B publication Critical patent/CN104750468B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a server side topological data conversion method which includes preliminarily defining a topological data conversion model, including defining a null topological data set and various data conversion methods, and setting the mapping rule of the various topological data; acquiring the original topological data according to the practical topological service logic and packaging and loading the original topological data into a topological data set; assigning the topological data set to the empty topological data set in the conversion model and acquiring the data conversion method identical to the type of a foreground in the conversion model; conducting data conversion for topological data in the topological data set of the conversion model according to the acquired data conversion method identical to the type of the foreground and the topological data mapping rule of the type. The server side topological data conversion method is simple and convenient to operate and avoids repeated data conversion development aiming at different types of foregrounds. The invention further discloses a server side topological data conversion device.

Description

A kind of service end topological data conversion method and conversion equipment
Technical field
Data processing field of the present invention, relates to a kind of switch technology of service end topological data particularly.
Background technology
Along with the development of Topology Foreground technology, the mode that Topology Foreground realizes has been not limited to use JAVA, and FLEX topology is more and more universal, within the foreseeable several years, HTML5 topology due to provide graphical rendering capability more fast and browser-cross, cross-platform on advantage, the main flow of exploitation topology will be become.
Topology Foreground implementation diversity, just requires that service end provides Topology Foreground operable data type.But current Topology service end data conversion only has man-to-man mode, and even client is JAVA, then use JAVA data transfer method, client is FLEX, then use the data transfer method of FLEX, service end cannot provide the topological data corresponding to its type to the foreground of different types of data, there is different Topology Foregrounds, just need again to obtain topology, carry out the exploitation of data conversion, owing to repeatedly again obtaining topology, the rear inaccurate situation of topological data of conversion is produced because original topology logic changes with regard to likely occurring, use to follow-up data and bring huge inconvenience, need to provide more human resources to the code development of data conversion, add cost of development, and inefficiency.For HTML5 topology, current service end cannot realize topological data conversion.
In order to both support to leave over the JAVA end of topological system and the data access of FLEX end, also the data access that following HTML5 holds will be supported, unified topological logic is used to provide corresponding topological data to dissimilar foreground, in the urgent need to a kind of topological data conversion regime of service end, adopt from adaptive mode, the topological data of different-format can be provided to foreground, meet telecommunication network operators presents trend expectation to following topology.
Summary of the invention
The invention provides a kind of service end topological data conversion method, the topological data conversion regime of one-to-many is provided, simultaneously to client for JAVA, FLEX, HTML5 provide the topological data corresponding to its type, reach the effect that a topological logic supports foreground all kinds application, reuse the ability of service end, and there is extremely strong extensibility, provide a kind of possibility for providing the client topological data service of other language.
A kind of service end topological data conversion method, it is characterized in that, described method comprises:
Pre-defined topological data transformation model, comprises the empty topological data set of definition and all types of data transfer device, arranges the mapping ruler of all types of topological data;
According to practical topology service logic, obtain original topology data and encapsulated and be loaded into topological data set;
Give the described empty topological data set in described transformation model by described topological data set assignment, in described transformation model, obtain the data transfer device consistent with foreground type;
According to consistent data conversion method, the type topological data mapping ruler of described acquisition and foreground type, data conversion is carried out to the topological data that described transformation model topological data is concentrated.
Detailed, all types of data transfer device of described definition is specially:
Define the data transformation interface of all types of data, the data transformation interface for described definition arranges the conversion method of each element in the type respectively;
Detailed, the described mapping ruler arranging all types of data is specially:
Define best property of attribute mapping rule interface, the object type mapping ruler interface of all types of data, the best property of attribute mapping rule of all types of data is set by instantiation best property of attribute mapping relational interface, the object type mapping ruler of all types of data is set by instance object Type mapping interface.
Detailed, described acquisition original topology data are also packaged into topological data diversity method and are:
According to described practical topology service logic query resource database, obtain each element information in described topological service logic and link information composition original topology data;
The data object package group composite shipment of described original topology data is entered topological data set.
Concrete, according to data transfer device, described the type topological data mapping ruler of described acquisition, the method that the described topological data being loaded into transformation model carries out data conversion is specially:
Call the data transformation interface corresponding to its type according to the data transfer device of described acquisition, and then obtain the conversion method of the type element;
Travel through the element of topological data set in described topological model, call the conversion method of described element and the topological data mapping ruler according to this element data type carries out data conversion to described element;
Topological data after described conversion is spliced into character string.
Preferred:
Described original topology data are converted to XML character string and JSON character string that JAVA foreground, FLEX foreground and HTML5 foreground can present topology.
The present invention also discloses a kind of service end topological data conversion equipment, and described device comprises:
Raw data obtains load units, for according to practical topology service logic, obtains original topology data and is encapsulated and be loaded into topological data set;
Model unit, for pre-defined memory topology Data Translation model, comprise the empty topological data set of definition and all types of data transfer device, arrange the mapping ruler of all types of data, the topological data set assignment of being loaded by described raw data acquiring unit is to described empty topological data set.Date Conversion Unit, for obtaining the data transfer device consistent with foreground type and described mapping ruler in the transformation model that defines at described model unit; According to consistent data conversion method, the type topological data mapping ruler of described acquisition and foreground type, data conversion is carried out to the topological data that described transformation model assignment topological data is concentrated.
Concrete, described model unit comprises further:
Data set module, for defining sky topological data set, the topological data set assignment of being loaded by described raw data acquiring unit is to described empty topological data set;
Data transfer device definition module, for defining the conversion method of all types of data;
Mapping ruler arranges module, for defining the mapping ruler interface of all types of data, is arranged the mapping ruler of all types of data by the mapping ruler interface of described all types of data;
Memory module, comprises sky topological data set for storing and defined data transfer device, arranges the transformation model of mapping ruler.
Concrete, described data transfer device definition module comprises further:
Data transformation interface definition module, for defining all types of data transformation interfaces corresponding to described all types of topological data conversion method;
Element conversion method arranges module, for arranging all types of element conversion methods corresponding with all types of data transformation interfaces that data transformation interface definition module defines.
Concrete, described mapping ruler arranges module and comprises further:
Best property of attribute mapping rule arranges module, for defining all types of best property of attribute mapping rule interface, arranges mapping ruler by described all types of best property of attribute mapping rule interface;
Object type mapping ruler arranges module, for defining all types of object type mapping ruler interface, arranges object type mapping ruler by described all types of object type mapping ruler interface.
Concrete, described raw data acquiring unit comprises further:
Data query acquisition module, for according to described practical topology service logic query resource database, obtains each element information in described topological service logic and link information composition original topology data;
Data encapsulation module, the data object package group composite shipment for the original topology data obtained by described data query acquisition module enters topological data set.
Concrete, described Date Conversion Unit comprises further:
Element conversion method acquisition module, for obtaining the data transfer device consistent with foreground type of described data transfer device definition module definition in transformation model, call the data transformation interface corresponding to its type according to the data transfer device of described acquisition, and then obtain the conversion method of the type element;
Mapping ruler acquisition module, arranges the mapping ruler of all types of data of module installation for obtaining described mapping ruler;
Modular converter, the each element conversion method of the type element for utilizing element conversion method acquisition module to obtain, according to all types of mapping rulers that described mapping ruler acquisition module obtains, data conversion is carried out to the element that the topological data of data set module in described transformation model assignment is concentrated.The transformation model of the present invention by pre-setting, define crossover tool class, further define the conversion method of each topology element in often kind of data type, by changing topology element according to the method for transformation defined inside the corresponding transformation model of data type, obtain XML character string or JSON character string, the foreground application being supplied to different types of data represents, adopt in this way, achieve the topological data that a service end provides numerous types of data, R&D costs and human resources are saved, and a service end carries out data conversion based on same topological logic, ensure that unicity and the accuracy of original topology logic, avoid and repeatedly obtain and the error using original topology logic to cause and inaccurate, improve the accuracy exporting data.
Accompanying drawing explanation
Fig. 1 is the embodiment of the present invention one one kinds of service end topological data conversion method process flow diagrams;
Fig. 2 is the method flow diagram that the embodiment of the present invention two defines transformation model;
Fig. 3 is the embodiment of the present invention two transformation model schematic diagram;
Fig. 4 is the embodiment of the present invention 31 kinds of service end topological data conversion method example flow chart;
Fig. 5 is the embodiment of the present invention 41 kinds of service end topological data conversion device structure schematic diagram;
Embodiment
Graphic and embodiment below will be coordinated to describe embodiments of the present invention in detail, by this to the present invention how application technology means solve technical matters and the implementation procedure reaching technology effect can fully understand and implement according to this.
Arrangement mode that is that topology service logic refers to physics between network members or logic, topological logic comprises the relation between each topology element and each element.By the topological service logic determined, by each element information in SQL query topological database acquisition topology and link information, these information combination are become original topology data, and original topology data can be saved to service end.
The topology that HTML5 foreground represents is JSON character string; The topology that JAVA and FLEX foreground represents is all character strings of XML format, when presenting topology, character string is deserialized as object (importing data).And provide the background system of these character strings, the character string needing to provide the program of a sets of data conversion topological logic data to be converted to foreground to present topology needs, to ensure correctly presenting of foreground topology.The target of therefore original topology data being carried out to data conversion is converted into XML character string or JSON character string by original topology data.
As shown in Figure 1, the embodiment of the present invention one discloses a kind of service end topological data conversion method, comprises the following steps:
Step S101: pre-defined topological data transformation model, comprises the empty topological data set of definition and all types of data transfer device, arrange the mapping ruler of all types of topological data.
Carrying out foreground that topological business datum represents modal is at present JAVA type foreground, FLEX type foreground and Html5 type foreground.The target of definition topological data transformation model is exactly according to topological data transformation model, original topology data is converted to the topological data that various types of foreground can use.
Empty topological data set in transformation model, is used for loading original topology data.
Define the conversion method of all types of topological data, comprise the data transformation interface defining all types of topological data, the data transformation interface for described definition arranges the conversion method of each element in the type respectively.Namely conversion method, the conversion method of FLEX type and the conversion method of Html5 type of JAVA type is defined respectively.Define all types of conversion method, need the data transformation interface first defining all types of topological data, namely define data transformation interface, the data transformation interface of FLEX type and the data transformation interface of Html5 type of JAVA type.And the conversion method of each element is set for the data transformation interface of every type, owing to including a lot of element in topological service logic, point, connection etc., need to arrange the conversion method that often kind of element converts JAVA, FLEX and Html5 to respectively.
Define best property of attribute mapping rule interface, the object type mapping ruler interface of all types of data, the best property of attribute mapping rule of all types of data is set by instantiation best property of attribute mapping relational interface, the object type mapping ruler of all types of data is set by instance object Type mapping interface.
Step S102: according to practical topology service logic, tissue obtains original topology data and is encapsulated and be loaded into topological data set.
Network topology refers to the physical layout of the interconnected various equipment of transmission medium, (namely really) of specific physics or (the namely virtual arrangement mode) of logic between the member referring to form network.Comprise the element such as Data data, Node point, Link link, Followers follower, the link of TwoLabelLink explanatory note, Group group, SubNetwork subnet.
According to described topological logic inquiry topological database, obtain each element information in described topological logic and link information composition original topology data.
Topology service logic, the i.e. layout relationship of equipment in network, as in telecommunication service, each BSC is that multiple BTS serves, and is the relation of one-to-many between its BSC and BTS, and its topological service logic is the corresponding multiple BTS of a BSC.
Each element in topology service logic has himself information, and these data are called as original topology data, original topology data encapsulation is loaded into topological data set, is become data object assignment to DATABOX (i.e. topological data set).
Its information of element comprises can id, title, type coding, attribute list, pattern list, client data list etc., but different elements can comprise different attribute lists, pattern list and client data list.Attribute list identifies the own service attribute of this element, the visual style attribute that this element of pattern List Identification is presenting, the attribute that this element of client data List Identification is associated with client.
As longitude and latitude, emissive power, manufacturer etc. can be comprised in an element B TS attribute list; Can comprise in pattern list: BTS plays up picture, font color etc.; Client data list can comprise BTS client display Name, whether show on the client, whether highlighted on the client.
As line element information can comprise id, title, this end points, to end points, type coding, also have attribute list, pattern list and client data list simultaneously.
Other elements in like manner in topological service logic also include above-mentioned information.
So-called topological data set is exactly the set of topological data.
Step S103: give the described empty topological data set in described transformation model by described topological data set assignment, obtains the data transfer device consistent with foreground type in described transformation model.
Step S104: according to consistent data conversion method, the type topological data mapping ruler of described acquisition and foreground type, carries out data conversion to the topological data that described transformation model topological data is concentrated.
The all elements that traversal transformation model topological data is concentrated, calls the conversion method of each element in described transformation model, converts described original topology data to corresponding xml character string or JSON character string.
Xml character string after conversion can be supplied to JAVA foreground and FLEX foreground, and JAVA foreground and FLEX foreground receive xml character string, can represent this topology according to character string.
JSON character string after conversion can be supplied to Html5 foreground, and Html5 foreground receives JSON character string, can represent this topology according to character string.
Because original topology data are loaded into topological data set according to topological service logic, therefore all data conversions are all carry out changing according to identical topological service logic, the topology finally represented for dissimilar foreground is on all four, namely the one-to-many conversion of topological data is achieved, in turn ensure that the correctness of topological data, avoid and again developed easily making a mistake and higher cost of development of the topological service logic that modular converter causes according to foreground type in the past.
In order to the define method of transformation model in more detailed explanation the present invention, provide embodiments of the invention two, as shown in Figure 2, model construction schematic diagram as shown in Figure 3 for method flow.
Step S201: define empty topological data set.As the Databox1 in Fig. 3.
Defining empty topological data set DataBox1, be used for loading the topological data set of original topology data encapsulation, carrying out data conversion to being loaded into the topological data that sky topological data concentrates.
Step S202: define all types of data transfer device.As the TransformHelper in Fig. 3.
TransformHelper can be the general designation of data transfer device, defines all types of data transfer device, and the data concentrated by topological data convert Html5, JAVA, FLEX all types of foregrounds identifiable design to and the data used.
Define all types of data transfer device to comprise the following steps:
Step S2021: the data transformation interface defining all types of data.As the IData in Fig. 3.
The translation interface of all types of data, changes the information such as attribute, pattern, client feature of topological data respectively.
To be converted to JSON character string, the data transformation interface of definition is respectively:
ToJSON (): void/* be converted to JSON*/
fromJSON():void
PropertysToJSON (): void/* attribute information be converted to JSON*/
StylesToJSON (): void/* style information be converted to JSON*/
ClientsToJSON (): void/* client data information be converted to JSON*/
For the conversion of JAVA, FLEX, similar to JSON, as shown in Figure 3.
Step S2022: the data transformation interface for described definition arranges the conversion method of each element in the type respectively.As shown in Figure 3.
Respectively conversion method is arranged to elements such as Data, Node, Link, Followers, TwoLabelLink, Group, SubNetwork.
Namely according to the method, each topology element is converted to XML and JSON character string for each topology element arranges conversion method, original topology element is the object type in JAVA language.According to each element conversion method arranged, corresponding XML and JSON character string can be converted to.
Step S203: the mapping ruler that all types of topological data is set.
The mapping ruler arranging all types of topological data comprises the following steps:
Step S2031: the best property of attribute mapping rule interface, the object type mapping ruler interface that define all types of data.
Best property of attribute mapping rule interface is as the PropertyGenerator interface in Fig. 3, and object type mapping ruler interface is as the ClassGenerator interface in Fig. 3.
Step S2032: by instantiation best property of attribute mapping rule interface and instance object Type mapping rule interface, set a property mapping ruler and object type mapping ruler.
Set a property mapping ruler, respectively pattern, client data, position etc. are comprised to the mapping that the conversion method of wherein different types of data carries out whole attribute, according to the best property of attribute mapping rule arranged, the object properties of each for topological data element are mapped as xml node and JSON node respectively.
HTML5 element property to be mapped as JSON node mapping rule as shown in table 1 below:
Table 1HTML5 element property is mapped as the mapping ruler of JSON
The JSON element property of HTML5 Object properties
Source fromNode
Target toNode
Position location
Flex and JAVA element property to be mapped as XML node mapping rule as shown in table 2 below:
Table 2Flex and JAVA element property is mapped as the mapping ruler of XML
The XML element property of Flex and JAVA Object properties
fromNode fromNode
toNode toNode
location location
Defining objects Type mapping rule, being the type indicating this element, is node, link etc., maps these object types.
HTML5 element object Type mapping is that the mapping ruler of JSON is as shown in table 3 below:
Table 3HTML5 element object Type mapping is the mapping ruler of JSON
The JSON element type of HTML5 Object type
ht.Node comm.Node
ht.Edge comm.Link
ht.Group comm.Group
ht.SubGraph comm.SubNetwork
Flex and JAVA element object Type mapping is that the mapping ruler of XML is as shown in table 4 below:
The mapping xml relation of table 4JAVA and Flex element object type
The XML element type of JAVA and Flex Object type
twaver.Node comm.Node
twaver.Link comm.Link
twaver.Group comm.Group
twaver.SubNetwork comm.SubNetwork
Transformation model is defined and assignment is completed to its sky topological data set, after being loaded with the original topology data set encapsulated through topological service logic, each conversion method in transformation model and mapping ruler can be used to change the topological data that transformation model topological data is concentrated.
During conversion, the topological data that traversal topological data is concentrated, to each element in topological data according to the corresponding conversion method in transformation model and the best property of attribute mapping rule pre-set and object type mapping ruler, converts this element to XML and JSON character string; After each element concentrated topological data successively completes conversion, successful for all conversions character string is spliced, form complete XML character string and JSON character string, achieve and simply identical original topology data are converted to and for the character string on multiple foreground, can avoid the defect causing needing Developing Data Transformation method again because of the difference of foreground type; The two kinds of character strings generated due to conversion carry out transforming based on identical topological service logic, therefore these two kinds of character string transformation results of all utilizations carry out the foreground that topology presents, capital represents identical topological service logic, do not have a bit difference, ensure that accuracy and the consistance of data at this.
Based on above-described embodiment, when defining transformation model, in order to the transfer process that further description is realized by method provided by the invention, provide embodiments of the invention three in conjunction with example, as shown in Figure 4, to how using transformation model to realize data conversion be described in detail.
Step S301: obtain original topology data according to topological service logic.
For the topological logic of BSC and BTS, give an actual example explanation, enumerates topological logic example and original topology data instance.
In telecommunication service, each BSC is that multiple BTS serves, and its relation is this relation of relation of one-to-many and topological service logic, saves the incidence relation of BSC and BTS in comprehensive money storehouse, can be obtained the BTS of its association by the ID of BSC.
Present BSC and BTS relation topology time, import the ID of BSC into, and by data base querying its association BTS gather (quantity is n).
BSC equipment is generated a node (Node), n BTS is generated n node (Node), the relation of BSC and BTS is generated n line (Link).
Above-mentioned node and line are referred to as original topology data, and node and line are respectively each element in original topology data.
Step S302: original topology data encapsulation is loaded into topological data set.
Topological data set is the set comprising original topology data, can add ingress or line in set.
After generating original topology data, be followed successively by Node and Link and the information such as the ID of node and line, title and type are set, and according to the type of node and line, the pattern needing picture and the line played up is set, and adds topological data set.
Step S303: by the topological data set assignment of described original topology data to the empty topological data set in transformation model.
Step S304: obtain the data transfer device consistent with foreground type in transformation model.
Foreground needs the JSON character string of HTML5, will send a client type parameter clientType be specially html5 to service end.After transformation model obtains this parameter, call the method being converted to JSON character string, i.e. toJson method.
In the method for the toJson of transformation model, traversal topological data set, calls the concrete data transfer device toJson of each node and line, each node and line is converted to JSON character string.
Step S305: obtain the topological data best property of attribute mapping rule in transformation model and object type mapping ruler
HTML5 mapping ruler is:
Type mapping rule
comm.Node ht.Node
comm.Link ht.Edge
comm.Group ht.Group
comm.Element ht.Data
comm.SubNetwork ht.SubGraph
comm.Follower ht.Node
comm.Grid ht.Grid
Best property of attribute mapping rule
fromNode source
toNode target
location position
Step S306: the topological data set in traversal transformation model, calls the concrete data transfer device toJson of each node and line, simultaneously according to HTML5 mapping ruler, each node and line is converted to JSON character string.
BSC and BTS node is comm.Node type, and the pass of BSC and BTS is comm.Link type.Call transformation model conversion before, by Type mapping rule and best property of attribute mapping rule assignment to transformation model, when calling the concrete conversion method of each node and line, according to the JAVA type of node, obtain corresponding JSON go here and there needs type.The type that JSON string as the acquisition of BSC and BTS node needs is ht.Node, and the type of the JSON string needs that the relation line of BSC and BTS obtains is ht.edge.The JSON attribute that position attribution location in BSC and BTS node obtains is position; The JSON attribute that fromNode, toNode in the relation line of BSC and BTS obtain is source and target
The character string obtained after the conversion of BSC node is:
The JAVA type of BSC and BTS is the JSON type that comm.Node changes as from the foregoing is ht.Node; JAVA position attribution is location, and the JSON position attribution after changing is position.
The character string obtained after the conversion of BSC and BTS line is:
The JAVA type of BSC and BTS line is the type after comm.Link changes as from the foregoing is ht.Edge; The attribute that JAVA attribute fromNode and toNode changes is source and target.
Step S307: the node after conversion and line character string combinations are become complete JSON character string.
As shown in Figure 5, the embodiment of the present invention four provides a kind of service end topological data conversion equipment, and it is characterized in that, described device comprises:
Raw data obtains load units 1, for according to practical topology service logic, obtains original topology data and is encapsulated and be loaded into topological data set;
Raw data acquiring unit 1 comprises further:
Data query acquisition module 11, for according to described practical topology service logic query resource database, obtains each element information in described topological service logic and link information composition original topology data;
Data encapsulation module 12, the data object package group composite shipment for the original topology data obtained by described data query acquisition module enters topological data set.
Model unit 2, for pre-defined memory topology Data Translation model, comprise the empty topological data set of definition and all types of data transfer device, arrange the mapping ruler of all types of data, the topological data set assignment of being loaded by described raw data acquiring unit is to described empty topological data set.
Date Conversion Unit 3, for obtaining the data transfer device consistent with foreground type and described mapping ruler in the transformation model that defines at described model unit; According to consistent data conversion method, the type topological data mapping ruler of described acquisition and foreground type, data conversion is carried out to the topological data that described transformation model assignment topological data is concentrated.
Described model unit comprises further:
Data set module 21, for defining sky topological data set, the topological data set assignment of being loaded by described raw data acquiring unit is to described empty topological data set;
Data transfer device definition module 22, for defining the conversion method of all types of data;
Mapping ruler arranges module 23, for defining the mapping ruler interface of all types of data, is arranged the mapping ruler of all types of data by the mapping ruler interface of described all types of data;
Memory module 24, comprises sky topological data set for storing and defined data transfer device, arranges the transformation model of mapping ruler.
Data transfer device definition module 22 comprises further:
Data transformation interface definition module 221, for defining all types of data transformation interfaces corresponding to described all types of topological data conversion method;
Element conversion method arranges module 222, for arranging all types of element conversion methods corresponding with all types of data transformation interfaces that data transformation interface definition module defines.
Mapping ruler arranges module 23 and comprises further:
Best property of attribute mapping rule arranges module 231, for defining all types of best property of attribute mapping rule interface, arranges mapping ruler by described all types of best property of attribute mapping rule interface;
Object type mapping ruler arranges module 232, for defining all types of object type mapping ruler interface, arranges object type mapping ruler by described all types of object type mapping ruler interface.
Described Date Conversion Unit 3 comprises further:
Element conversion method acquisition module 31, for obtaining the data transfer device consistent with foreground type of described data transfer device definition module definition in transformation model, call the data transformation interface corresponding to its type according to the data transfer device of described acquisition, and then obtain the conversion method of the type element;
Mapping ruler acquisition module 32, arranges the mapping ruler of all types of data of module installation for obtaining described mapping ruler;
Modular converter 33, the each element conversion method of the type element for utilizing element conversion method acquisition module to obtain, according to all types of mapping rulers that described mapping ruler acquisition module obtains, data conversion is carried out to the element that the topological data of data set module in described transformation model assignment is concentrated.
The principle of work of each several part in device of the present invention, is described in detail in method part above, does not repeat them here.
Although the embodiment disclosed by the present invention is as above, but described content be not used to directly limit protection scope of the present invention.Any the technical staff in the technical field of the invention, under the prerequisite not departing from the spirit and scope disclosed by the present invention, can do a little change what implement in form and in details.Protection scope of the present invention, the scope that still must define with appending claims is as the criterion.

Claims (12)

1. a service end topological data conversion method, is characterized in that, described method is:
Pre-defined topological data transformation model, comprises the empty topological data set of definition and all types of data transfer device, arranges the mapping ruler of all types of topological data;
According to practical topology service logic, obtain original topology data and encapsulated and be loaded into topological data set;
Give the described empty topological data set in described transformation model by described topological data set assignment, in described transformation model, obtain the data transfer device consistent with foreground type;
According to consistent data conversion method, the type topological data mapping ruler of described acquisition and foreground type, data conversion is carried out to the topological data that described transformation model topological data is concentrated.
2. method according to claim 1, is characterized in that, all types of data transfer device of described definition is specially:
Define the data transformation interface of all types of data, the data transformation interface for described definition arranges the conversion method of each element in the type respectively.
3. method according to claim 2, is characterized in that, the described mapping ruler arranging all types of data is specially:
Define best property of attribute mapping rule interface, the object type mapping ruler interface of all types of data, the best property of attribute mapping rule of all types of data is set by instantiation best property of attribute mapping relational interface, the object type mapping ruler of all types of data is set by instance object Type mapping interface.
4. method according to claim 3, is characterized in that, described acquisition original topology data are also packaged into topological data diversity method and are:
According to described practical topology service logic query resource database, obtain each element information in described topological service logic and link information composition original topology data;
The data object package group composite shipment of described original topology data is entered topological data set.
5., according to described method arbitrary in claim 1-4, it is characterized in that, according to data transfer device, described the type topological data mapping ruler of described acquisition, the method that the described topological data being loaded into transformation model carries out data conversion is specially:
Call the data transformation interface corresponding to its type according to the data transfer device of described acquisition, and then obtain the conversion method of the type element;
Travel through the element of topological data set in described topological model, call the conversion method of described element and the topological data mapping ruler according to this element data type carries out data conversion to described element;
Topological data after described conversion is spliced into character string.
6. method according to claim 5, is characterized in that:
Described original topology data are converted to XML character string and JSON character string that JAVA foreground, FLEX foreground and HTML5 foreground can present topology.
7. a service end topological data conversion equipment, is characterized in that, described device comprises:
Raw data obtains load units, for according to practical topology service logic, obtains original topology data and is encapsulated and be loaded into topological data set;
Model unit, for pre-defined memory topology Data Translation model, comprise the empty topological data set of definition and all types of data transfer device, arrange the mapping ruler of all types of data, the topological data set assignment of being loaded by described raw data acquiring unit is to described empty topological data set.
Date Conversion Unit, for obtaining the data transfer device consistent with foreground type and described mapping ruler in the transformation model that defines at described model unit; According to consistent data conversion method, the type topological data mapping ruler of described acquisition and foreground type, data conversion is carried out to the topological data that described transformation model assignment topological data is concentrated.
8. device according to claim 7, is characterized in that, described model unit comprises further:
Data set module, for defining sky topological data set, the topological data set assignment of being loaded by described raw data acquiring unit is to described empty topological data set;
Data transfer device definition module, for defining the conversion method of all types of data;
Mapping ruler arranges module, for defining the mapping ruler interface of all types of data, is arranged the mapping ruler of all types of data by the mapping ruler interface of described all types of data;
Memory module, comprises sky topological data set for storing and defined data transfer device, arranges the transformation model of mapping ruler.
9. device according to claim 8, is characterized in that, described data transfer device definition module comprises further:
Data transformation interface definition module, for defining all types of data transformation interfaces corresponding to described all types of topological data conversion method;
Element conversion method arranges module, for arranging all types of element conversion methods corresponding with all types of data transformation interfaces that data transformation interface definition module defines.
10. device according to claim 9, is characterized in that, described mapping ruler arranges module and comprises further:
Best property of attribute mapping rule arranges module, for defining all types of best property of attribute mapping rule interface, arranges mapping ruler by described all types of best property of attribute mapping rule interface;
Object type mapping ruler arranges module, for defining all types of object type mapping ruler interface, arranges object type mapping ruler by described all types of object type mapping ruler interface.
11. devices according to claim 10, is characterized in that, described raw data acquiring unit comprises further:
Data query acquisition module, for according to described practical topology service logic query resource database, obtains each element information in described topological service logic and link information composition original topology data;
Data encapsulation module, the data object package group composite shipment for the original topology data obtained by described data query acquisition module enters topological data set.
12. arbitrary described devices in-11 according to Claim 8, it is characterized in that, described Date Conversion Unit comprises further:
Element conversion method acquisition module, for obtaining the data transfer device consistent with foreground type of described data transfer device definition module definition in transformation model, call the data transformation interface corresponding to its type according to the data transfer device of described acquisition, and then obtain the conversion method of the type element;
Mapping ruler acquisition module, arranges the mapping ruler of all types of data of module installation for obtaining described mapping ruler;
Modular converter, the each element conversion method of the type element for utilizing element conversion method acquisition module to obtain, according to all types of mapping rulers that described mapping ruler acquisition module obtains, data conversion is carried out to the element that the topological data of data set module in described transformation model assignment is concentrated.
CN201310740968.3A 2013-12-26 2013-12-26 A kind of server-side topological data conversion method and conversion equipment Active CN104750468B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310740968.3A CN104750468B (en) 2013-12-26 2013-12-26 A kind of server-side topological data conversion method and conversion equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310740968.3A CN104750468B (en) 2013-12-26 2013-12-26 A kind of server-side topological data conversion method and conversion equipment

Publications (2)

Publication Number Publication Date
CN104750468A true CN104750468A (en) 2015-07-01
CN104750468B CN104750468B (en) 2019-06-07

Family

ID=53590224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310740968.3A Active CN104750468B (en) 2013-12-26 2013-12-26 A kind of server-side topological data conversion method and conversion equipment

Country Status (1)

Country Link
CN (1) CN104750468B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130805A (en) * 2016-08-31 2016-11-16 积成电子股份有限公司 Power information acquisition system network topology method for visualizing based on bandwidth carrier
CN107977226A (en) * 2017-11-22 2018-05-01 北京酷我科技有限公司 A kind of positive automatic parsing strategy of iOS data
CN108196844A (en) * 2018-01-04 2018-06-22 武汉斗鱼网络科技有限公司 Information processing method, device, electronic equipment and storage medium
CN112463865A (en) * 2020-11-25 2021-03-09 上海英方软件股份有限公司 Data conversion method and device based on database topological graph
CN113127226A (en) * 2021-03-12 2021-07-16 创业慧康科技股份有限公司 Method for generating data conversion model, data conversion method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110075A (en) * 2007-08-27 2008-01-23 西安煤航信息产业有限公司 Method for accurately converting GIS vector data into KML
CN102622419A (en) * 2012-02-22 2012-08-01 中国人民解放军92859部队 Conversion method of DNC (Digital Nautical Chart) and ENC (Electronic Nautical Chart) data models

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110075A (en) * 2007-08-27 2008-01-23 西安煤航信息产业有限公司 Method for accurately converting GIS vector data into KML
CN102622419A (en) * 2012-02-22 2012-08-01 中国人民解放军92859部队 Conversion method of DNC (Digital Nautical Chart) and ENC (Electronic Nautical Chart) data models

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106130805A (en) * 2016-08-31 2016-11-16 积成电子股份有限公司 Power information acquisition system network topology method for visualizing based on bandwidth carrier
CN107977226A (en) * 2017-11-22 2018-05-01 北京酷我科技有限公司 A kind of positive automatic parsing strategy of iOS data
CN108196844A (en) * 2018-01-04 2018-06-22 武汉斗鱼网络科技有限公司 Information processing method, device, electronic equipment and storage medium
CN112463865A (en) * 2020-11-25 2021-03-09 上海英方软件股份有限公司 Data conversion method and device based on database topological graph
CN113127226A (en) * 2021-03-12 2021-07-16 创业慧康科技股份有限公司 Method for generating data conversion model, data conversion method and device

Also Published As

Publication number Publication date
CN104750468B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN107743072B (en) Efficient and extensible network simulation scene generation method
CN104750468A (en) Server side topological data conversion method and device
CN103631578B (en) Method for exhibiting data in a kind of distribution automation system
US11645438B2 (en) Generating a template-driven schematic from a netlist of electronic circuits
CN110647316B (en) Method and device for generating universal business object, computer equipment and storage medium
CN102779321A (en) Method and device used for verifying message and based on integrated Ethernet chip (IEC) 61968 message type definition
CN108134698B (en) Graphical configuration platform of industrial multi-protocol internet of things gateway
US10776313B2 (en) Converting source objects to target objects
US20200019896A1 (en) Numerical graphical flow diagram conversion and comparison
US20150317127A1 (en) System for metamodeling unification
CN108416568A (en) Government affairs business data processing method, device and terminal device
CN105243116A (en) Automatic generation method for electronic device capability description file of intelligent substation
US20160092604A1 (en) Method for metamodeling unification
CN114510452A (en) SOC (System on chip) integration method and device and electronic equipment
KR101397379B1 (en) System for transformation meta-modeling
US11736338B2 (en) Network management apparatus, method, and program
CN112926008A (en) Method and device for generating form page, electronic equipment and storage medium
CN103561113A (en) Web Service interface generating method and device
CN103607414A (en) Mobile forepart service display system and mobile forepart service display method
CN112580178B (en) Graph-model bidirectional verification method and device for energy management system
CN103023740B (en) A kind of information interactive bus system and electric data transmission method
CN115981625A (en) Extensible power system wiring diagram interface modeling method and system
CN106301833A (en) A kind of transformer station schedule information method of testing
WO2017084515A1 (en) Method and device for transmitting data code stream
CN113591448A (en) Report generation method and device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190808

Address after: 100093 No. 99 Xingshikou Road, Haidian District, Beijing 20302

Patentee after: Beijing BOCO Inter-Telecom Technology Co., Ltd.

Address before: 100093 No. 99 Xingshikou Road, Haidian District, Beijing 20302

Co-patentee before: Yiyang Xintong Co., Ltd.

Patentee before: Beijing BOCO Inter-Telecom Technology Co., Ltd.