CN107479910A - Document restorative procedure, system, readable storage medium storing program for executing and computer equipment - Google Patents

Document restorative procedure, system, readable storage medium storing program for executing and computer equipment Download PDF

Info

Publication number
CN107479910A
CN107479910A CN201710549395.4A CN201710549395A CN107479910A CN 107479910 A CN107479910 A CN 107479910A CN 201710549395 A CN201710549395 A CN 201710549395A CN 107479910 A CN107479910 A CN 107479910A
Authority
CN
China
Prior art keywords
introducing
document
reference information
typonym
target
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
CN201710549395.4A
Other languages
Chinese (zh)
Other versions
CN107479910B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201710549395.4A priority Critical patent/CN107479910B/en
Publication of CN107479910A publication Critical patent/CN107479910A/en
Application granted granted Critical
Publication of CN107479910B publication Critical patent/CN107479910B/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/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/81Indexing, e.g. XML tags; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

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

Abstract

The present invention provides a kind of document restorative procedure, system, readable storage medium storing program for executing and computer equipment, and methods described includes:Whether judge in all XSD documents under current filesselected catalogue comprising wrong reference information;If so, then it is introduced into XSD documents according to corresponding to searching the association reference information related to the wrong reference information;The wrong reference information is modified as unanimously with the corresponding corresponding informance being introduced into XSD documents.Document restorative procedure among the present invention, it can realize and the wrong import information in XSD files is repaired.

Description

