CN110308907A - Data transfer device, device, storage medium and electronic equipment - Google Patents

Data transfer device, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110308907A
CN110308907A CN201910596369.6A CN201910596369A CN110308907A CN 110308907 A CN110308907 A CN 110308907A CN 201910596369 A CN201910596369 A CN 201910596369A CN 110308907 A CN110308907 A CN 110308907A
Authority
CN
China
Prior art keywords
data
format
contract
sentence
transformation rule
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
CN201910596369.6A
Other languages
Chinese (zh)
Other versions
CN110308907B (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.)
Ctrip Travel Network Technology Shanghai Co Ltd
Original Assignee
Ctrip Travel Network Technology Shanghai 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 Ctrip Travel Network Technology Shanghai Co Ltd filed Critical Ctrip Travel Network Technology Shanghai Co Ltd
Priority to CN201910596369.6A priority Critical patent/CN110308907B/en
Publication of CN110308907A publication Critical patent/CN110308907A/en
Application granted granted Critical
Publication of CN110308907B publication Critical patent/CN110308907B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of data transfer device, device, storage medium and electronic equipment, which comprises determines the first data format of a contract data;According to one first transformation rule by the contract data by the first Data Format Transform be the second data format;According to one second transformation rule by the contract data by the first Data Format Transform be viewdata format;The contract data of the viewdata format are shown in an editable page;The contract data of second data format are updated according to the edit operation of the contract data to the editable page.The on-line synchronous that the contract data of both contracting parties may be implemented in the present invention updates, and the situation for avoiding both contracting parties from causing another party that can not obtain the updated contract data in time due to wherein a side updates contract data occurs.

Description

