CN111144084B - Method and system for configuring article template and method and system for generating article - Google Patents

Method and system for configuring article template and method and system for generating article Download PDF

Info

Publication number
CN111144084B
CN111144084B CN201911259260.XA CN201911259260A CN111144084B CN 111144084 B CN111144084 B CN 111144084B CN 201911259260 A CN201911259260 A CN 201911259260A CN 111144084 B CN111144084 B CN 111144084B
Authority
CN
China
Prior art keywords
article
template
configuring
field
specific
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911259260.XA
Other languages
Chinese (zh)
Other versions
CN111144084A (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.)
Beike Technology Co Ltd
Original Assignee
Beike Technology 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 Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN201911259260.XA priority Critical patent/CN111144084B/en
Publication of CN111144084A publication Critical patent/CN111144084A/en
Application granted granted Critical
Publication of CN111144084B publication Critical patent/CN111144084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2428Query predicate definition using graphical user interfaces, including menus and forms

Landscapes

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

Abstract

The invention relates to the technical field of computer application, and discloses a configuration method and a system of an article template and a method and a system for generating an article. The method for configuring the article templates comprises the following steps: configuring a first portion of an article template for a generic field of different types of articles; configuring the storage position of the universal field corresponding to the first part of the article template as a fixed field in a specific data table in a non-relational database; configuring a second portion of the article template for a unique field of a particular type of article of a different type of article; and configuring a storage location of the unique field corresponding to the second portion of the article template as an extension field within the particular data table in the non-relational database. The invention can dynamically and flexibly store all types of articles in the same table in the non-relational database, thereby greatly improving the working efficiency of research personnel and solving the problem that different types of articles cannot be searched together.

Description

