CN116127922A - Intellectual property file processing method and device - Google Patents

Intellectual property file processing method and device Download PDF

Info

Publication number
CN116127922A
CN116127922A CN202310417459.0A CN202310417459A CN116127922A CN 116127922 A CN116127922 A CN 116127922A CN 202310417459 A CN202310417459 A CN 202310417459A CN 116127922 A CN116127922 A CN 116127922A
Authority
CN
China
Prior art keywords
file
attribute
source
target
source file
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
CN202310417459.0A
Other languages
Chinese (zh)
Other versions
CN116127922B (en
Inventor
贾辉辉
高旭
陈晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Luhao Intellectual Property Group Co ltd
Original Assignee
Beijing Luhao Intellectual Property Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Luhao Intellectual Property Group Co ltd filed Critical Beijing Luhao Intellectual Property Group Co ltd
Priority to CN202310417459.0A priority Critical patent/CN116127922B/en
Publication of CN116127922A publication Critical patent/CN116127922A/en
Application granted granted Critical
Publication of CN116127922B publication Critical patent/CN116127922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • G06F40/154Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services; Handling legal documents
    • G06Q50/184Intellectual property management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a method and a device for processing intellectual property files, wherein the method comprises the following steps: when a submitted file generation instruction corresponding to a target flow in the intellectual property transaction process is received, at least one source file corresponding to the target flow and a first view object file corresponding to the source file are acquired; assigning each first attribute in the first view object file based on the source file to obtain a second view object file; assigning a target attribute in a first entity object file corresponding to the source file based on the second view object file to obtain a second entity object file; and converting the second entity object file into a first XML file corresponding to the source file, and generating a submitting file corresponding to the target flow based on the first XML file corresponding to each source file. The invention can effectively avoid data loss caused by incompatibility of data types in the process of converting the source file into the XML file, and ensures the accuracy of the generated submitted file.

Description

Intellectual property file processing method and device
Technical Field
The invention relates to the technical field of electric digital data processing, in particular to an intellectual property file processing method and device.
Background
XML (Extensible Markup Language ) is a source language that allows users to define their own markup language, can describe the content and structural characteristics of data at the same time, facilitates understanding of semantic relationships between data, and facilitates reading and writing of data in any application program, and is widely used in the handling of intellectual property business.
In the related art, in the process of transacting intellectual property transactions, character data in a form to be submitted is generally converted directly into an XML format, or each attribute in an XML file is assigned using an XML API (Application Programming Interface ), such as Dom4 j. Because the XML data types are less compatible, when character data in a form to be submitted is converted into an XML format or each attribute in an XML file is assigned by using an XML API, the data is extremely easy to be lost, and the accuracy of the submitted file to the authorities cannot be ensured.
Disclosure of Invention
Aiming at the problems existing in the related art, the invention provides a method and a device for processing intellectual property files.
The invention provides an intellectual property file processing method, which comprises the following steps:
When a submitted file generation instruction corresponding to a target flow in an intellectual property transaction process is received, at least one source file corresponding to the target flow and a first view object file corresponding to the source file are acquired; wherein the first view object file is generated based on a template file corresponding to the source file;
assigning each first attribute in the first view object file based on the source file to obtain a second view object file corresponding to the source file;
assigning a target attribute in a first entity object file corresponding to the source file based on the second view object file to obtain a second entity object file corresponding to the source file; wherein the first entity object file is generated based on the template file;
and converting the second entity object file into a first XML file corresponding to the source file, and generating a submitting file corresponding to the target flow based on the first XML file corresponding to each source file.
According to the intellectual property file processing method provided by the invention, the first view object file is obtained by the following method:
Analyzing the template file to obtain a third entity object file corresponding to the source file;
and creating the first view object file based on the target attribute in the third entity object file.
According to the intellectual property file processing method provided by the invention, the first entity object file is obtained by the following method:
performing format conversion on the template file to obtain a second XML file;
and assigning null values to each second attribute in the third entity object file based on the second XML file to obtain the first entity object file.
According to the intellectual property file processing method provided by the invention, the assignment of each first attribute in the first view object file based on the source file comprises the following steps:
acquiring third attributes in the source file and attribute values corresponding to the third attributes;
and respectively matching the third attribute with each first attribute in the first view object file, and if the matching is successful, assigning the corresponding first attribute based on the attribute value corresponding to the third attribute.
According to the intellectual property file processing method provided by the invention, the assignment of the target attribute in the first entity object file corresponding to the source file based on the second view object file comprises the following steps:
Respectively matching a first attribute in the second view object file with each target attribute in the first entity object file, and if the matching is successful, determining whether an attribute value corresponding to the first attribute in the second view object file meets a preset value condition of the corresponding target attribute;
if yes, assigning corresponding target attributes based on attribute values corresponding to the first attributes in the second view object file;
if the target value does not meet the preset attribute value, determining a corresponding target value of the target attribute based on the attribute value corresponding to the preset attribute in the second view object file, and assigning a value to the corresponding target attribute based on the target value.
According to the intellectual property file processing method provided by the invention, the obtaining at least one source file corresponding to the target flow comprises the following steps:
and acquiring the source file from a first preset storage system based on the first identification information corresponding to the target flow and the second identification information corresponding to the source file bound with the first identification information.
According to the intellectual property file processing method provided by the invention, the source file also comprises storage information of an attachment corresponding to the source file; the storage information is generated by a second preset storage system corresponding to the accessory;
The generating a submitted file corresponding to the target flow based on the first XML file corresponding to each source file includes:
acquiring the attachment corresponding to the source file based on the storage information, and storing the attachment in a sub-file package corresponding to the source file; wherein, the sub-file package corresponding to the source file also stores the first XML file corresponding to the source file; the sub-file packages corresponding to the source files are arranged in delivery packages corresponding to the target processes, and the delivery packages are created based on attribute information of the target processes when receiving the delivery file generation instructions corresponding to the target processes;
and compressing the submitted packet to obtain the submitted file corresponding to the target flow.
According to the intellectual property file processing method provided by the invention, the source file is generated by the following method:
responding to clicking operation of a file making component corresponding to the source file, and displaying a file editing interface corresponding to the source file; the file editing interface is used for displaying a form corresponding to the source file, and the form is created based on the first view object file corresponding to the source file;
Responding to the input operation of the file editing interface, and acquiring attribute values of corresponding input components in the form and the accessories;
compiling the attachment into a file stream, then sending the file stream to the second preset storage system, receiving response information sent by the second preset storage system, and obtaining the storage information based on the response information;
and responding to clicking operation of a save control in the file editing interface, and adding the stored information to the form to obtain the source file.
The invention also provides an intellectual property file processing device, which comprises:
the first processing module is used for acquiring at least one source file corresponding to a target flow and a first view object file corresponding to the source file when receiving a submitted file generation instruction corresponding to the target flow in the intellectual property transaction process; wherein the first view object file is generated based on a template file corresponding to the source file;
the second processing module is used for assigning values to all the first attributes in the first view object file based on the source file to obtain a second view object file corresponding to the source file;
The third processing module is used for assigning a target attribute in a first entity object file corresponding to the source file based on the second view object file to obtain a second entity object file corresponding to the source file; wherein the first entity object file is generated based on the template file;
and the fourth processing module is used for converting the second entity object file into a first XML file corresponding to the source file and generating a delivery file corresponding to the target flow based on the first XML file corresponding to each source file.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the intellectual property file processing method as described in any one of the above when executing the program.
According to the intellectual property file processing method and device, when the submitted file generation instruction corresponding to the target flow in the intellectual property transaction process is received, at least one source file corresponding to the target flow and the first view object files corresponding to the source files are obtained, the first attributes in the first view object files are assigned based on the source files to obtain the second view object files corresponding to the source files, the target attributes in the first entity object files corresponding to the source files are assigned based on the second view object files to obtain the second entity object files, the second entity object files are converted into the first XML files corresponding to the source files, the submitted files corresponding to the target flow are created based on the first XML files corresponding to the source files, and data loss caused by incompatibility of data types in the process of converting the source files into the XML files can be effectively avoided, so that the accuracy of the generated submitted files is ensured.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of the intellectual property file processing method provided by the invention;
FIG. 2 is a flowchart of a method for obtaining a first view object file according to the present invention;
FIG. 3 is a flowchart illustrating a method for obtaining a first entity object file according to the present invention;
FIG. 4 is a schematic flow chart of assigning values of first attributes in a first view object file based on a source file according to the present invention;
FIG. 5 is a schematic flow chart of generating a submitted file corresponding to a target flow based on a first XML file corresponding to each source file;
FIG. 6 is a flow chart of a method of generating a source file provided by the present invention;
fig. 7 is a schematic structural view of an intellectual property file processing apparatus provided by the present invention;
Fig. 8 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The intellectual property file processing method of the present invention is described below with reference to fig. 1 to 6. The intellectual property file processing method is executed by electronic equipment such as a server of an intellectual property transaction processing system or hardware and/or software in the electronic equipment. As shown in fig. 1, the intellectual property file processing method of the present invention at least includes the following steps:
s101, when a submitted file generation instruction corresponding to a target flow in an intellectual property transaction process is received, at least one source file corresponding to the target flow and a first view object file corresponding to the source file are acquired; wherein the first view object file is generated based on a template file corresponding to the source file.
S102, assigning values to all first attributes in the first view object file based on the source file to obtain a second view object file corresponding to the source file.
S103, assigning a target attribute in a first entity object file corresponding to the source file based on the second view object file to obtain a second entity object file corresponding to the source file; wherein the first entity object file is generated based on the template file.
S104, converting the second entity object file into a first XML file corresponding to the source file, and generating a submitting file corresponding to the target flow based on the first XML file corresponding to each source file.
In this embodiment, the target process is a process transacted at the current time in the intellectual property transaction process, such as an invention patent submitting process, an opinion statement submitting process, a bibliographic change process, and the like. The source file can be a file to be submitted after the information is filled in the process of handling the target flow, such as an invention patent request book, an opinion statement book, a writing project change declaration book and the like. The template file is downloaded from a official network, such as an invention patent request template, an opinion statement template and a bibliographic change declaration template. The target flow may include at least one source file.
Different source files correspond to different first view object files, the first view object files are generated based on template files corresponding to the source files, for example, the downloaded template files can be converted into XML format, and the first view object files are created based on target attributes in the XML format template files; the downloaded template file may be an XSD (XML Schema Definition ) or DTD (Data Type Definition, document type definition) format file. The downloaded template file can be analyzed to obtain a third entity object file corresponding to the template file, and a first view object file is created based on the target attribute in the third entity object file; the downloaded template file can be analyzed by Java language to obtain a third entity object file, wherein the third entity object file comprises a plurality of second attributes, and each second attribute in the third entity object file corresponds to each attribute in the template file one by one; the target attributes may be attributes to be filled in each second attribute of the third entity object file, for example, an inventor, a patentee, etc., where each target attribute in the third entity object file corresponds to each first attribute in the first view object file one by one.
The first entity object file is generated based on a template file corresponding to the source file, for example, a null value may be given to each second attribute in the third entity object file to obtain the first entity object file, that is, the first entity object file includes a plurality of second attributes, each second attribute in the first entity object file corresponds to the same second attribute in the third entity object file, and the target attribute in the first entity object file corresponds to the same target attribute in the third entity object file; wherein, the reflection may be used to null each second attribute in the third entity object file, or the template file in XML format may be used to null each second attribute in the third entity object file. It will be appreciated that the first view object file and the first entity object file may be maintained in advance in the intellectual property transaction system, so that the corresponding first view object file and first entity object file can be invoked in real time according to the identification information of the source file during the processing of the intellectual property file. When the template file is updated in the official network, the template file can be downloaded again, and the first view object file and the first entity object file are updated.
The intellectual property transaction processing system can comprise processing interfaces of each process, the processing interfaces can comprise a submitted file generation control, and a user can click the submitted file generation control after filling all files to be submitted in the target process so as to input a submitted file generation instruction. When receiving a submitted file generation instruction, at least one source file corresponding to the target flow can be obtained, and first XML files corresponding to the source files one by one are sequentially generated, so that submitted files corresponding to the target flow are generated based on the first XML files corresponding to the source files.
For any source file corresponding to the target flow, in the process of generating a first XML file corresponding to the source file, a first view object file corresponding to the source file can be obtained, and each first attribute in the corresponding first view object file is assigned based on the source file to obtain a second view object file corresponding to the source file, namely, the second view object file comprises a plurality of first attributes and attribute values corresponding to each first attribute, each first attribute in the second view object file corresponds to the same first attribute in the first view object file, and the attribute values corresponding to each first attribute in the second view object file are information filled by a user in the source file, so that the information filled by the user can be obtained quickly and accurately through the first view object file, and technical support is provided for improving the accuracy of the submitted file. After the second view object file is obtained, the target attribute in the corresponding first entity object file can be assigned based on the second view object file to obtain a second entity object file corresponding to the source file, that is, the second entity object file comprises a plurality of second attributes and attribute values corresponding to the second attributes, each second attribute in the second entity object file corresponds to each second attribute in the first entity object file the same, each target attribute in the second entity object file corresponds to each target attribute in the first entity object file the same, wherein the attribute value corresponding to each target attribute in the second entity object file corresponds to the attribute value of each first attribute in the second view object file the same, and the attribute value corresponding to each second attribute except the target attribute in the second entity object file is a null value, so that information filled by a user is written into the entity object through the second view object file. After the second entity object file is obtained, the second entity object file can be converted into the first XML file corresponding to the source file, and data loss caused by incompatibility of data types can be effectively avoided through format conversion of the entity object, so that the accuracy of the generated submitted file is ensured. An empty XML file can be created in the sub-file package corresponding to the source file, data in the second entity object file is converted into an XML format, and the empty XML file is written in the XML format, so that a first XML file corresponding to the source file is obtained. It can be understood that each source file corresponds to a sub-file package, and each sub-file package is set in a delivery package corresponding to the target flow, and the delivery package and the sub-file package can be generated when receiving a delivery file generation instruction.
After obtaining the first XML file corresponding to each source file, a delivery file corresponding to the target flow may be created based on the first XML file corresponding to each source file. For example, whether each source file needs to upload an attachment in the information filling process can be determined, wherein whether the corresponding source file needs to upload an attachment can be determined based on a preset corresponding relation and identification information of the source file, and the preset corresponding relation is used for representing the corresponding relation between the identification information of the source file and whether the attachment needs to be uploaded; if all the source files do not need to upload attachments, the submitted package can be directly compressed after the first XML file corresponding to each source file is obtained, so that the submitted file is obtained; otherwise, respectively obtaining attachments corresponding to the source files, putting the attachments into sub-file packages corresponding to the source files, namely, putting a first XML file and the attachments corresponding to the source files in the sub-file packages, and compressing the submitted packages to obtain submitted files corresponding to the target flow.
According to the method, when a submitted file generation instruction corresponding to a target process in an intellectual property transaction process is received, at least one source file corresponding to the target process and a first view object file corresponding to each source file are obtained, each first attribute in the first view object file is assigned based on the source file to obtain a second view object file corresponding to the source file, each target attribute in a first entity object file corresponding to the source file is assigned based on the second view object file to obtain a second entity object file, the second entity object file is converted into a first XML file corresponding to the source file, and the submitted file corresponding to the target process is created based on the first XML file corresponding to each source file, so that data loss caused by incompatibility of data types in the process of converting the source file into the XML file can be effectively avoided, the accuracy of the generated submitted file is ensured, and the accuracy of the submitted file to the party is ensured.
In an exemplary embodiment, as shown in fig. 2, the first view object file is obtained by:
s201, analyzing the template file to obtain a third entity object file corresponding to the source file;
s202, creating the first view object file based on the target attribute in the third entity object file.
In this embodiment, when a new template file or a corresponding template file update is added to the home network, the corresponding template file may be downloaded again from the home network, and the first view object file may be generated based on the template file. In the process of generating the first view object file, the downloaded template file may be parsed, for example, the downloaded template file may be parsed in Java language, so as to obtain a third entity object file corresponding to the source file. The third entity object file comprises a plurality of second attributes, and the second attributes in the third entity object file are in one-to-one correspondence with the attributes in the template file, namely, the third entity object file comprises all the attributes in the template file.
After the third entity object file is obtained, the target attribute in each second attribute of the third entity object file can be obtained, and the first view object file is created based on the target attribute, so that the accuracy of the first view object file can be effectively ensured, and technical support is provided for improving the accuracy of the submitted file.
It can be understood that the first attribute in the first view object file corresponds to the target attribute in the third entity object file one by one, so that the information filled by the user can be obtained efficiently through the first view object file, and the generation efficiency of the submitted file is improved.
In an exemplary embodiment, as shown in fig. 3, the first entity object file is obtained by:
s301, performing format conversion on the template file to obtain a second XML file;
s302, assigning null values to each second attribute in the third entity object file based on the second XML file to obtain the first entity object file.
In this embodiment, after downloading the corresponding template file from the official network, format conversion may also be performed on the template file to obtain an XML file corresponding to the template file, that is, a second XML file. The template file may be formatted through a Schema language, that is, the second XML file includes all the attributes in the template file.
After the second XML file is obtained, a null value may be assigned to each second attribute in the third entity object file based on the second XML file, so as to obtain the first entity object file. Because each second attribute in the third entity object file corresponds to each attribute in the second XML file one by one, the null value can be quickly and effectively assigned to each second attribute in the third entity object, and the generation efficiency of the first entity object file is improved. Meanwhile, each second attribute in the third entity object file is null, and assignment of information to the second attribute which is not required to be filled by a user is not required to be carried out through the second view object file, namely, the first view object file does not need to comprise all the attributes in the template file, so that efficient acquisition of information filled by the user is realized, errors when the second entity object file is converted into a corresponding first XML file can be effectively avoided, and the effectiveness of the first XML file is ensured.
In an exemplary embodiment, as shown in fig. 4, the assigning each first attribute in the first view object file based on the source file includes:
s401, acquiring third attributes in the source file and attribute values corresponding to the third attributes;
and S402, respectively matching the third attribute with each first attribute in the first view object file, and if the matching is successful, assigning corresponding first attributes based on the attribute values corresponding to the third attribute.
In this embodiment, the source file may include a plurality of third attributes, where the plurality of third attributes may correspond to the plurality of first attributes in the first view object file one-to-one. In the process of assigning each first attribute in the first view object file based on the source file, a third attribute in the source file and an attribute value corresponding to each third attribute can be obtained. For example, a preset symbol in the source file may be identified, and the third attribute and an attribute value corresponding to the third attribute may be obtained based on an identification result of the preset symbol. The preset symbol may be a colon, and the character string before the colon may be identified as a third attribute, and the character string after the colon may be identified as an attribute value of the corresponding third attribute.
After the third attribute in the source file and the attribute value corresponding to each third attribute are obtained, the third attribute can be respectively matched with each first attribute in the first view object file, if the matching fails, the third attribute in the source file and the attribute value corresponding to each third attribute can be obtained again, and if the number of times of matching errors reaches the preset number of times, errors can be reported, so that system maintenance personnel can update the system conveniently. If the matching is successful, the corresponding first attribute in the first view object file can be assigned based on the attribute value corresponding to the third attribute in the source file, so that the information filled in by the user is written in the first view object file. If all the first attributes in the first view object file are matched and assigned, the second view object file can be obtained, so that the information filled by the user can be rapidly and accurately obtained, and technical support is provided for improving the accuracy of the submitted file.
In an exemplary embodiment, the assigning, based on the second view object file, the target attribute in the first entity object file corresponding to the source file includes:
respectively matching a first attribute in the second view object file with each target attribute in the first entity object file, and if the matching is successful, determining whether an attribute value corresponding to the first attribute in the second view object file meets a preset value condition of the corresponding target attribute;
If yes, assigning corresponding target attributes based on attribute values corresponding to the first attributes in the second view object file;
if the target value does not meet the preset attribute value, determining a corresponding target value of the target attribute based on the attribute value corresponding to the preset attribute in the second view object file, and assigning a value to the corresponding target attribute based on the target value.
In this embodiment, in the process of assigning the target attribute in the first entity object file based on the second view object file, the first attribute in the second view object file may be respectively matched with each target attribute in the first entity object file, if the matching fails, the first attribute may be matched with each target attribute in the first entity object file again, and if the number of times of matching errors reaches a preset number of times, an error may be reported, so as to facilitate system maintenance personnel to upgrade the system. If the matching is successful, whether the attribute value corresponding to the first attribute meets the preset value condition of the corresponding target attribute can be further determined, and if so, the corresponding target attribute can be assigned directly based on the attribute value of the first attribute; if the first attribute is not satisfied, a target value of the target attribute corresponding to the first attribute may be determined, and a corresponding target attribute may be assigned based on the target value, where the target value may be determined based on an attribute value corresponding to a preset attribute in each first attribute of the second view object file. For example, when the target attribute is "applicant certificate type", the preset value condition corresponding to the target attribute may be non-null, if the attribute value of the corresponding first attribute is null, the target value of the target attribute may be determined based on the attribute value corresponding to "applicant type" in the first attribute, when the "applicant type" is personal, the target value of "applicant certificate type" may be "citizen identity card", and when the "applicant type" is not personal, the target value of "applicant certificate type" may be "unified social credit code". When the target attribute is "representative", the preset value condition corresponding to the target attribute may include a representative, and if the attribute value of the corresponding first attribute is null, the target value of the target attribute may be determined based on the attribute value of "applicant" in the first attribute, for example, the first signed applicant in the attribute value of "applicant" may be used as the target value of "representative"; if the attribute value of the corresponding first attribute includes a plurality of representatives, the first signed representative of the attribute values of "representative" may be taken as the target value of "representative".
And if all the target attributes in the first entity object file are matched and assigned, the second entity object file can be obtained, so that the accuracy and the effectiveness of the second entity object file can be effectively ensured, and technical support is provided for improving the accuracy of the submitted file.
In an exemplary embodiment, the obtaining at least one source file corresponding to the target flow includes:
and acquiring the source file from a first preset storage system based on the first identification information corresponding to the target flow and the second identification information corresponding to the source file bound with the first identification information.
In this embodiment, the first preset storage system is configured to store source files corresponding to each flow in the intellectual property transaction process, and the first preset storage system may be a preset database. In the intellectual property transaction process, when the intellectual property transaction starts a corresponding target flow, first identification information of the target flow can be generated, and the first identification information can be a unique identification number of the target flow. Meanwhile, when a new template file is added, a form and identification information of the form can be generated based on the newly added template file, the generated form can be used for information filling by a user to obtain a corresponding source file, and in the source file storage process, the identification information of the corresponding form can be used as second identification information of the source file and bound with first identification information of a target flow.
In the process of obtaining at least one source file corresponding to the target flow, the at least one source file corresponding to the target flow can be matched from a first preset storage system based on the first identification information of the target flow and the second identification information bound with the first identification information, so that the source file corresponding to the target flow is quickly and comprehensively matched, and the accuracy and the effectiveness of the generated submitted file are further improved.
In an exemplary embodiment, the source file further includes storage information of an attachment corresponding to the source file; the storage information is generated by a second preset storage system corresponding to the accessory;
as shown in fig. 5, the generating, based on the first XML file corresponding to each source file, a delivery file corresponding to the target flow includes:
s501, acquiring the attachment corresponding to the source file based on the storage information, and storing the attachment in a sub-file package corresponding to the source file; wherein, the sub-file package corresponding to the source file also stores the first XML file corresponding to the source file; the sub-file packages corresponding to the source files are arranged in delivery packages corresponding to the target processes, and the delivery packages are created based on attribute information of the target processes when receiving the delivery file generation instructions corresponding to the target processes;
S502, compressing the submitted package to obtain the submitted file corresponding to the target flow.
In this embodiment, when a submitted file generation instruction is received, a submitted packet corresponding to a target flow may be created based on attribute information of the target flow, and the attribute information of the target flow may be a flow name or the like. Meanwhile, a sub-file package corresponding to each source file one by one can be created in the submitting package, and the sub-file package is used for storing a first XML file and an attachment corresponding to the corresponding source file.
When the attachment is required to be uploaded in the process of filling the information into the source file, if the storage operation of the user on the source file is obtained, the attachment can be stored in a second preset storage system, and the second preset storage system can be an OSS (Object Storage Service ). The second preset storage system can generate and feed back the storage information of the accessory when receiving the accessory, and adds the storage information of the accessory to the source file and stores the source file to the first preset storage system when receiving the storage information fed back by the second preset storage system. It will be appreciated that the second preset storage system may also generate other attachment information for the attachment, such as an attachment name, an attachment type, an attachment size, etc., when the attachment is received.
In the process of generating the submitted file corresponding to the target flow based on the first XML file corresponding to each source file, for the source file containing the storage information of the attachment, the attachment corresponding to the source file may be obtained from the second preset storage system based on the storage information in the source file, and the attachment may be placed in the sub-file package corresponding to the source file, so that the sub-file package corresponding to the source file includes the corresponding first XML file and the attachment at the same time.
After the files to be stored in each sub-file package are processed, the submitted package corresponding to the target flow can be compressed to obtain the submitted file corresponding to the target flow, so that the comprehensiveness and effectiveness of the generated submitted file can be effectively ensured.
In an exemplary embodiment, as shown in FIG. 6, the source file is generated by the following method:
s601, responding to clicking operation of a file making component corresponding to the source file, and displaying a file editing interface corresponding to the source file; the file editing interface is used for displaying a form corresponding to the source file, and the form is created based on the first view object file corresponding to the source file;
S602, responding to input operation of the file editing interface, and acquiring attribute values of corresponding input components in the form and the accessories;
s603, compiling the attachment into a file stream, then sending the file stream to the second preset storage system, receiving response information sent by the second preset storage system, and obtaining the storage information based on the response information;
s604, responding to clicking operation of a save control in the file editing interface, and adding the stored information to the form to obtain the source file.
In this embodiment, the intellectual property transaction system may further include a file editing interface. Meanwhile, a file making control corresponding to each source file can be set in a flow handling interface of the target flow, a file editing interface corresponding to the corresponding source file can be displayed in response to clicking operation of a user on the file making control, the file editing interface is used for displaying a form corresponding to the source file, the form corresponding to the source file is created based on a first view object file corresponding to the source file, a plurality of third attributes and input components corresponding to the third attributes one by one can be included in the form, the third attributes in the form are identical to the first attributes in the first view object file, and attribute values and attachments of the corresponding third attributes can be acquired in response to input operation of the user on the input components corresponding to the third attributes, so that information filled in by the user on the file editing interface can be quickly and comprehensively acquired.
After the attachment is obtained, the attachment can be compiled into a file stream and sent to a file receiving interface of a second preset storage system, the second preset storage system can analyze and store the file stream after receiving the corresponding file stream, and response information can be generated and fed back, wherein the response information can comprise storage information of the attachment and other attachment information. After receiving the response information sent by the second preset storage system, the storage information of the accessory and other accessory information can be obtained based on the response information, when the clicking operation of a user on the storage control in the file editing interface is received, the storage information and other accessory information are added into the form as attribute values of corresponding third attributes, so that a source file is obtained, and the source file is stored into the first preset storage system, namely, the third attributes in the source file correspond to the third attributes in the corresponding form. When the assignment is performed on the target attribute corresponding to the attachment in the first entity object file based on the second view object file, the stored information of the attachment may be filtered, for example, the attachment name and the attachment type may be used as target values of the target attribute corresponding to the attachment, and the assignment is performed on the corresponding target attribute through the target values.
Meanwhile, when the clicking operation of a user on the storage control in the file editing interface is received, the second identification information corresponding to the source file and the first identification information corresponding to the target flow are bound, so that the source file corresponding to the target flow can be quickly and comprehensively obtained from the first preset storage system according to the first identification information and the second identification information when the submitted file is generated.
The intellectual property file processing apparatus provided by the present invention will be described below, and the intellectual property file processing apparatus described below and the intellectual property file processing method described above may be referred to correspondingly to each other. As shown in fig. 7, the intellectual property file processing apparatus of the present invention at least includes:
a first processing module 701, configured to, when receiving a submitted file generation instruction corresponding to a target flow in an intellectual property transaction process, obtain at least one source file corresponding to the target flow and a first view object file corresponding to the source file; wherein the first view object file is generated based on a template file corresponding to the source file;
a second processing module 702, configured to assign values to each first attribute in the first view object file based on the source file, so as to obtain a second view object file corresponding to the source file;
A third processing module 703, configured to assign a target attribute in a first entity object file corresponding to the source file based on the second view object file, so as to obtain a second entity object file corresponding to the source file; wherein the first entity object file is generated based on the template file;
a fourth processing module 704, configured to convert the second entity object file into a first XML file corresponding to the source file, and generate a submitted file corresponding to the target flow based on the first XML file corresponding to each source file.
In an exemplary embodiment, a fifth processing module is further included, the fifth processing module configured to:
analyzing the template file to obtain a third entity object file corresponding to the source file;
and creating the first view object file based on the target attribute in the third entity object file.
In an exemplary embodiment, the method further comprises a sixth processing module for:
performing format conversion on the template file to obtain a second XML file;
and assigning null values to each second attribute in the third entity object file based on the second XML file to obtain the first entity object file.
In an exemplary embodiment, the second processing module 702 is specifically configured to:
acquiring third attributes in the source file and attribute values corresponding to the third attributes;
and respectively matching the third attribute with each first attribute in the first view object file, and if the matching is successful, assigning the corresponding first attribute based on the attribute value corresponding to the third attribute.
In an exemplary embodiment, the third processing module 703 is specifically configured to:
respectively matching a first attribute in the second view object file with each target attribute in the first entity object file, and if the matching is successful, determining whether an attribute value corresponding to the first attribute in the second view object file meets a preset value condition of the corresponding target attribute;
if yes, assigning corresponding target attributes based on attribute values corresponding to the first attributes in the second view object file;
if the target value does not meet the preset attribute value, determining a corresponding target value of the target attribute based on the attribute value corresponding to the preset attribute in the second view object file, and assigning a value to the corresponding target attribute based on the target value.
In an exemplary embodiment, the first processing module 701 is specifically configured to:
and acquiring the source file from a first preset storage system based on the first identification information corresponding to the target flow and the second identification information corresponding to the source file bound with the first identification information.
In an exemplary embodiment, the source file further includes storage information of an attachment corresponding to the source file; the storage information is generated by a second preset storage system corresponding to the accessory; the fourth processing module 704 is specifically configured to:
acquiring the attachment corresponding to the source file based on the storage information, and storing the attachment in a sub-file package corresponding to the source file; wherein, the sub-file package corresponding to the source file also stores the first XML file corresponding to the source file; the sub-file packages corresponding to the source files are arranged in delivery packages corresponding to the target processes, and the delivery packages are created based on attribute information of the target processes when receiving the delivery file generation instructions corresponding to the target processes;
and compressing the submitted packet to obtain the submitted file corresponding to the target flow.
In an exemplary embodiment, a seventh processing module is further included, the seventh processing module configured to:
responding to clicking operation of a file making component corresponding to the source file, and displaying a file editing interface corresponding to the source file; the file editing interface is used for displaying a form corresponding to the source file, and the form is created based on the first view object file corresponding to the source file;
responding to the input operation of the file editing interface, and acquiring attribute values of corresponding input components in the form and the accessories;
compiling the attachment into a file stream, then sending the file stream to the second preset storage system, receiving response information sent by the second preset storage system, and obtaining the storage information based on the response information;
and responding to clicking operation of a save control in the file editing interface, and adding the stored information to the form to obtain the source file.
Fig. 8 illustrates a physical structure diagram of an electronic device, as shown in fig. 8, which may include: a processor 801, a communication interface (Communications Interface) 802, a memory 803, and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804. The processor 801 may call logic instructions in the memory 803 to perform an intellectual property file processing method comprising: when a submitted file generation instruction corresponding to a target flow in an intellectual property transaction process is received, at least one source file corresponding to the target flow and a first view object file corresponding to the source file are acquired; wherein the first view object file is generated based on a template file corresponding to the source file;
Assigning each first attribute in the first view object file based on the source file to obtain a second view object file corresponding to the source file;
assigning a target attribute in a first entity object file corresponding to the source file based on the second view object file to obtain a second entity object file corresponding to the source file; wherein the first entity object file is generated based on the template file;
and converting the second entity object file into a first XML file corresponding to the source file, and generating a submitting file corresponding to the target flow based on the first XML file corresponding to each source file.
Further, the logic instructions in the memory 803 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of performing the intellectual property file processing method provided by the above methods, the method comprising: when a submitted file generation instruction corresponding to a target flow in an intellectual property transaction process is received, at least one source file corresponding to the target flow and a first view object file corresponding to the source file are acquired; wherein the first view object file is generated based on a template file corresponding to the source file;
assigning each first attribute in the first view object file based on the source file to obtain a second view object file corresponding to the source file;
assigning a target attribute in a first entity object file corresponding to the source file based on the second view object file to obtain a second entity object file corresponding to the source file; wherein the first entity object file is generated based on the template file;
And converting the second entity object file into a first XML file corresponding to the source file, and generating a submitting file corresponding to the target flow based on the first XML file corresponding to each source file.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of intellectual property document processing comprising:
when a submitted file generation instruction corresponding to a target flow in an intellectual property transaction process is received, at least one source file corresponding to the target flow and a first view object file corresponding to the source file are acquired; wherein the first view object file is generated based on a template file corresponding to the source file;
assigning each first attribute in the first view object file based on the source file to obtain a second view object file corresponding to the source file;
assigning a target attribute in a first entity object file corresponding to the source file based on the second view object file to obtain a second entity object file corresponding to the source file; wherein the first entity object file is generated based on the template file;
And converting the second entity object file into a first XML file corresponding to the source file, and generating a submitting file corresponding to the target flow based on the first XML file corresponding to each source file.
2. The intellectual property file processing method of claim 1, wherein the first view object file is obtained by:
analyzing the template file to obtain a third entity object file corresponding to the source file;
and creating the first view object file based on the target attribute in the third entity object file.
3. The intellectual property file processing method of claim 2, wherein the first entity object file is obtained by:
performing format conversion on the template file to obtain a second XML file;
and assigning null values to each second attribute in the third entity object file based on the second XML file to obtain the first entity object file.
4. The intellectual property file processing method of claim 1, wherein assigning each first attribute in the first view object file based on the source file comprises:
Acquiring third attributes in the source file and attribute values corresponding to the third attributes;
and respectively matching the third attribute with each first attribute in the first view object file, and if the matching is successful, assigning the corresponding first attribute based on the attribute value corresponding to the third attribute.
5. The intellectual property file processing method according to claim 1, wherein the assigning the target attribute in the first entity object file corresponding to the source file based on the second view object file comprises:
respectively matching a first attribute in the second view object file with each target attribute in the first entity object file, and if the matching is successful, determining whether an attribute value corresponding to the first attribute in the second view object file meets a preset value condition of the corresponding target attribute;
if yes, assigning corresponding target attributes based on attribute values corresponding to the first attributes in the second view object file;
if the target value does not meet the preset attribute value, determining a corresponding target value of the target attribute based on the attribute value corresponding to the preset attribute in the second view object file, and assigning a value to the corresponding target attribute based on the target value.
6. The intellectual property file processing method according to any one of claims 1 to 5, wherein the obtaining at least one source file corresponding to the target flow includes:
and acquiring the source file from a first preset storage system based on the first identification information corresponding to the target flow and the second identification information corresponding to the source file bound with the first identification information.
7. The intellectual property file processing method according to any one of claims 1 to 5, wherein the source file further includes stored information of an attachment corresponding to the source file; the storage information is generated by a second preset storage system corresponding to the accessory;
the generating a submitted file corresponding to the target flow based on the first XML file corresponding to each source file includes:
acquiring the attachment corresponding to the source file based on the storage information, and storing the attachment in a sub-file package corresponding to the source file; wherein, the sub-file package corresponding to the source file also stores the first XML file corresponding to the source file; the sub-file packages corresponding to the source files are arranged in delivery packages corresponding to the target processes, and the delivery packages are created based on attribute information of the target processes when receiving the delivery file generation instructions corresponding to the target processes;
And compressing the submitted packet to obtain the submitted file corresponding to the target flow.
8. The intellectual property file processing method of claim 7, wherein the source file is generated by:
responding to clicking operation of a file making component corresponding to the source file, and displaying a file editing interface corresponding to the source file; the file editing interface is used for displaying a form corresponding to the source file, and the form is created based on the first view object file corresponding to the source file;
responding to the input operation of the file editing interface, and acquiring attribute values of corresponding input components in the form and the accessories;
compiling the attachment into a file stream, then sending the file stream to the second preset storage system, receiving response information sent by the second preset storage system, and obtaining the storage information based on the response information;
and responding to clicking operation of a save control in the file editing interface, and adding the stored information to the form to obtain the source file.
9. An intellectual property document processing apparatus comprising:
The first processing module is used for acquiring at least one source file corresponding to a target flow and a first view object file corresponding to the source file when receiving a submitted file generation instruction corresponding to the target flow in the intellectual property transaction process; wherein the first view object file is generated based on a template file corresponding to the source file;
the second processing module is used for assigning values to all the first attributes in the first view object file based on the source file to obtain a second view object file corresponding to the source file;
the third processing module is used for assigning a target attribute in a first entity object file corresponding to the source file based on the second view object file to obtain a second entity object file corresponding to the source file; wherein the first entity object file is generated based on the template file;
and the fourth processing module is used for converting the second entity object file into a first XML file corresponding to the source file and generating a delivery file corresponding to the target flow based on the first XML file corresponding to each source file.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the intellectual property file processing method of any one of claims 1 to 8 when the program is executed by the processor.
CN202310417459.0A 2023-04-19 2023-04-19 Intellectual property file processing method and device Active CN116127922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310417459.0A CN116127922B (en) 2023-04-19 2023-04-19 Intellectual property file processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310417459.0A CN116127922B (en) 2023-04-19 2023-04-19 Intellectual property file processing method and device

Publications (2)

Publication Number Publication Date
CN116127922A true CN116127922A (en) 2023-05-16
CN116127922B CN116127922B (en) 2023-07-04

Family

ID=86310345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310417459.0A Active CN116127922B (en) 2023-04-19 2023-04-19 Intellectual property file processing method and device

Country Status (1)

Country Link
CN (1) CN116127922B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230550A1 (en) * 2003-04-03 2004-11-18 Simpson Michael J. Method and apparatus for electronic filing of patent and trademark applications and related correspondence
CN101201815A (en) * 2006-12-13 2008-06-18 鸿富锦精密工业(深圳)有限公司 System and method for generating patent application file
US20110191751A1 (en) * 2010-02-03 2011-08-04 Oracle International Corporation Declarative attribute security using custom properties
CN112732643A (en) * 2021-04-01 2021-04-30 南京国睿信维软件有限公司 Method for interconversion of flow chart graphic file data and S1000D standard XML format data
CN114138712A (en) * 2021-12-03 2022-03-04 中国建设银行股份有限公司 File processing method, processing device, electronic equipment and storage medium
CN114398023A (en) * 2022-01-19 2022-04-26 北京百度网讯科技有限公司 File generation method and page configuration method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230550A1 (en) * 2003-04-03 2004-11-18 Simpson Michael J. Method and apparatus for electronic filing of patent and trademark applications and related correspondence
CN101201815A (en) * 2006-12-13 2008-06-18 鸿富锦精密工业(深圳)有限公司 System and method for generating patent application file
US20110191751A1 (en) * 2010-02-03 2011-08-04 Oracle International Corporation Declarative attribute security using custom properties
CN112732643A (en) * 2021-04-01 2021-04-30 南京国睿信维软件有限公司 Method for interconversion of flow chart graphic file data and S1000D standard XML format data
CN114138712A (en) * 2021-12-03 2022-03-04 中国建设银行股份有限公司 File processing method, processing device, electronic equipment and storage medium
CN114398023A (en) * 2022-01-19 2022-04-26 北京百度网讯科技有限公司 File generation method and page configuration method and device

Also Published As

Publication number Publication date
CN116127922B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN107704479B (en) File generation method and device
CN110704519B (en) Service bill conversion method and device, storage medium and computer equipment
CN107273122A (en) Based on decoupling mechanism can iteration set up operation system method and its terminal
US10686780B2 (en) Secure, cloud-based data collection tool
CN111767704B (en) Excel form template generation method and device
CN110688828A (en) File processing method and device, file processing system and computer equipment
CN110737630B (en) Method and device for processing electronic archive file, computer equipment and storage medium
US10747588B2 (en) Method for updating instance-based message maps using metadata
CN110795697A (en) Logic expression obtaining method and device, storage medium and electronic device
CN110647316A (en) Method and device for generating universal business object, computer equipment and storage medium
CN113641700A (en) Data processing method and device based on Spring boot frame
CN114282129A (en) Information system page generation method, system, electronic equipment and storage medium
US10609120B2 (en) Customized, cloud-based data collection tool
CN116127922B (en) Intellectual property file processing method and device
WO2019043462A1 (en) Systems and methods for creating automated interface transmission between heterogeneous systems in an enterprise ecosystem
CN110851173B (en) Report generation method and device
CN110020443B (en) Method, device and equipment for processing translation data and computer readable storage medium
CN111428463A (en) Short message processing method and device, electronic equipment and storage medium
CN113536748A (en) Method and device for generating chart data
US20220284371A1 (en) Method, device and medium for a business function page
CN115391343A (en) Bill data processing method and device, electronic equipment and storage medium
CN115328457A (en) Method and device for realizing form page based on parameter configuration
CN114218914A (en) Service matching method and related device
CN114722108A (en) Customer service data processing method and device, electronic equipment and storage medium
CN109901934A (en) The method and apparatus for generating interface help document

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