Data transfer device, device, storage medium and electronic equipment
Technical field
The present invention relates to field of computer technology more particularly to a kind of data transfer device, device, storage medium and electronics Equipment.
Background technique
Contract management is substantially the management to data model, in the prior art, 1) using Power Designer as representative Specialized engineering modeling software, the ability of very powerful data model management can be provided, and with specific data structure guarantor Deposit data model document.This kind of software is mainly directed towards Software engineering design field, but since its software systems lacks scalability (or extension difficulty is big) does not have web interactive function, and has the reasons such as higher professional requirement to user, with Power Designer is that the specialized engineering modeling software of representative is not appropriate for using as contract management.2) using XSD as the standard of representative The data-selected scheme text document that organization defined expand has versatility, it can be readily appreciated that have the description of extremely strong data with And extended capability.Since text document is record data model information, is reading, marking remarks, file distributing, history archive dimension Shield etc. needs just to be able to achieve visualization, efficient management function to the cooperation of relevant software systems, for example uses git system It realizes file-sharing, historical trace function, XSD document is parsed to the generation for generating other programming languages using other software tool Code.
Summary of the invention
For the problems of the prior art, the purpose of the present invention is to provide a kind of data transfer device, device, storages to be situated between Matter and electronic equipment, the on-line synchronous that the contract data of both contracting parties may be implemented update, and avoid both contracting parties because of a wherein side The situation for updating contract data and causing another party that can not obtain the updated contract data in time occurs.
According to an aspect of the present invention, a kind of data transfer device is provided, which comprises
Determine the first data format of a contract data;
According to one first transformation rule by the contract data by the first Data Format Transform be the second data format;
According to one second transformation rule by the contract data by the first Data Format Transform be viewdata format;
The contract data of the viewdata format are shown in an editable page;
The contract number of second data format is updated according to the edit operation of the contract data to the editable page According to.
In one embodiment of the present invention, it is described according to one first transformation rule by the contract data by the first data Format is converted to the step of the second data format and includes:
Generate the first sentence mapping between the contract data of the first data format and the contract data of the second data format Table.
In one embodiment of the present invention, it is described according to one second transformation rule by the contract data by the first data Format is converted to the step of viewdata format and includes:
Generate the second sentence mapping between the contract data of the first data format and the contract data of viewdata format Table.
In one embodiment of the present invention, the basis to the edit operations of the contract data of the editable page more Newly the step of contract data of second data format include:
According to the first sentence to be updated in the contract data for determining the viewdata format to the edit operation, and Update processing to first sentence to be updated;
Determine the first sentence to be updated in the contract data of first data format from the second sentence mapping table In correspondence sentence using as centre update sentence;
Determine that sentence is in the contract of second data format between updating among described from the first sentence mapping table Correspondence sentence in data is using as the second sentence to be updated;
It is handled by the update, updates second sentence to be updated.
In one embodiment of the present invention, described to update processing including one or more in following operation:
Cancel statement, modification sentence, and change set membership.
In one embodiment of the present invention, the basis to the edit operations of the contract data of the editable page more Newly the step of contract data of second data format include:
Increase by the first sentence to be increased in the contract data of the viewdata format according to the edit operation;
The described first sentence to be increased is converted into the intermediate of the first data format by second transformation rule and increases language Sentence;
The intermediate increase sentence is converted to the second of the second data format by first transformation rule and increases sentence;
The second increase sentence is increased in the contract data of the second data format.
In one embodiment of the present invention, the data transfer device includes:
First transformation rule is transferred from one first transformation rule set, includes in the first transformation rule set The first transformation rule that first data format and the second data format are mutually converted accordingly;
Second transformation rule is transferred from one second transformation rule set, includes in the second transformation rule set The second transformation rule that first data format and viewdata format are mutually converted accordingly.
According to another aspect of the present invention, a kind of data conversion device is provided, the data conversion device includes:
Identification module, to determine the first data format of a contract data;
First conversion module, to be by the first Data Format Transform by the contract data according to one first transformation rule Second data format;
Second conversion module, to be by the first Data Format Transform by the contract data according to one second transformation rule Viewdata format;
Display module, to show the contract data of the viewdata format in an editable page;
Update module, to update second data according to the edit operation of the contract data to the editable page The contract data of format.
According to another aspect of the invention, a kind of storage medium is provided, is stored with computer program on the storage medium, The computer program executes the step in data transfer device as described above when being run by processor.
According to another aspect of the invention, a kind of electronic equipment is provided, the electronic equipment includes:
Processor;
Storage medium is stored thereon with computer program, executes such as when the computer program is run by the processor Step in the upper data transfer device.
The on-line synchronous that the contract data of both contracting parties may be implemented in the present invention updates, and avoids both contracting parties because of a wherein side The situation for updating contract data and causing another party that can not obtain the updated contract data in time occurs.
Detailed description of the invention
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, other feature of the invention, Objects and advantages will become more apparent upon.
Fig. 1 is the flow chart of data transfer device in first embodiment of the invention.
Fig. 2 is the local flow chart of data transfer device in first embodiment of the invention.
Fig. 3 is the local flow chart of data transfer device in second embodiment of the invention.
Fig. 4 is the structural schematic diagram of data conversion device in one embodiment of the invention.
Fig. 5 is the structural schematic diagram of computer readable storage medium in one embodiment of the invention.And
Fig. 6 is the structural schematic diagram of electronic equipment in one embodiment of the invention.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
In order to solve the deficiencies in the prior art, according to an aspect of the present invention, a kind of data transfer device is provided, Fig. 1 is The flow chart of data transfer device in first embodiment of the invention.Fig. 2 is data transfer device in first embodiment of the invention Local flow chart.As shown in Figure 1, the data transfer device includes:
S110 determines the first data format of a contract data.
Specifically, the contract data provided by the first user are parsed, the contract data can be arbitrary data format. For example, can receive with web form, flat file (XML, XSD, BAIJS) and disclosed web API or counted by other The contract data that modes import such as synchronize according to source.By taking the data format of XML document as an example.XML document is actually plain text Data must be able to be read out XML data first, analyze, and then handled using the application program of XML data format. XML parsing scheme common at present includes XML simple application Program Interfaces (Simple APIs for XML, SAX) and text Two kinds of shelves object model (Document Object Model, DOM).Wherein, DOM realizes World Wide Web Consortium (World Wide Web Consortium, W3C) standard, there are many programming languages to support this analysis mode.Its processing mode is by entire XML Message or XML document are read in memory as the mode of similar tree construction to be parsed.SAX, which passes through, is similar to stream parsing Technology is a kind of irreversible resolving, can parse to the part of XML message or XML document.
S120, according to one first transformation rule by the contract data by the first Data Format Transform be the second data lattice Formula.
Further, step S120 includes: the contract of the contract data and the second data format that generate the first data format The first sentence mapping table between data.
Wherein, first transformation rule can be understood as a kind of general data model.The general data model tool It is described the ability of arbitrary data, may include that system is predefined from most basic metadata to complicated complex data model Master data model (the general type using W3C tissue definition) and customized data model.
Specifically, first transformation rule, the first conversion rule can be transferred from one first transformation rule set It then include the first transformation rule that first data format and the second data format are mutually converted accordingly in set.In the present invention In embodiment, the first transformation rule set, which can be, to be pre-stored in client or server, in use, both can be by work Make personnel and choose one first transformation rule therein manually, can also be chosen automatically by client or server.It chooses manually When, step 120 may include: reception user input instruction;Corresponding first transformation rule is selected according to user input instruction.Example Such as, include multiple the first transformation rules with different numbers in the first transformation rule set, carry phase in user input instruction The number of the first transformation rule is answered, to realize the selection to wherein one first transformation rule.When automatic selection, the first step can First the critical field of the contract data successively to be matched with the keyword in first transformation rule.In the present invention In embodiment, which of contract data partly belong to critical field and have pre-defined.The first step can specifically include: first really Then critical field in the fixed contract data is carried out using the keyword of these critical fielies and first transformation rule Matching.For the ease of the selection of first transformation rule, a first sentence mapping table, first sentence mapping can be preset Table includes the number of the first transformation rule and the corresponding relationship of critical field.In this way, it is only necessary in the first sentence mapping table Middle search key section (being equivalent to and the keyword match in first transformation rule) can select corresponding first conversion Rule.Second step, chooses the first transformation rule of successful match, the critical field of the first transformation rule of successful match with it is described Each critical field in contract data matches.Certainly, it other than being chosen manually with selection two ways automatically, can also wrap Include the mode manually and automatically combined.For example, Systematic selection goes out multiple first transformation rules when using automatic choose, this When can receive user's selection instruction, matching is selected from this multiple first transformation rule according to user's selection instruction One transformation rule.For example, selecting regular A and B according to system matches, regular A input data format corresponding with rule B is (i.e. First data format) it is identical, the difference is that the data format (the second data format) of output is different, referred to by user's selection Order can further select one of them for subsequent conversion.
Further, in the present embodiment, first transformation rule may include the first transformation rule table.Wherein, institute The first transformation rule table is stated for defining the data formats of the contract data attribute with field each after conversion before switching. Specifically, the attribute of the field may include field identification (ID), field father node mark (PID), field name (NAME), Field type (TYPE), storing process title (PROC), default value (DEFAULT) and value path (SRC).Field attribute title It may include field attribute English name, can also include field attribute Chinese name other than field attribute English name;Field attribute Type may include NUMBER (10), VARCHAR2 (100CHAR), and wherein NUMBER (10) is numeric type, length 10, VARCHAR2 (100CHAR) is character string type, and length is 100 any characters;Field attribute illustrates for carrying out each of field A attribute is explained.
Field identification is the corresponding mark of field each in data format;Field father node mark is used to indicate data format In relationship between each field, such as the PID of field dev is 2, then the ID of the father node of description field dev is 2 namely word The father node of section dev can determine each interfield by father node mark for field devstatus, client or server Subordinate relation;Field name is the title of each field, the title namely the field in data structure of field;Field type packet XML_IN, NODE, ATTR, PROC, XML_OUT, TEXT, TEXTVALUE etc. are included, the meaning of each type is advised referring to the first conversion Then database table;Storing process title indicates the storing process in cited database;For default value, if type is NODE, TEXT or NOVALUE are then default element numbers of repetition, if type is ATTR or TEXTVALUE, then it represents that should Field is a fixed value;The value path of value path representation TEXTVALUE field.
In the present embodiment, it is exactly that the first transformation rule table is different that the first different transformation rules is practical.Further, originally The method that inventive embodiments provide can also include: to receive user's input, create, modify or delete the number according to user's input According to the first transformation rule table in the first transformation rule.The first transformation rule is adjusted by the step, it is new to adapt to The conversion requirements of data format.
S130, according to one second transformation rule by the contract data by the first Data Format Transform be viewdata lattice Formula;
Further, step S130 includes: the contract data for generating the first data format and the contract of viewdata format The second sentence mapping table between data.
Specifically, second transformation rule, the second conversion rule can be transferred from one second transformation rule set It then include first data format and the second transformation rule that viewdata format is mutually converted accordingly in set.Further The contract data of first data format can be mapped as user according to one second transformation rule according to the demand of second user by ground Specified viewdata format.
It should be pointed out that step S130 is referred to step S120 execution, the principle of the two is identical, no longer superfluous herein It states.
S140 shows the contract data of the viewdata format in an editable page.
Specifically, it can use HTML and Javascript technology and generate the visual editable page, and by described The editable page shows the contract data.The contract data can be by table or in the form of tree-like etc. in the present embodiment Display.The content of the contract data is intuitively understood convenient for second user.The first user is also beneficial in the editable page Face is directly updated the contract data.
S150 updates the contract of second data format according to the edit operation of the contract data to the editable page About data.Then updated contract data are stored in database profession, so that second user is transferred.
As shown in Fig. 2, in the present embodiment, step S150 includes:
S210, according to the first language to be updated in the contract data for determining the viewdata format to the edit operation Sentence, and the update of first sentence to be updated is handled;
S220 determines the first sentence to be updated in the contract of first data format from the second sentence mapping table Correspondence sentence in data is to update sentence as centre;
S230, sentence is in second data format between the intermediate update is determined from the first sentence mapping table Correspondence sentence in contract data is using as the second sentence to be updated;
S240 is handled by the update, updates second sentence to be updated.
Further, the update processing may include one or more in following operation:
Cancel statement, modification sentence, and change set membership.
Specifically, output is generated according to each field under the output data structure root element type in the first transformation rule Data structure;Parameter value therein is obtained according to the first data format of contract data, the output data structure is written, complete The conversion of first data format and the second data format.
The on-line synchronous that the contract data of both contracting parties may be implemented in the present invention updates, and avoids both contracting parties because of a wherein side The situation for updating contract data and causing another party that can not obtain the updated contract data in time occurs.
Fig. 3 is the local flow chart of data transfer device in second embodiment of the invention.As shown in Fig. 2, the present embodiment with The difference of previous embodiment essentially consists in, described according to the edit operation of the contract data to editable page update The step of contract data of second data format includes:
S310 increases by the first language to be increased according to the edit operation in the contract data of the viewdata format Sentence;
Described first sentence to be increased is converted to the intermediate of the first data format by second transformation rule and increased by S320 Add sentence;
The intermediate increase sentence is converted to the second of the second data format by first transformation rule and increased by S330 Sentence;
S340 increases to the second increase sentence in the contract data of the second data format.
The on-line synchronous that the contract data of both contracting parties may be implemented in the present invention updates, and avoids both contracting parties because of a wherein side The situation for updating contract data and causing another party that can not obtain the updated contract data in time occurs.
According to another aspect of the present invention, a kind of data conversion device is provided.Fig. 4 is that data turn in one embodiment of the invention The structural schematic diagram of changing device.As shown in figure 4, the data conversion device 800 includes: 801 identification modules, 802 first conversions Module, 803 second conversion modules, display module 804 and 805 update modules.The identification module 801 is to determine a contract number According to the first data format;First conversion module 802 to according to one first transformation rule by the contract data by One Data Format Transform is the second data format;Second conversion module 803 will be to will be described according to one second transformation rule Contract data are viewdata format by the first Data Format Transform;The display module 804 is to aobvious in an editable page Show the contract data of the viewdata format;The update module 805 is to according to the contract number to the editable page According to edit operation update the contract data of second data format.The contract data of both contracting parties may be implemented in the present invention On-line synchronous updates, and both contracting parties is avoided to cause another party that can not obtain the update in time due to wherein a side updates contract data The situation of contract data afterwards occurs.
In an exemplary embodiment of the present invention, a kind of computer readable storage medium is additionally provided, meter is stored thereon with The step in data transfer device described in above-described embodiment may be implemented in calculation machine program, the program when being executed by such as processor Suddenly.In some possible embodiments, various aspects of the invention are also implemented as a kind of form of program product, packet Program code is included, when described program product is run on the terminal device, said program code is for holding the terminal device The step of various illustrative embodiments according to the present invention of the above-mentioned data transfer device description of row this specification.
Fig. 5 is the structural schematic diagram of computer readable storage medium in one embodiment of the invention.Fig. 5 is described according to this hair The program product 600 for realizing the above method of bright embodiment can use portable compact disc read only memory (CD-ROM) it and including program code, and can be run on terminal device, such as PC.However, program of the invention Product is without being limited thereto, and in this document, readable storage medium storing program for executing can be any tangible medium for including or store program, the program Execution system, device or device use or in connection can be commanded.
Described program product 600 can be using any combination of one or more readable mediums.Readable medium can be can Read signal medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared The system of line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing is (non- The list of exhaustion) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), Read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, the read-only storage of portable compact disc Device (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The computer readable storage medium may include in a base band or the data as the propagation of carrier wave a part are believed Number, wherein carrying readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetism Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any other than readable storage medium storing program for executing Readable medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Person's program in connection.The program code for including on readable storage medium storing program for executing can transmit with any suitable medium, packet Include but be not limited to wireless, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).The on-line synchronous that the contract data of both contracting parties may be implemented in the present invention updates, and avoids both contracting parties The situation for causing another party that can not obtain the updated contract data in time due to wherein a side updates contract data occurs
In an exemplary embodiment of the present invention, a kind of electronic equipment is also provided, which may include processor, And the memory of the executable instruction for storing the processor.Wherein, the processor is configured to via described in execution Executable instruction executes the step in data transfer device described in above-described embodiment.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
The electronic equipment 400 of this embodiment according to the present invention is described referring to Fig. 5.The electronics that Fig. 6 is shown Equipment 400 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 400 is showed in the form of universal computing device.The component of electronic equipment 400 can wrap It includes but is not limited to: at least one processing unit 410, at least one storage unit 420, (including the storage of the different system components of connection Unit 420 and processing unit 410) bus 430, display unit 440 etc..
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 410 Row, so that various examples according to the present invention described in the execution above-mentioned data transfer device of this specification of the processing unit 410 The step of property embodiment.For example, the processing unit 410 can execute step as shown in fig. 1.
The storage unit 420 may include the readable medium of volatile memory cell form, such as random access memory Unit (RAM) 4201 and/or cache memory unit 4202 can further include read-only memory unit (ROM) 4203.
The storage unit 420 can also include program/practical work with one group of (at least one) program module 4205 Tool 4204, such program module 4205 includes but is not limited to: operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.
Bus 430 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 400 can also be with one or more external equipments 500 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 400 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 400 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 450.Also, electronic equipment 400 can be with By network adapter 460 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.Network adapter 460 can be communicated by bus 430 with other modules of electronic equipment 400.It should Understand, although not shown in the drawings, other hardware and/or software module can be used in conjunction with electronic equipment 400, including but unlimited In: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number According to backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server or network equipment etc.) executes the above-mentioned data of embodiment according to the present invention The step of conversion method.The present invention may be implemented the contract data of both contracting parties on-line synchronous update, avoid both contracting parties because The situation that wherein a side updates contract data and causes another party that can not obtain the updated contract data in time occurs.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that Specific implementation of the invention is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs, exist Under the premise of not departing from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to of the invention Protection scope.