Method and system for configuring article template and method and system for generating article
Technical Field
The invention relates to the technical field of computer application, in particular to a configuration method and a configuration system of an article template, and a method and a system for generating an article.
Background
Currently, all articles are stored in a relational database (such as mysql), and the field values of the tables in the mysql database are fixed, so when one type of article is newly added, since different types of articles need to store different fields, a corresponding table needs to be newly created for storage. Therefore, the different types of articles need to be stored separately through different tables, and the storage mode is inconvenient because the different types of articles cannot be searched together. Meanwhile, the tasks of adding the table and managing the table each time have great influence on the working efficiency of research personnel.
Disclosure of Invention
The invention aims to provide a configuration method and a configuration system of an article template, and a method and a system for generating articles, which can dynamically and flexibly store all types of articles in the same table in a non-relational database, thereby greatly improving the working efficiency of corresponding research personnel and solving the problem that different types of articles cannot be searched together.
In order to achieve the above object, a first aspect of the present invention provides a method for configuring an article template, the method including: configuring a first portion of the article template for generic fields of different types of articles; configuring the storage position of the universal field corresponding to the first part of the article template as a fixed field in a specific data table in a non-relational database; configuring a second portion of the article template for a unique field of a particular type of article of the different type of article; and configuring a storage location of the unique field corresponding to the second portion of the article template as an extension field within the particular data table in the non-relational database.
Preferably, the configuring the first part of the article template for the common fields of different types of articles includes: configuring a first portion of the article template for a common field of different types of articles based on a first preset component; and/or the configuring the second portion of the article template for the unique field of a particular type of article of the different type of article comprises: a second portion of the article template for a unique field of the particular type of article is configured based on a second preset component, wherein the first preset component and the second preset component include one or more of a text box, a date check box, an upload attachment, a drop down box, and a check box.
Preferably, the non-relational database is a mongo database, and accordingly, the generic field is stored to the fixed field in JSON format, and the specific field is stored to the extension field in JSON format.
Preferably, the general field includes: one or more of a title, a subtitle, an author, a creation time, a modification time, an article status, and an article type common to the different types of articles; the unique fields include: a unique module for the particular type of article.
Through the technical scheme, the method and the device creatively firstly configure the first part of the article template of the general fields aiming at the articles of different types, and configure the storage position of the general fields as fixed fields in a specific data table in the non-relational database; a second portion of the article template for a unique field of a particular type of article is then configured, and a storage location of the unique field is configured as an extension field within the particular data table. Therefore, different types of articles can be input through the article template and stored in the same table in the non-relational database, so that all types of articles can be dynamically and flexibly stored, the working efficiency of corresponding research personnel is greatly improved, and the problem that different types of articles cannot be searched together is solved.
A second aspect of the present invention provides a method of generating an article, the method comprising: judging whether a specific article template aiming at the type of the article to be generated exists or not, wherein the specific article template is acquired according to the configuration method of the article template; generating a specific article input interface based on the specific article template when the specific article template exists, wherein a first part and a second part of the article input interface correspond to the first part and the second part of the specific article template respectively; entering the content of the general field of the article to be generated in the first part of the specific article entry interface; and entering the content of the unique field of the article to be generated in a second part of the specific article entry interface.
Preferably, the method further comprises: and in the absence of the specific article template, configuring the specific article template based on a configuration method according to the article template.
Through the technical scheme, the method and the device creatively generate a specific article input interface based on the specific article template under the condition that the specific article template (acquired through the configuration method of the article template) of the type of the article to be generated exists, and then input the content of the general field and the content of the specific field of the article to be generated into the first part and the second part of the specific article input interface respectively, so that the general field and the specific field of the article to be generated can be stored into the fixed field and the extension field in the specific data table in the non-relational database respectively. Therefore, different types of articles are stored in the same table in the non-relational database, so that all types of articles can be dynamically and flexibly stored, the working efficiency of corresponding research personnel is greatly improved, and the problem that different types of articles cannot be searched together is solved.
A third aspect of the present invention provides a configuration system for an article template, the configuration system comprising: first configuration means for configuring a first portion of the article template for a generic field of different types of articles; a second configuration device, configured to configure a storage location of the generic field corresponding to the first portion of the article template as a fixed field in a specific data table in a non-relational database; third configuration means for configuring a second portion of the article template for a unique field of a particular type of article of the different type of article; fourth configuration means for configuring a storage location of the unique field corresponding to the second portion of the article template as an extension field within the particular data table in the non-relational database.
Preferably, the first configuration means is configured to configure a first part of the article template for a common field of different types of articles, including: configuring a first portion of the article template for a common field of different types of articles based on a first preset component; and/or the third configuration means for configuring the second portion of the article template for the unique field of a particular type of article of the different type of article comprises: a second portion of the article template for a unique field of the particular type of article is configured based on a second preset component, wherein the first preset component and the second preset component include one or more of a text box, a date check box, an upload attachment, a drop down box, and a check box.
The benefits of the article template configuration system provided by the present invention can be referred to the description of the article template configuration method, and will not be repeated here.
A fourth aspect of the present invention provides a system for generating an article, the system comprising: the judging device is used for judging whether a specific article template aiming at the type of the article to be generated exists in the non-relational database, wherein the specific article template is acquired by a configuration system of the article template; and generating means for generating a specific article entry interface based on the specific article template in the non-relational database, wherein a first portion and a second portion of the article entry interface correspond to the first portion and the second portion of the specific article template, respectively; the first input device is used for inputting the content of the general field of the article to be generated in the first part of the specific article input interface; and a second entry means for entering the content of the unique field of the article to be generated in a second portion of the particular article entry interface.
The benefits of the system for generating an article provided by the present invention can be referred to the above description of the method for generating an article, and will not be repeated here.
A fifth aspect of the present invention provides a machine-readable storage medium having stored thereon instructions for causing a machine to perform the above-described method of configuring an article template and the above-described method of generating an article.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain, without limitation, the embodiments of the invention. In the drawings:
FIG. 1 is a flowchart of a method for configuring an article template according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of generating an article provided by an embodiment of the present invention;
FIG. 3 is a flow chart of a process for generating article a provided by an embodiment of the present invention;
FIG. 4 is a block diagram of a configuration system for article templates provided by an embodiment of the present invention; and
Fig. 5 is a block diagram of a system for generating articles according to an embodiment of the present invention.
Description of the reference numerals
10. First configuration means 20 second configuration means
30. Third configuration means 40 fourth configuration means
50. Judgment device 60 generation device
Detailed Description
The following describes specific embodiments of the present invention in detail with reference to the drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the invention, are not intended to limit the invention.
Before describing the various embodiments provided by the present invention, a brief description of several features of the present invention will be provided.
It has been found through research that even though the types and formats of different articles are different, some attributes are common to all articles, and some attributes are specific to a particular article, and thus, in the present invention, fields of these common attributes are referred to as common fields; and fields of attributes specific to different kinds of articles are referred to as specific fields. Specifically, the general field may include: the title, subtitle, author, creation time, modification time, article status (edit status, status to be checked through, status to be checked up, status to be off line, etc.), article type, and whether it is one or more of originality. The unique fields may include: specific modules aiming at the specific type of articles, such as specific modules of cell introduction, cell pictures, cell quality, peripheral matching and the like in a cell attack article; or the special modules such as the house tax rate, the loan information and the like in the house attack article.
Fig. 1 is a flowchart of a method for configuring an article template according to an embodiment of the present invention. As shown in fig. 1, the method for configuring the article template may include the following steps S101 to S104.
Step S101, configuring a first part of the article template for a common field of different types of articles.
For step S101, the configuring the first portion of the article template for the common fields of different types of articles may include: a first portion of the article template for a generic field of a different type of article is configured based on a first preset component. The first preset component and the second preset component comprise one or more of a text box, a date checking box, an uploading accessory, a pull-down box and a check box.
Specifically, a text box, a date selection box, a drop-down box, and the like can be used as components corresponding to general fields for a title, a subtitle, an author, a creation time, a modification time, an article state, an article type, whether the article is original, and the like in an article template. Thus, unified operations (e.g., search, state management, etc.) can be performed on the generic fields of the article, thereby reducing repetitive logic development. Of course, other reasonable components can be used for the above general fields.
Step S102, the storage position of the general field corresponding to the first part of the article template is configured as a fixed field in a specific data table in a non-relational database.
The non-relational databases may include mongo databases, couch databases, redis, voldemort, cassandra, HBase, neo4j, and the like. And, in case the non-relational database is mongo database, the common field may be stored to the fixed field in JSON format.
Step S103, configuring a second part of the article template for a unique field of a specific type of article among the different types of articles.
For step S103, the configuring the second portion of the article template for the unique field of the particular type of article of the different type of article may include: a second portion of the article template for a unique field of the particular type of article is configured based on a second preset component, wherein the second preset component includes one or more of a text box, a date check box, an upload attachment, a drop down box, and a check box.
Specifically, text boxes, uploading attachments, text boxes, check boxes, and the like can be respectively adopted as components corresponding to specific fields for cell introduction, cell pictures, cell quality, peripheral matching, and the like in the article template. Thus, the user can only concentrate on the specific type of article to develop the specific logic, thereby improving the development efficiency. Of course, other reasonable components can be used for each specific field.
Step S104, configuring the storage position of the unique field corresponding to the second part of the article template as an extension field in the specific data table in the non-relational database.
And, in the case where the non-relational database is mongo database, the unique field is stored to the extension field in the JSON format. Specifically, the general field and the specific field may be stored in a fixed field and an extension field within the specific data table in the non-relational database by means of a document type, a key value pair (k-value), a column type, or a graphic, respectively. Thus, different types of articles may be searched for through common fields in fixed fields in a particular data table stored in the non-relational database. Different types of articles can also be searched by unique fields in the extension fields stored in JSON format in a data table in the mongo database, as compared to other non-relational databases.
Therefore, by configuring different types of article templates in the above-mentioned componentized mode, repeated development of general fields can be avoided, and thus, different components can be flexibly multiplexed with more pertinence to develop the related content of specific fields. In addition, the article templates are configured in the above-mentioned componentization mode without repeated development of business parties, and the article templates obtained by configuration can be directly used.
The article templates configured by the method can be stored in any database (such as a mysql database), thus, whether templates for articles to be generated exist in the corresponding database (such as the mysql database) can be judged, if the templates exist, an article input interface is directly generated according to the corresponding templates, otherwise, a new article template is reconfigured according to the method.
In summary, the present invention creatively first configures a first part of the article template for a general field of different types of articles, and configures a storage location of the general field as a fixed field in a specific data table in a non-relational database; a second portion of the article template for a unique field of a particular type of article is then configured, and a storage location of the unique field is configured as an extension field within the particular data table. Therefore, different types of articles can be input through the article template and stored in the same table in the non-relational database, so that all types of articles can be dynamically and flexibly stored, the working efficiency of corresponding research personnel is greatly improved, and the problem that different types of articles cannot be searched together is solved.
Fig. 2 is a flowchart of a method for generating an article according to an embodiment of the present invention. As shown in fig. 2, the method of generating an article may include the following steps S201 to S204.
Step S201, judging whether a specific article template aiming at the type of the article to be generated exists.
The specific article template is obtained according to the configuration method of the article template.
The type of the article to be generated (such as a cell attack type, a buyer attack type, etc.) can be determined according to the article type in the general field. If the generated article template is stored in the mysql database by the configuration method of the article template, judging whether the article template matched with the type of the article to be generated exists in the mysql database.
Step S202, generating a specific article input interface based on the specific article template when the specific article template exists.
The first part and the second part of the article input interface correspond to the first part and the second part of the specific article template respectively. That is, since the content corresponding to the first portion of the article template is configured as a fixed field within a specific data table stored in the non-relational database when the article template is configured; and configuring content corresponding to the second portion of the article template as an extension field stored within the same particular data table, so content entered at the first portion of the article entry interface is configured as a fixed field within the particular data table stored in the non-relational database; content entered at a second portion of the article entry interface is configured as an extension field within a particular data table stored in a non-relational database. It should be noted that all the unique fields in the same article (e.g., the unique fields of cell introduction, cell picture, cell quality, peripheral match, etc. in cell attack) may be stored in the extension field in the specific data table.
Step S203, the content of the general field of the article to be generated is entered in the first part of the specific article entry interface.
Step S204, the content of the unique field of the article to be generated is input in the second part of the specific article input interface.
After steps S203 and S204 are performed, the storage module in the system for generating the article may automatically store the contents of the general field and the specific field of the article to be generated in the fixed field and the extension field in the same data table in the non-relational database, respectively.
In addition, the method for generating the article may further include: and in the absence of the specific article template, configuring the specific article template based on a configuration method according to the article template.
Specifically, the process of generating the article a will be explained and described taking the example of storing the article template that has been generated by the above configuration method of the article template in the mysql database.
As shown in fig. 3, the process of generating the article a may include the following steps S301 to S305.
Step 301, judging whether an article template A aiming at the type of the article a to be generated exists in the mysql database, and if so, executing step 303; otherwise, step S302 is performed.
Step S302, an article template A is configured through the configuration method of the article template, and step S303 is executed.
Step S303, generating an article entry interface based on the article template A.
Step S304, the contents of the general field and the special field of the article a to be generated are respectively input in the first part and the second part of the article input interface.
In step S305, the system for generating an article stores the generic field and the specific field of the article a to be generated in the unique field and the extension field in the same table in the mongo database, respectively.
If the article a to be generated is a cell attack, judging whether a cell attack template exists in the mysql database, and generating an input interface of the cell attack according to the cell attack template under the condition that the cell attack template exists; then, the content of the general field (for example, title, subheading, author, creation time, modification time, article status, article type, etc.) is entered in the first part of the entry interface, and the content of the specific field (specific module such as cell introduction, cell picture, cell quality, peripheral matching, etc.) is entered in the second part of the entry interface, and finally, the storage module in the system for generating the article stores the content of the general field and the content of the specific field in the inherent field and the extension field in the same table in the mongo database, respectively. Therefore, the embodiment of the invention can realize the effect of generating and storing the low-cost articles based on mongo databases, and can also realize the efficient searching of different types of articles (especially the efficient searching of different types of articles can also be realized through the special fields).
In summary, the present invention creatively generates a specific article entry interface based on a specific article template (obtained via the above configuration method of article templates) for a type to which an article to be generated belongs, and then, respectively enters the contents of the general field and the specific field of the article to be generated into the first portion and the second portion of the specific article entry interface, so that the general field and the specific field of the article to be generated can be respectively stored into the fixed field and the extension field in the specific data table in the non-relational database. Therefore, different types of articles are stored in the same table in the non-relational database, so that all types of articles can be dynamically and flexibly stored, the working efficiency of corresponding research personnel is greatly improved, and the problem that different types of articles cannot be searched together is solved.
Fig. 4 is a block diagram of a configuration system of an article template according to an embodiment of the present invention. As shown in fig. 4, the configuration system of the article template may include: first configuration means 10 for configuring a first part of the article template for a generic field of different types of articles; second configuration means 20 for configuring a storage location of the generic field corresponding to the first portion of the article template to be a fixed field within a specific data table in a non-relational database; third configuration means 30 for configuring a second portion of the article template for a unique field of a particular type of article of the different type of article; fourth configuration means 40 for configuring a storage location of the unique field corresponding to the second portion of the article template as an extension field within the specific data table in the non-relational database.
Preferably, the first configuration means 10 is configured to configure a first part of the article template for a common field of different types of articles, including: configuring a first portion of the article template for a common field of different types of articles based on a first preset component; and/or the third configuration means 30 for configuring the second part of the article template for the unique field of a particular type of article of the different type of article comprises: a second portion of the article template for a unique field of the particular type of article is configured based on a second preset component, wherein the first preset component and the second preset component include one or more of a text box, a date check box, an upload attachment, a drop down box, and a check box.
Specific details and benefits of the article template configuration system provided by the present invention can be found in the description of the article template configuration method, and are not repeated herein.
Fig. 5 is a block diagram of a system for generating articles according to an embodiment of the present invention. As shown in fig. 5, the system for generating an article includes: a judging device 50, configured to judge whether a specific article template for a type to which an article to be generated belongs exists, where the specific article template is acquired by a configuration system of the article template; and generating means 60, configured to generate a specific article entry interface based on the specific article template if the specific article template exists, where a first portion and a second portion of the article entry interface correspond to the first portion and the second portion of the specific article template, respectively; a first input means 70 for inputting the content of the generic field of the article to be generated in a first portion of the specific article input interface; and second entering means 80 for entering the content of the unique field of the article to be generated in a second portion of the particular article entry interface.
Specific details and benefits of the system for generating an article provided in the present invention can be found in the above description of the method for generating an article, and are not repeated here.
A fifth aspect of the present invention provides a machine-readable storage medium having stored thereon instructions for causing a machine to perform the above-described method of configuring an article template and the above-described method of generating an article.
Correspondingly, an embodiment of the present invention further provides a processor, configured to execute a program, where the program is executed to perform the above method for configuring an article template and the above method for generating an article.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the application may take the form of a computer program product embodied on one or more machine-readable storage media (including, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include non-volatile memory in a machine-readable storage medium, random Access Memory (RAM) and/or non-volatile memory, etc., such as Read Only Memory (ROM) or flash memory (flashRAM). Memory is an example of a machine-readable storage medium.
Machine-readable storage media, including both non-transitory and non-transitory, removable and non-removable media, may implement target information storage by any method or technology. The target information may be computer readable instructions, data structures, means of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store the target information that can be accessed by the computing device. As defined herein, a machine-readable storage medium does not include transitory computer readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the application may take the form of a computer program product embodied on one or more machine-readable storage media (including, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. A method for configuring an article template, the method comprising:
configuring a first portion of the article template for generic fields of different types of articles;
configuring the storage position of the universal field corresponding to the first part of the article template as a fixed field in a specific data table in a non-relational database;
Configuring a second portion of the article template for a unique field of a particular type of article of the different type of article; and
The storage location of the unique field corresponding to the second portion of the article template is configured as an extension field within the particular data table in the non-relational database.
2. The method for configuring an article template of claim 1,
The configuring the first portion of the article template for the common fields of different types of articles includes: configuring a first portion of the article template for a common field of different types of articles based on a first preset component; and/or
The configuring the second portion of the article template for the unique field of a particular type of article of the different types of articles includes: configuring a second portion of the article template for a unique field of the particular type of article based on a second preset component,
The first preset component and the second preset component comprise one or more of a text box, a date checking box, an uploading accessory, a pull-down box and a check box.
3. The method of claim 1, wherein the non-relational database is mongo database, and the generic fields are stored in JSON format to the fixed fields and the specific fields are stored in JSON format to the extension fields, respectively.
4. The method of claim 1, wherein the generic field comprises: one or more of a title, a subtitle, an author, a creation time, a modification time, an article status, and an article type common to the different types of articles; the unique fields include: a unique module for the particular type of article.
5. A method of generating an article, the method comprising:
Judging whether a specific article template aiming at the type of the article to be generated exists or not, wherein the specific article template is acquired according to the configuration method of the article template of any one of claims 1-4;
Generating a specific article input interface based on the specific article template when the specific article template exists, wherein a first part and a second part of the article input interface correspond to the first part and the second part of the specific article template respectively;
Entering the content of the general field of the article to be generated in the first part of the specific article entry interface; and
And inputting the content of the unique field of the article to be generated in the second part of the specific article inputting interface.
6. The method of generating an article of claim 5, further comprising:
in the absence of the specific article template, configuring the specific article template based on the configuration method of the article template according to any one of claims 1-4.
7. A system for configuring an article template, the system comprising:
First configuration means for configuring a first portion of the article template for a generic field of different types of articles;
a second configuration device, configured to configure a storage location of the generic field corresponding to the first portion of the article template as a fixed field in a specific data table in a non-relational database;
third configuration means for configuring a second portion of the article template for a unique field of a particular type of article of the different type of article;
fourth configuration means for configuring a storage location of the unique field corresponding to the second portion of the article template as an extension field within the particular data table in the non-relational database.
8. The article template configuration system of claim 7 wherein,
The first configuration means for configuring a first portion of the article template for a common field of different types of articles comprises: configuring a first portion of the article template for a common field of different types of articles based on a first preset component; and/or
The third configuration means for configuring the second portion of the article template for the unique field of a particular type of article of the different types of articles comprises: configuring a second portion of the article template for a unique field of the particular type of article based on a second preset component,
The first preset component and the second preset component comprise one or more of a text box, a date checking box, an uploading accessory, a pull-down box and a check box.
9. A system for generating articles, the system comprising:
Judging means for judging whether or not there is a specific article template for the type to which the article to be generated belongs, wherein the specific article template is acquired by the configuration system of the article template according to claim 7 or 8; and
Generating means for generating a specific article entry interface based on the specific article template in the presence of the specific article template, wherein a first portion and a second portion of the article entry interface correspond to the first portion and the second portion of the specific article template, respectively;
the first input device is used for inputting the content of the general field of the article to be generated in the first part of the specific article input interface; and
And the second input device is used for inputting the content of the unique field of the article to be generated in the second part of the specific article input interface.
10. A machine-readable storage medium having stored thereon instructions for causing a machine to perform the method of configuring an article template according to any one of claims 1-4 and the method of generating an article according to any one of claims 5-6.
CN201911259260.XA 2019-12-10 2019-12-10 Method and system for configuring article template and method and system for generating article Active CN111144084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911259260.XA CN111144084B (en) 2019-12-10 2019-12-10 Method and system for configuring article template and method and system for generating article

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911259260.XA CN111144084B (en) 2019-12-10 2019-12-10 Method and system for configuring article template and method and system for generating article

Publications (2)

Publication Number Publication Date
CN111144084A CN111144084A (en) 2020-05-12
CN111144084B true CN111144084B (en) 2024-05-10

Family

ID=70517880

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911259260.XA Active CN111144084B (en) 2019-12-10 2019-12-10 Method and system for configuring article template and method and system for generating article

Country Status (1)

Country Link
CN (1) CN111144084B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7788274B1 (en) * 2004-06-30 2010-08-31 Google Inc. Systems and methods for category-based search
CN105930390A (en) * 2016-04-14 2016-09-07 北京三快在线科技有限公司 Relation-type database expansion method and relation-type database expansion system
CN106326379A (en) * 2016-08-16 2017-01-11 廖文广 Management system and method for embedded advertisement in webpage article
CN106874248A (en) * 2017-01-22 2017-06-20 百度在线网络技术(北京)有限公司 article generation method and device based on artificial intelligence
CN109635260A (en) * 2018-11-09 2019-04-16 北京百度网讯科技有限公司 For generating the method, apparatus, equipment and storage medium of article template

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7788274B1 (en) * 2004-06-30 2010-08-31 Google Inc. Systems and methods for category-based search
CN105930390A (en) * 2016-04-14 2016-09-07 北京三快在线科技有限公司 Relation-type database expansion method and relation-type database expansion system
CN106326379A (en) * 2016-08-16 2017-01-11 廖文广 Management system and method for embedded advertisement in webpage article
CN106874248A (en) * 2017-01-22 2017-06-20 百度在线网络技术(北京)有限公司 article generation method and device based on artificial intelligence
CN109635260A (en) * 2018-11-09 2019-04-16 北京百度网讯科技有限公司 For generating the method, apparatus, equipment and storage medium of article template

Also Published As

Publication number Publication date
CN111144084A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
EP3353672B1 (en) Method and apparatus for transferring data between databases
CN104035754A (en) XML (Extensible Markup Language)-based custom code generation method and generator
CN111813804B (en) Data query method and device, electronic equipment and storage medium
CN107622080B (en) Data processing method and equipment
CN111400387B (en) Conversion method and device for import and export data, terminal equipment and storage medium
US20150066977A1 (en) Method and system for managing digital resources
US11487707B2 (en) Efficient file path indexing for a content repository
US8768913B2 (en) Multi-source searching in a data driven application
CN110471754A (en) Method for exhibiting data, device, equipment and storage medium in job scheduling
CN110955714A (en) Method and device for converting unstructured text into structured text
CN112685030A (en) Method, device, storage medium and electronic equipment for generating service code
CN102253967B (en) Data searching system and data searching method
CN115599764A (en) Method, device and medium for migrating table data
CN104375814A (en) Generation method and device of an interface document
US8805771B2 (en) Contextual feedback of rules proximity based upon co-occurence history in a collaborative rule editing system
CN112604273B (en) Data-driven game system function loading method, device and storage medium
CN108241620B (en) Query script generation method and device
CN111144084B (en) Method and system for configuring article template and method and system for generating article
CN106648794B (en) Component loading method and device
US20060010369A1 (en) Enhancements of data types in XML schema
CN105786893A (en) XML(Extensive Markup Language)-based dynamic picture display method and system
CN116303622A (en) Database query method, device, equipment and storage medium
CN107463618B (en) Index creating method and device
CN113485746B (en) Method and device for generating application program interface document
CN114281461A (en) Management method, equipment and medium for configurable data source attributes

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