Document restorative procedure, system, readable storage medium storing program for executing and computer equipment
Technical field
The present invention relates to Data Interchange Technology field, more particularly to a kind of document restorative procedure, system, readable storage medium storing program for executing And computer equipment.
Background technology
Today's society constantly advocates data sharing, and the operation system disunity used in every profession and trade, causes between each data Form have differences, limit the development of data sharing, just arise for this data exchange.XML(Extensible Markup Language, extensible markup language) structure is the common file structure of field of data exchange, it is nowadays general Data exchange is all based on XML structure document substantially, and XSD (XML Schema Definition, expandable mark language mode Definition) as the description document for describing XML structure, as the specification of exchange, the data for realizing each software developer can Meet the specification of industry, and then the purpose of data sharing.
The data (such as typonym) that can be imported in other XSD files using import in XSD files are quoted, But among the process of importing, may (data message for needing to import exists in itself by the data message clerical error of importing And correct), such as file name clerical error will be imported into when importing, cause the XSD files after import information subsequently adding Carry and will appear from mistake among the process of (such as automatic code generating or according to XSD verifying XMLs validity).
Among prior art, at present when running into the above situation, the good solution of neither one, it is typically only capable to make data Error handle imports to each import information again again, causes great inconvenience.
The content of the invention
Based on this, it is an object of the invention to provide a kind of document restorative procedure, system, readable storage medium storing program for executing and computer to set It is standby, to be repaired to import information wrong in XSD files.
A kind of document restorative procedure according to embodiments of the present invention, including:
Whether judge in all XSD documents under current filesselected catalogue comprising wrong reference information;
If so, then it is introduced into XSD according to corresponding to searching the association reference information related to the wrong reference information Document;
The wrong reference information is modified as unanimously with the corresponding corresponding informance being introduced into XSD documents.
In addition, a kind of document restorative procedure according to the above embodiment of the present invention, can also have technology additional as follows Feature:
Further, the wrong reference information includes the introducing document title of mistake, and the judgement currently chooses text Whether include in all XSD documents under part catalogue comprising the step of wrong reference information:
All XSD documents are traveled through, to extract the introducing document title of each XSD documents;
The wrong introducing document title is judged whether, the wrong introducing document title is corresponding document The introducing document title being not present.
Further, it is central all XSD documents of the traversal the step of also to extract each XSD documents Definition information, and also extract and each association reference information for introducing document title and associate, the definition are believed Breath include name title, default names space and define typonym, it is described association reference information include introduce name space with Typonym is introduced, is introduced into corresponding to the basis association reference information lookup related to the wrong reference information The step of XSD documents, includes:
By each wrong introducing name space for introducing document title association successively with it is all described silent Recognize name space to be matched, to obtain the target default names space consistent with the target of current matching introducing name space;
Judge whether object definition typonym corresponding to the target default names space includes the target and introduce name Target corresponding to word space introduces typonym;
If so, then target XSD corresponding to the object definition typonym of typonym will be introduced including the target Document is introduced into XSD documents as described corresponding to target introducing typonym.
Further, it is described by the wrong reference information and the corresponding corresponding letter being introduced into XSD documents Breath, which is modified as consistent step, to be included:
By the wrong introducing document title and the corresponding name name modifications for being introduced into XSD documents into Unanimously.
Further, after the step of all XSD documents of the traversal, in addition to:
The name title of each XSD documents, the definition typonym and the default names space are built Halt adopted information MAP table;
By the introducing name space of the introducing document title of each XSD documents and corresponding association and described Introduce typonym and establish introducing information MAP table.
A kind of document repair system according to embodiments of the present invention, including:
Reference information judge module, for whether judging in all XSD documents under current filesselected catalogue comprising mistake Reference information by mistake;
Related information searching modul, for when determining in the XSD documents comprising the wrong reference information, root XSD documents are introduced into according to corresponding to the association reference information lookup related to the wrong reference information;
Information modified module, for by the wrong reference information and corresponding pair being introduced into XSD documents Information is answered to be modified as unanimously.
In addition, a kind of document repair system according to the above embodiment of the present invention, can also have technology additional as follows Feature:
Further, the wrong reference information includes the introducing document title of mistake, and the reference information judges mould Block includes:
Traversal Unit, for traveling through all XSD documents, to extract the introducing document of each XSD documents Title;
First judging unit, for judging whether the wrong introducing document title, the wrong introducing text The introducing document title that document corresponding to shelves are entitled is not present.
Further, each XSD documents are also extracted among the process of all XSD documents of the traversal Definition information, and also extract and each association reference information for introducing document title and associate, the definition are believed Breath include name title, default names space and define typonym, it is described association reference information include introduce name space with Typonym is introduced, the related information searching modul includes:
Matching unit, for by each wrong introducing name space for introducing document title association successively with All default names spaces are matched, and are write from memory with the target for obtaining consistent with the target of current matching introducing name space Recognize name space;
Second judging unit, for judging whether object definition typonym corresponding to the target default names space wraps Include the target and introduce target introducing typonym corresponding to name space;
Processing unit, it is to include for the object definition typonym corresponding to determine the target default names space When the target introduces target introducing typonym corresponding to name space, it will be introduced including the target described in typonym Target XSD documents corresponding to object definition typonym are introduced into XSD as described corresponding to target introducing typonym Document.
The present invention also proposes a kind of computer-readable recording medium, is stored thereon with computer program, the program is processed Device realizes above-mentioned document restorative procedure when performing.
The present invention also proposes a kind of computer equipment, including memory, processor and storage are on a memory and can be The computer program run on processor, above-mentioned document restorative procedure is realized during the computing device described program.
Above-mentioned document restorative procedure, system, readable storage medium storing program for executing and computer equipment, due to introducing the relevance of information, When determine in the XSD documents comprising mistake reference information when, can automatically according to the wrong reference information phase The association reference information of pass is introduced into XSD documents corresponding to finding, and the XSD documents that are introduced into will include and the mistake Reference information corresponding to correct information, then the wrong reference information described is introduced into XSD documents with corresponding Corresponding informance be modified as unanimously, you can realization the wrong reference information is modified, repair complete after, include institute The XSD documents for stating the reference information of mistake can normal load.
Brief description of the drawings
Fig. 1 is the flow chart of the document restorative procedure in first embodiment of the invention.
Fig. 2 is the flow chart of the document restorative procedure in second embodiment of the invention.
Fig. 3 is the structural representation of the document repair system in third embodiment of the invention.
Main element symbol description:
Detailed description below will combine above-mentioned accompanying drawing and further illustrate the present invention.
Embodiment
For the ease of understanding the present invention, the present invention is described more fully below with reference to relevant drawings.In accompanying drawing Give some embodiments of the present invention.But the present invention can realize in many different forms, however it is not limited to this paper institutes The embodiment of description.On the contrary, the purpose for providing these embodiments is made to the disclosure more thorough and comprehensive.
It should be noted that when element is referred to as " being fixedly arranged on " another element, it can be directly on another element Or there may also be element placed in the middle.When an element is considered as " connection " another element, it can be directly connected to To another element or it may be simultaneously present centering elements.Term as used herein " vertical ", " horizontal ", " left side ", " right side " and similar statement are for illustrative purposes only.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention The implication that technical staff is generally understood that is identical.Term used in the description of the invention herein is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.Term as used herein " and/or " include one or more phases The arbitrary and all combination of the Listed Items of pass.
Referring to Fig. 1, the document restorative procedure showing in first embodiment of the invention, including step S01 is to step S03。
Step S01, judge the reference information of mistake whether is included in all XSD documents under current filesselected catalogue.
It is pointed out that an XSD document (A documents) can quote the data of another XSD document (B documents), lead to The data often quoted are typonym of the B documents defined in, and when typonym of the A document reference B documents defined in, Also the document title of B documents and default names space are introduced into simultaneously, and establish and associate with the typonym of introducing.Cause This, the reference information of XSD documents includes introducing NameSpace, introduce document title and introducing typonym, therefore the reference of mistake Information can be the introducing typonym for introducing NameSpace, the introducing document title of mistake or mistake of mistake.
It should be understood that judge in the XSD documents whether reference information comprising mistake the step of can be according to following Two ways is embodied:The XSD documents are loaded into (such as automatic code generating or effective according to XSD verifying XMLs Property), then judge whether the XSD documents occur quoting or the prompting of misquotation among the process of loading;Or
Reference information in the XSD documents is extracted, then search include the reference information be introduced into document, Whether the corresponding information being introduced into described in then judging in document is consistent with the reference information.
When the step S01 is determined in the XSD documents comprising the wrong reference information, represent and work as described The XSD documents for needing to repair under preceding filesselected catalogue be present, now then perform step S02 to step S03.
Step S02, XSD is introduced into according to corresponding to searching the association reference information related to the wrong reference information Document.
It should be understood that because XSD documents are when carrying out data referencing, pass will be established corresponding to introduced information Connection, therefore when detecting any wrong reference information, it can inquire association reference information associated with it.
Therefore the basis association reference information related to the wrong reference information search corresponding to be introduced into XSD The step of document, can be embodied in such a way:Phase therewith is extracted according to the wrong reference information first The association reference information of pass, then the association reference information is matched with other documents, to obtain including the association Reference information is introduced into document.For example, after above-mentioned A documents introduce the data of B documents, if among the process of reference, Cause to introduce document title error, i.e. the document title of the introducing document title and B documents of A documents is inconsistent, drawing in A documents Enter reference information of the document title for mistake, now the introducing document title in A documents can extract associated Reference information (introduce NameSpace and introduce typonym) is associated, is then carried out according to the association reference information and other documents Matching, you can obtain being introduced into document, as B documents comprising the association reference information.
Step S03, the wrong reference information is changed with the corresponding corresponding informance being introduced into XSD documents Into consistent.
It should be understood that above-mentioned A the documents information introduced and the information that B documents are introduced into certainly exist corresponding relation, work as A When the information that document introduces occurs wrong, according to this corresponding relation, you can find what is be introduced into corresponding in B documents Correct information, then corresponding to modification can complete to introduce the reparation of information.
It should be understood that it is described by the wrong reference information with it is corresponding it is described be introduced into it is corresponding in XSD documents Information, which is modified as consistent step, to be embodied according to following two modes:The wrong reference information is changed Into consistent with the corresponding corresponding informance that is introduced into XSD documents, for example, by the introducing document title of A documents be modified as with The document title of B documents is consistent;Or
By the corresponding informance being introduced into XSD documents be modified as with the corresponding wrong reference information, such as The document title of B documents is modified as consistent with the introducing document title of A documents.
To sum up, the document restorative procedure among the above embodiment of the present invention, due to introducing the relevance of information, when determining , can be automatically according to the association related to the wrong reference information when in the XSD documents comprising wrong reference information Reference information is introduced into XSD documents corresponding to finding, and the XSD documents that are introduced into the wrong reference by comprising believing Correct information corresponding to breath, then by the wrong reference information and the corresponding corresponding letter being introduced into XSD documents Breath is modified as consistent, you can realization is modified to the wrong reference information, is repaired after completing, comprising described wrong The XSD documents of reference information can normal load.
Referring to Fig. 2, the document restorative procedure showing in second embodiment of the invention, including step S11 is to step S18。
Step S11, all XSD documents under current filesselected catalogue are traveled through, to extract each XSD documents Name title, default names space, the introducing for defining typonym, introducing document title and being associated with the introducing document title Name space and introducing typonym.
It is pointed out that the document title of the entitled XSD documents of name of the XSD documents.
Step S12, by the name title of each XSD documents, the definition typonym and the acquiescence name Word space, which is established, defines information MAP table.
It is pointed out that establishing the mode for defining information MAP table can be:By the institute of each XSD documents State name title, it is described define typonym and the default names space according to default form establish mode establish it is described fixed Adopted information MAP table;Or according to default form writing mode by the name title of each XSD documents, the definition Typonym and the default names space are written in the form prestored, and the form prestored can be carried out It is default.
Step S13, the introducing name of the introducing document title of each XSD documents and corresponding association is empty Between and it is described introducing typonym establish introduce information MAP table.
Wherein, document title and the typonym that introduces of introducing is the corresponding association for introducing name space Reference information.
It should be understood that establishing the information MAP table and the introducing information MAP table of defining is advantageous in that after being easy to The extraction and inquiry of continuous related information and corresponding informance.
Step S14, the introducing document title of mistake is judged whether, the wrong introducing document title is corresponding The introducing document title that document is not present.
Wherein, the wrong document title that introduces is wrong reference information, described to judge whether drawing for mistake The step of entering document title can be embodied in such a way:First determine whether that each introducing document title is corresponding Document whether there is, if being not present, the current introducing document title is the wrong introducing document title.
When the step S14, which is determined, the wrong introducing document title be present, then step S15 is performed to step S16, when the step S14 is determined in the absence of the wrong introducing document title, then it is failure to actuate.
Step S15, by each wrong introducing name space for introducing document title association successively with owning The default names space matched, give tacit consent to name to obtain introducing the consistent target of name space with the target of current matching Word space.
Wherein, the introducing name space of the wrong introducing document title association can be from the corresponding introducing Extracted in information MAP table.
Step S16, judges whether object definition typonym corresponding to the target default names space includes the mesh Index target corresponding to name space and introduce typonym.
Wherein, the object definition typonym corresponding to the target default names space can be from corresponding described fixed Extracted in adopted information MAP table, and the target introducing typonym can be from correspondingly corresponding to target introducing name space Described be introduced into information MAP table extract.
Furthermore, it is to be understood that, the step S15 and the step S16 are to look for the corresponding mistake for being introduced into XSD documents Journey, the mode of lookup are:The target first associated according to wrong introducing document title introduces name space and goes to search consistent write from memory Recognize name space, if the default names space in C documents and D documents is consistent with target introducing name space, then, the mistake It is one among C documents and D documents that document is introduced into corresponding to introducings document title by mistake, now the step S16 generals Judged, judge C documents and the definition typonym in D documents whether the mesh that the introducing document title comprising the mistake associates Index into typonym, if C documents include the target and introduce typonym, then C documents are as corresponding is introduced into document.
When the step S16, which determines the object definition typonym, includes target introducing typonym, then Perform step S17 to step S18.
Step S17, target XSD corresponding to the object definition typonym of typonym will be introduced including the target Document is introduced into XSD documents as described corresponding to target introducing typonym.
Step S18, by the wrong introducing document title and the corresponding name name for being introduced into XSD documents Title is modified as consistent.
It should be understood that after whole repair process is completed, it is also necessary to which the corresponding XSD documents repaired are preserved.
To sum up, the document restorative procedure among the above embodiment of the present invention, the XSD under current filesselected catalogue When the introducing document title of mistake be present in document, corresponding to find it is described be introduced into XSD documents by way of, and by the mistake Introducings document title and the corresponding name name modifications for being introduced into XSD documents into consistent by mistake, you can completion institute State the reparation of XSD documents, it is ensured that all XSD documents under current filesselected catalogue can be loaded correctly.
Another aspect of the present invention also provides a kind of document repair system, refer to Fig. 3, show third embodiment of the invention In document repair system include:
Reference information judge module 11, for judging whether included in all XSD documents under current filesselected catalogue The reference information of mistake;
Related information searching modul 12, for when determining in the XSD documents comprising the wrong reference information, XSD documents are introduced into according to corresponding to searching the association reference information related to the wrong reference information;
Information modified module 13, by the wrong reference information with it is corresponding it is described be introduced into it is corresponding in XSD documents Information is modified as unanimously.
Further, the wrong reference information includes the introducing document title of mistake, and the reference information judges mould Block 11 includes:
Traversal Unit 111, for traveling through all XSD documents, to extract the introducing of each XSD documents text Shelves title;
First judging unit 112, for judging whether the wrong introducing document title, the wrong introducing Document title is the introducing document title that corresponding document is not present.
Further, each XSD documents are also extracted among the process of all XSD documents of the traversal Definition information, and also extract and each association reference information for introducing document title and associate, the definition are believed Breath include name title, default names space and define typonym, it is described association reference information include introduce name space with Typonym is introduced, the related information searching modul 12 includes:
Matching unit 121, for by each wrong introducing name space for introducing document title association according to It is secondary to be matched with all default names spaces, to obtain the mesh consistent with the target of current matching introducing name space Mark default names space;
Second judging unit 122, for judging that object definition typonym corresponding to the target default names space is It is no to introduce target introducing typonym corresponding to name space including the target;
Processing unit 123, it is for the object definition typonym corresponding to determine the target default names space When introducing target introducing typonym corresponding to name space including the target, typonym will be introduced including the target Target XSD documents corresponding to the object definition typonym introduce described corresponding to typonym be introduced into as the target XSD documents.
Further, described information modified module 13 includes:
Information changes unit 131, for by the wrong introducing document title and corresponding described being introduced into XSD documents The name name modifications into consistent.
Further, the document repair system also includes:
First mapping table establishes module 14, for by the name title of each XSD documents, the definition type Title and the default names space, which are established, defines information MAP table;
Second mapping table establishes module 15, for the introducing document title of each XSD documents and correspondence to be closed The introducing name space of connection and the introducing typonym are established and introduce information MAP table.
The present invention also proposes a kind of computer-readable recording medium, is stored thereon with computer program, the program is processed Device realizes document restorative procedure described above when performing.
The present invention also proposes a kind of computer equipment, including memory, processor and storage are on a memory and can be The computer program run on processor, document restorative procedure described above is realized during the computing device described program.
It will be understood by those skilled in the art that in flow charts represent or logic described otherwise above herein and/or Step, for example, being considered the order list of the executable instruction for realizing logic function, it may be embodied in and appoint In what computer-readable medium, for instruction execution system, device or equipment (such as computer based system including processor System or other can be from the system of instruction execution system, device or equipment instruction fetch and execute instruction) use, or with reference to this A little instruction execution system, device or equipment and use.For the purpose of this specification, " computer-readable medium " can be it is any can be with Comprising, store, communicate, propagate or transmit program and perform system for instruction execution system, device or equipment or with reference to these instructions System, device or equipment and the device used.
The more specifically example (non-exhaustive list) of computer-readable medium includes following:Connected up with one or more Electrical connection section (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or combinations thereof are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any One or more embodiments or example in combine in an appropriate manner.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

  1. A kind of 1. document restorative procedure, it is characterised in that including:
    Whether judge in all XSD documents under current filesselected catalogue comprising wrong reference information;
    If so, then it is introduced into XSD documents according to corresponding to searching the association reference information related to the wrong reference information;
    The wrong reference information is modified as unanimously with the corresponding corresponding informance being introduced into XSD documents.
  2. 2. document restorative procedure according to claim 1, it is characterised in that the wrong reference information includes mistake Document title is introduced, the reference information of mistake whether is included in all XSD documents judged under current filesselected catalogue The step of include:
    All XSD documents are traveled through, to extract the introducing document title of each XSD documents;
    The wrong introducing document title is judged whether, the wrong introducing document title is that corresponding document is not deposited The introducing document title.
  3. 3. document restorative procedure according to claim 2, it is characterised in that in all XSD documents of the traversal The step of it is central also extract the definition information of each XSD documents, and also extract and each introducing document title The association reference information of association, the information that defines include name title, default names space and define typonym, institute Stating association reference information includes introducing name space and introduces typonym, and the basis is related to the wrong reference information Association reference information search corresponding to the step of being introduced into XSD documents include:
    By each wrong introducing name space for introducing document title association successively with all acquiescence names Word space is matched, to obtain the target default names space consistent with the target of current matching introducing name space;
    Judge whether object definition typonym corresponding to the target default names space includes the target and introduce name sky Between corresponding target introduce typonym;
    If so, then target XSD documents corresponding to the object definition typonym of typonym will be introduced including the target XSD documents are introduced into as described corresponding to target introducing typonym.
  4. 4. document restorative procedure according to claim 3, it is characterised in that it is described by the wrong reference information with it is right The corresponding informance being introduced into XSD documents answered, which is modified as consistent step, to be included:
    By the wrong introducing document title and the corresponding name name modifications for being introduced into XSD documents into one Cause.
  5. 5. document restorative procedure according to claim 3, it is characterised in that in all XSD documents of the traversal The step of after, in addition to:
    It is fixed that the name title of each XSD documents, the definition typonym and the default names space are established Adopted information MAP table;
    By the introducing name space and the introducing of the introducing document title of each XSD documents and corresponding association Typonym, which is established, introduces information MAP table.
  6. A kind of 6. document repair system, it is characterised in that including:
    Reference information judge module, for whether judging in all XSD documents under current filesselected catalogue comprising mistake Reference information;
    Related information searching modul, for when determining in the XSD documents comprising the wrong reference information, according to The related association reference information of the wrong reference information is introduced into XSD documents corresponding to searching;
    Information modified module, for by the wrong reference information and it is corresponding it is described be introduced into XSD documents it is corresponding letter Breath is modified as consistent.
  7. 7. document repair system according to claim 6, it is characterised in that the wrong reference information includes mistake Document title is introduced, the reference information judge module includes:
    Traversal Unit, for traveling through all XSD documents, to extract the introducing document title of each XSD documents;
    First judging unit, for judging whether the wrong introducing document title, the wrong introducing document name The introducing document title that referred to as corresponding document is not present.
  8. 8. document repair system according to claim 7, it is characterised in that in all XSD documents of the traversal Process among also extract the definition information of each XSD documents, and also extract and each introducing document title The association reference information of association, the information that defines include name title, default names space and define typonym, institute Stating association reference information includes introducing name space and introduces typonym, and the related information searching modul includes:
    Matching unit, for by each wrong introducing name space for introducing document title association successively with it is all The default names space matched, give tacit consent to name to obtain introducing the consistent target of name space with the target of current matching Word space;
    Second judging unit, for judging whether object definition typonym corresponding to the target default names space includes institute State target and introduce target introducing typonym corresponding to name space;
    Processing unit, for the object definition typonym corresponding to determine the target default names space be include described in When target introduces target introducing typonym corresponding to name space, the target that the target introduces typonym will be included Define target XSD documents corresponding to typonym and be introduced into XSD documents as described corresponding to target introducing typonym.
  9. 9. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is held by processor The method as described in claim 1-5 is any is realized during row.
  10. 10. a kind of computer equipment, including memory, processor and storage can be run on a memory and on a processor Computer program, it is characterised in that the side as described in claim 1-5 is any is realized during the computing device described program Method.
CN201710549395.4A 2017-07-07 2017-07-07 Document repairing method, system, readable storage medium and computer equipment Active CN107479910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710549395.4A CN107479910B (en) 2017-07-07 2017-07-07 Document repairing method, system, readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710549395.4A CN107479910B (en) 2017-07-07 2017-07-07 Document repairing method, system, readable storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN107479910A true CN107479910A (en) 2017-12-15
CN107479910B CN107479910B (en) 2020-11-20

Family

ID=60596072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710549395.4A Active CN107479910B (en) 2017-07-07 2017-07-07 Document repairing method, system, readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN107479910B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990593A (en) * 2019-12-17 2020-04-10 北大方正集团有限公司 Method and device for detecting reference falling space

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020169825A1 (en) * 2001-05-11 2002-11-14 Benson Hougland XML-enabled control and monitoring method and apparatus
CN1755689A (en) * 2004-09-30 2006-04-05 微软公司 Method, system, and computer-readable medium for merging data from multiple data sources for use in an electronic document

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020169825A1 (en) * 2001-05-11 2002-11-14 Benson Hougland XML-enabled control and monitoring method and apparatus
CN1755689A (en) * 2004-09-30 2006-04-05 微软公司 Method, system, and computer-readable medium for merging data from multiple data sources for use in an electronic document

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刁明光等: "矿山遥感监测属性数据复杂约束类型的描述方法", 《国土资源遥感》 *
清风半夜鸣蝉: "Dubbo cvc-complex-type.2.4.c错误,dubbo.xsd", 《HTTPS://BLOG.CSDN.NET/YS5773477/ARTICLE/DETAILS/53427374/》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990593A (en) * 2019-12-17 2020-04-10 北大方正集团有限公司 Method and device for detecting reference falling space
CN110990593B (en) * 2019-12-17 2023-09-19 新方正控股发展有限责任公司 Citation falling empty detection method and device

Also Published As

Publication number Publication date
CN107479910B (en) 2020-11-20

Similar Documents

Publication Publication Date Title
US11573949B2 (en) Semantic diff and automerge
KR101608099B1 (en) Simultaneous collaborative review of a document
US7376673B1 (en) Offline editing of XML files using a solution
US20160306612A1 (en) Determining errors and warnings corresponding to a source code revision
US7617444B2 (en) File formats, methods, and computer program products for representing workbooks
CN105335137B (en) Method and apparatus for handling source file
US9965472B2 (en) Content revision using question and answer generation
US20060277452A1 (en) Structuring data for presentation documents
CN103164334B (en) Detect the system and method for the breakaway poing in web application automatic test case
CN102279749B (en) Method and equipment for merging codes
US20080086718A1 (en) Method and Apparatus for Identifying Authors of Changes Between Multiple Versions of a File
US11960879B2 (en) Code conflict resolution system and method, apparatus, device, and medium
US7904809B2 (en) Model-based editors for dynamic validation
US7720814B2 (en) Repopulating a database with document content
US7631004B2 (en) Systems and methods for creating a template from an existing file
Halpin UML data models from an ORM perspective: Part 1
WO2005026993A1 (en) A system and method for managing item interchange and identification in an extended enterprise
US9836435B2 (en) Embedded content suitability scoring
CN108446115A (en) A kind of method and device of code reuse
JP2016126693A (en) Control procedure method, control procedure program, and control procedure device
US8521762B2 (en) Automated business process modeling
CN107479910A (en) Document restorative procedure, system, readable storage medium storing program for executing and computer equipment
US20190294526A1 (en) Code difference flaw scanner
CN108629026A (en) A kind of update method of full-text index, device, equipment and storage medium
US8843896B2 (en) Metamodeling contextual navigation of computer software applications

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