Claims (10)

1. a kind of data transfer device characterized by comprising
Determine the first data format of a contract data;
According to one first transformation rule by the contract data by the first Data Format Transform be the second data format;
According to one second transformation rule by the contract data by the first Data Format Transform be viewdata format;
The contract data of the viewdata format are shown in an editable page;
The contract data of second data format are updated according to the edit operation of the contract data to the editable page.
2. data transfer device according to claim 1, which is characterized in that it is described will be described according to one first transformation rule Contract data by the first Data Format Transform be the second data format the step of include:
Generate the first sentence mapping table between the contract data of the first data format and the contract data of the second data format.
3. data transfer device according to claim 2, which is characterized in that it is described will be described according to one second transformation rule Contract data by the first Data Format Transform be viewdata format the step of include:
Generate the second sentence mapping table between the contract data of the first data format and the contract data of viewdata format.
4. data transfer device according to claim 3, which is characterized in that contract of the basis to the editable page The edit operation of about data updates the step of contract data of second data format and includes:
According to the first sentence to be updated in the contract data for determining the viewdata format to the edit operation, and to this The update of first sentence to be updated is handled;
Determine the first sentence to be updated in the contract data of first data format from the second sentence mapping table Corresponding sentence is to update sentence as centre;
Determine that sentence is in the contract data of second data format between updating among described from the first sentence mapping table In correspondence sentence using as the second sentence to be updated;
It is handled by the update, updates second sentence to be updated.
5. data transfer device according to claim 4, which is characterized in that the update processing includes in following operation It is one or more:
Cancel statement, modification sentence, and change set membership.
6. data transfer device according to claim 1, which is characterized in that contract of the basis to the editable page The edit operation of about data updates the step of contract data of second data format and includes:
Increase by the first sentence to be increased in the contract data of the viewdata format according to the edit operation;
The described first sentence to be increased is converted into the intermediate of the first data format by second transformation rule and increases sentence;
The intermediate increase sentence is converted to the second of the second data format by first transformation rule and increases sentence;
The second increase sentence is increased in the contract data of the second data format.
7. data transfer device according to claim 1 characterized by comprising
First transformation rule is transferred from one first transformation rule set, includes described in the first transformation rule set The first transformation rule that first data format and the second data format are mutually converted accordingly;
Second transformation rule is transferred from one second transformation rule set, includes described in the second transformation rule set The second transformation rule that first data format and viewdata format are mutually converted accordingly.
8. a kind of data conversion device characterized by comprising
Identification module, to determine the first data format of a contract data;
First conversion module, to according to one first transformation rule by the contract data by the first Data Format Transform be second Data format;
Second conversion module, by the contract data to be visual by the first Data Format Transform according to one second transformation rule Data format;
Display module, to show the contract data of the viewdata format in an editable page;
Update module, to update second data format according to the edit operation of the contract data to the editable page Contract data.
9. a kind of storage medium, which is characterized in that be stored with computer program, the computer program quilt on the storage medium The step as described in any one of claims 1 to 7 is executed when processor is run.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Processor;
Storage medium is stored thereon with computer program, and such as right is executed when the computer program is run by the processor It is required that step described in any one of 1 to 7.
CN201910596369.6A 2019-07-03 2019-07-03 Data conversion method and device, storage medium and electronic equipment Active CN110308907B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910596369.6A CN110308907B (en) 2019-07-03 2019-07-03 Data conversion method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910596369.6A CN110308907B (en) 2019-07-03 2019-07-03 Data conversion method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110308907A true CN110308907A (en) 2019-10-08
CN110308907B CN110308907B (en) 2023-06-27

Family

ID=68079084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910596369.6A Active CN110308907B (en) 2019-07-03 2019-07-03 Data conversion method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110308907B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061481A (en) * 2019-12-17 2020-04-24 神州数码融信软件有限公司 Data format conversion method and device
CN113159970A (en) * 2021-05-14 2021-07-23 中国工商银行股份有限公司 Data format conversion method, device, system, electronic equipment and storage medium
CN116911269A (en) * 2023-06-05 2023-10-20 杭州观远数据有限公司 Method for modifying and splitting aggregated data into details

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050075996A1 (en) * 2002-02-26 2005-04-07 International Business Machines Corporation Sequenced modification of multiple entities based on an abstract data representation
CN109634661A (en) * 2018-10-26 2019-04-16 深圳壹账通智能科技有限公司 Server bottom data variation, device, computer equipment and storage medium
CN109657103A (en) * 2018-12-19 2019-04-19 广州天鹏计算机科技有限公司 Conversion method, device, computer equipment and the storage medium of data structure

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050075996A1 (en) * 2002-02-26 2005-04-07 International Business Machines Corporation Sequenced modification of multiple entities based on an abstract data representation
CN109634661A (en) * 2018-10-26 2019-04-16 深圳壹账通智能科技有限公司 Server bottom data variation, device, computer equipment and storage medium
CN109657103A (en) * 2018-12-19 2019-04-19 广州天鹏计算机科技有限公司 Conversion method, device, computer equipment and the storage medium of data structure

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061481A (en) * 2019-12-17 2020-04-24 神州数码融信软件有限公司 Data format conversion method and device
CN113159970A (en) * 2021-05-14 2021-07-23 中国工商银行股份有限公司 Data format conversion method, device, system, electronic equipment and storage medium
CN116911269A (en) * 2023-06-05 2023-10-20 杭州观远数据有限公司 Method for modifying and splitting aggregated data into details
CN116911269B (en) * 2023-06-05 2024-02-20 杭州观远数据有限公司 Method for modifying and splitting aggregated data into details

Also Published As

Publication number Publication date
CN110308907B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
US8667456B1 (en) Cloud-based indexing for integrated development environments
US8924415B2 (en) Schema mapping and data transformation on the basis of a conceptual model
US6973460B1 (en) Framework for applying operations to nodes of an object model
CN102455913B (en) The customization of indicating template
US9009173B2 (en) Using views of subsets of nodes of a schema to generate data transformation jobs to transform input files in first data formats to output files in second data formats
US8433687B1 (en) Off-line indexing for client-based software development tools
JP2018533126A (en) Method, system, and computer program product for a natural language interface to a database
CN106970936A (en) Data processing method and device, data query method and device
US10489493B2 (en) Metadata reuse for validation against decentralized schemas
CN109446362A (en) Chart database structure, diagram data storage method, device based on external memory
CN110308907A (en) Data transfer device, device, storage medium and electronic equipment
US10930389B2 (en) Systems and methods for the classification and indexing of contract documentation
CN109495392A (en) Message conversion process method and device, electronic equipment, storage medium
CN104573022A (en) Data query method and device for HBase
KR102531507B1 (en) Method, device, equipment and storage medium for outputting information
CN111782820B (en) Knowledge graph creation method and device, readable storage medium and electronic equipment
CN109284452A (en) The online methods of exhibiting of electronic protocol, device, electronic equipment, storage medium
CN111178025A (en) Editing method and device of nuclear power plant operation guide rules, computer equipment and storage medium
CN116346777A (en) Dictionary tree domain name matching method, device, equipment and storage medium
CN113687827B (en) Data list generation method, device and equipment based on widget and storage medium
CN115525629A (en) Data processing method, data processing device, storage medium and electronic equipment
CN115795187A (en) Resource access method, device and equipment
US11960507B2 (en) Hierarchical data
JP2003162533A (en) Schema-integrated conversion system, schema-integrated conversion method, and schema-integrated conversion program
CN117992054A (en) File processing method and device

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