CN115907010A - Knowledge base deployment method, device, electronic equipment and medium based on data sharding - Google Patents
Knowledge base deployment method, device, electronic equipment and medium based on data sharding Download PDFInfo
- Publication number
- CN115907010A CN115907010A CN202211405365.3A CN202211405365A CN115907010A CN 115907010 A CN115907010 A CN 115907010A CN 202211405365 A CN202211405365 A CN 202211405365A CN 115907010 A CN115907010 A CN 115907010A
- Authority
- CN
- China
- Prior art keywords
- knowledge
- data
- deployment
- file
- knowledge base
- 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.)
- Pending
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明涉及数据分片领域,揭露一种基于数据分片的知识库部署方法、装置、电子设备以及介质,所述方法包括:获取知识库,查询所述知识库的知识数据与知识结构,构建所述知识结构的结构文件;对所述知识数据进行数据分片,得到分片知识,对所述分片知识进行周期存储,得到周期存储知识,根据所述周期存储知识,构建所述知识数据的升级校验文件;利用所述结构文件在预构建的用户私有服务中进行结构部署,得到结构部署服务,利用所述升级校验文件在所述结构部署服务中对所述知识数据进行部署升级,得到所述知识库的部署结果。本发明可以提升知识库部署效率。
The present invention relates to the field of data sharding, and discloses a knowledge base deployment method, device, electronic equipment, and medium based on data sharding. The method includes: acquiring a knowledge base, querying the knowledge data and knowledge structure of the knowledge base, and constructing The structure file of the knowledge structure; performing data fragmentation on the knowledge data to obtain fragment knowledge, performing periodic storage on the fragment knowledge to obtain periodic storage knowledge, constructing the knowledge data according to the periodic storage knowledge The upgrade verification file; use the structure file to deploy the structure in the pre-built user private service to obtain the structure deployment service, use the upgrade verification file to deploy and upgrade the knowledge data in the structure deployment service , to obtain the deployment result of the knowledge base. The present invention can improve the deployment efficiency of the knowledge base.
Description
技术领域technical field
本发明涉及数据分片领域,尤其涉及一种基于数据分片的知识库部署方法、装置、电子设备及介质。The present invention relates to the field of data sharding, in particular to a knowledge base deployment method, device, electronic device and medium based on data sharding.
背景技术Background technique
基于数据分片的知识库部署是指将知识库中的数据分片之后在服务器的不同位置部署的过程。Knowledge base deployment based on data sharding refers to the process of deploying data in different locations of the server after sharding the data in the knowledge base.
目前,开源检测工具私有化部署时,现有的知识库部署是将整个知识库数据整体打包到用户服务器进行部署,这样的方式存在整个包数据特别大、部署慢的问题,而且用户往往只需要知识库中的一个或者部分开发语言组件、组件下关联的漏洞、组件下关联的许可数据(以下以开发语言数据代替),而不需要全量的开发语言数据。因此,由于将整个知识库数据整体打包到用户服务器进行部署,导致知识库部署的效率较低。At present, when open source detection tools are deployed privately, the existing knowledge base deployment is to package the entire knowledge base data to the user server for deployment. This method has the problem that the entire package data is extremely large and the deployment is slow, and users often only need to One or part of the development language components in the knowledge base, the vulnerabilities associated with the components, and the license data associated with the components (hereinafter replaced with development language data), do not require the full amount of development language data. Therefore, since the entire knowledge base data is packaged to the user server for deployment as a whole, the efficiency of knowledge base deployment is low.
发明内容Contents of the invention
为了解决上述问题,本发明提供了一种基于数据分片的知识库部署方法、装置、电子设备及介质,其主要目的在于对用户筛选所需要的开发语言数据的知识库进行部署,提升知识库部署效率。In order to solve the above problems, the present invention provides a knowledge base deployment method, device, electronic equipment and media based on data sharding. deployment efficiency.
为实现上述目的,本发明提供了一种基于数据分片的知识库部署方法,包括:获取知识库,查询所述知识库的知识数据与知识结构,构建所述知识结构的结构文件;对所述知识数据进行数据分片,得到分片知识,对所述分片知识进行周期存储,得到周期存储知识,根据所述周期存储知识,构建所述知识数据的升级校验文件;利用所述结构文件在预构建的用户私有服务中进行结构部署,得到结构部署服务,利用所述升级校验文件在所述结构部署服务中对所述知识数据进行部署升级,得到所述知识库的部署结果。In order to achieve the above object, the present invention provides a knowledge base deployment method based on data sharding, including: acquiring the knowledge base, querying the knowledge data and knowledge structure of the knowledge base, and constructing the structure file of the knowledge structure; Perform data fragmentation on the knowledge data to obtain fragmentation knowledge, periodically store the fragmentation knowledge to obtain periodic storage knowledge, construct an upgrade verification file of the knowledge data according to the periodic storage knowledge; use the structure The file is structurally deployed in the pre-built user private service to obtain the structural deployment service, and the upgrade verification file is used to deploy and upgrade the knowledge data in the structural deployment service to obtain the deployment result of the knowledge base.
为了解决上述问题,本发明提供了一种基于数据分片的知识库部署装置,所述装置包括:结构构建模块,用于获取知识库,查询所述知识库的知识数据与知识结构,构建所述知识结构的结构文件;校验构建模块,用于对所述知识数据进行数据分片,得到分片知识,对所述分片知识进行周期存储,得到周期存储知识,根据所述周期存储知识,构建所述知识数据的升级校验文件;数据升级模块,用于利用所述结构文件在预构建的用户私有服务中进行结构部署,得到结构部署服务,利用所述升级校验文件在所述结构部署服务中对所述知识数据进行部署升级,得到所述知识库的部署结果。In order to solve the above problems, the present invention provides a knowledge base deployment device based on data sharding, the device includes: a structure building module, used to obtain the knowledge base, query the knowledge data and knowledge structure of the knowledge base, and construct the The structure file of the knowledge structure; the verification building module, which is used to perform data fragmentation on the knowledge data to obtain the fragmentation knowledge, periodically store the fragmentation knowledge, obtain the periodic storage knowledge, and store the knowledge according to the periodicity Constructing the upgrade verification file of the knowledge data; the data upgrade module is used to use the structure file to perform structure deployment in the pre-built user private service to obtain the structure deployment service, and use the upgrade verification file in the The knowledge data is deployed and upgraded in the structure deployment service to obtain the deployment result of the knowledge base.
为了解决上述问题,本发明提供一种电子设备,包括:In order to solve the above problems, the present invention provides an electronic device, comprising:
至少一个处理器;以及与所述至少一个处理器通信连接的存储器;at least one processor; and a memory communicatively coupled to the at least one processor;
其中,所述存储器存储有可被所述至少一个处理器执行的计算机程序,以使所述至少一个处理器能够执行如上述第一方面中任意一项所述的基于数据分片的知识库部署方法。Wherein, the memory stores a computer program executable by the at least one processor, so that the at least one processor can execute the knowledge base deployment based on data sharding as described in any one of the above first aspects method.
为了解决上述问题,本发明提供一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面中任意一项所述的基于数据分片的知识库部署方法。In order to solve the above problems, the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the knowledge base based on data sharding as described in any one of the above-mentioned first aspects is realized. deployment method.
与现有技术相比,本方案的技术原理及有益效果在于:Compared with the existing technology, the technical principle and beneficial effect of this scheme are:
本发明实施例首先通过获取知识库,以用于将知识库中的数据进行分片存储,进一步地,本发明实施例通过查询所述知识库的知识数据与知识结构,以用于在后续部署分片的知识库时,可以通过预先确定好的结构快速部署数据,进一步地,本发明实施例通过构建所述知识结构的结构文件,以用于在后续将分片的知识库部署时可以根据未分片之前的知识库的结构来有序部署,一方面将知识库分批次部署,便于管控,另一方面提升部署速度,进一步地,本发明实施例通过对所述知识数据进行数据分片,以用于将知识库分批次、分开发语言进行部署,便于管控,且知识库的开发语言数据可控,减少服务器成本,进一步地,本发明实施例通过对所述分片知识进行周期存储,以用于分时段将所述分片知识进行存储,降低了一次性存储内容过多的压力,进一步地,本发明实施例通过根据所述周期存储知识,构建所述知识数据的升级校验文件,以用于利用所述升级校验文件记录周期内打包的所有信息,保障后续对已经打包好的数据升级时,可以按照所述升级校验文件中所记录的打包信息及其打包的周期时间对数据包进行顺序升级,进一步地,本发明实施例通过利用所述结构文件在预构建的用户私有服务中进行结构部署,以用于为后续的知识库数据在用户私有服务中的部署做准备,进一步地,本发明实施例通过利用所述升级校验文件在所述结构部署服务中对所述知识数据进行部署升级,以用于在部署好结构的前提下将知识库的数据部署在用户私有服务中,并升级成最新版本,保障用户获取数据包时会自动获取离当前时间最近的数据包。因此,本发明实施例提出的一种基于数据分片的知识库部署方法、装置、电子设备及介质,可以对用户筛选所需要的开发语言数据的知识库进行部署,提升知识库部署效率。In the embodiment of the present invention, firstly, the knowledge base is acquired to store the data in the knowledge base in slices. Further, the embodiment of the present invention queries the knowledge data and knowledge structure of the knowledge base for subsequent deployment When using a fragmented knowledge base, data can be quickly deployed through a predetermined structure. Further, the embodiment of the present invention constructs the structure file of the knowledge structure, which can be used in the subsequent deployment of the fragmented knowledge base according to The structure of the knowledge base before fragmentation is deployed in an orderly manner. On the one hand, the knowledge base is deployed in batches to facilitate management and control. slices, which are used to deploy the knowledge base in batches and separate development languages, which is convenient for management and control, and the development language data of the knowledge base is controllable, reducing server costs. Further, the embodiment of the present invention performs Periodic storage is used to store the shard knowledge in time intervals, which reduces the pressure of storing too much content at one time. Further, the embodiment of the present invention constructs an upgrade of the knowledge data by storing knowledge according to the period Verification file, used to use the upgrade verification file to record all the information packaged in the cycle, so as to ensure that when the packaged data is upgraded in the future, it can follow the packaging information recorded in the upgrade verification file and its packaging The cycle time of the data package is sequentially upgraded. Further, the embodiment of the present invention uses the structure file to deploy the structure in the pre-built user private service, so as to be used for subsequent knowledge base data in the user private service. Prepare for deployment. Further, the embodiment of the present invention deploys and upgrades the knowledge data in the structure deployment service by using the upgrade verification file, so as to upgrade the data of the knowledge base under the premise of deploying the structure. It is deployed in the user's private service and upgraded to the latest version to ensure that when the user obtains the data packet, the data packet closest to the current time will be automatically obtained. Therefore, a knowledge base deployment method, device, electronic device, and medium based on data sharding proposed by the embodiments of the present invention can deploy the knowledge base of development language data required by users for screening, and improve the efficiency of knowledge base deployment.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
图1为本发明一实施例提供的一种基于数据分片的知识库部署方法的流程示意图;Fig. 1 is a schematic flow diagram of a knowledge base deployment method based on data fragmentation provided by an embodiment of the present invention;
图2为本发明一实施例中图1提供的一种基于数据分片的知识库部署方法中所述升级校验文件的存储内容示意图;FIG. 2 is a schematic diagram of the storage content of the upgrade verification file in a knowledge base deployment method based on data fragmentation provided in FIG. 1 in an embodiment of the present invention;
图3为本发明一实施例提供的一种基于数据分片的知识库部署装置的模块示意图;Fig. 3 is a schematic module diagram of a knowledge base deployment device based on data sharding provided by an embodiment of the present invention;
图4为本发明一实施例提供的实现基于数据分片的知识库部署方法的电子设备的内部结构示意图。FIG. 4 is a schematic diagram of an internal structure of an electronic device implementing a knowledge base deployment method based on data sharding according to an embodiment of the present invention.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施方式仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, and are not intended to limit the present invention.
本发明实施例提供一种基于数据分片的知识库部署方法,基于数据分片的知识库部署方法的执行主体包括但不限于服务端、终端等能够被配置为执行本发明实施例提供的该方法的电子设备中的至少一种。换言之,基于数据分片的知识库部署方法可以由安装在终端设备或服务端设备的软件或硬件来执行,软件可以是区块链平台。服务端包括但不限于:单台服务器、服务器集群、云端服务器或云端服务器集群等。服务器可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。The embodiment of the present invention provides a knowledge base deployment method based on data sharding. The execution subject of the knowledge base deployment method based on data sharding includes but is not limited to a server, a terminal, etc., which can be configured to execute the method provided by the embodiment of the present invention. At least one of the electronic devices of the method. In other words, the knowledge base deployment method based on data sharding can be executed by software or hardware installed on terminal devices or server devices, and the software can be a blockchain platform. The server includes but is not limited to: single server, server cluster, cloud server or cloud server cluster, etc. The server can be an independent server, or it can provide cloud services, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content delivery network (Content Delivery Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.
参阅图1所示,是本发明一实施例提供的基于数据分片的知识库部署方法的流程示意图。其中,图1中描述的基于数据分片的知识库部署方法包括:Referring to FIG. 1 , it is a schematic flowchart of a knowledge base deployment method based on data sharding provided by an embodiment of the present invention. Among them, the knowledge base deployment method based on data sharding described in Figure 1 includes:
S1、获取知识库,查询知识库的知识数据与知识结构,构建知识结构的结构文件。S1. Obtain the knowledge base, query the knowledge data and knowledge structure of the knowledge base, and construct the structure file of the knowledge structure.
本发明实施例通过获取知识库,以用于将知识库中的数据进行分片存储。其中,知识库是指用于知识管理的一种特殊的数据库,一般采用概念—事实—规则的知识表示体系,概念给出了知识最基本的内容,它处在知识的最底层;事实由概念组成,它建立了概念间的联系;规则由事实组成,它建立了事实间的联系。In the embodiment of the present invention, the knowledge base is acquired to store the data in the knowledge base in slices. Among them, the knowledge base refers to a special database used for knowledge management. It generally adopts the concept-fact-rule knowledge representation system. The concept gives the most basic content of knowledge, which is at the bottom of knowledge; Composition, which establishes the connection between concepts; rules are composed of facts, which establishes the connection between facts.
进一步地,本发明实施例通过查询知识库的知识数据与知识结构,以用于在后续部署分片的知识库时,可以通过预先确定好的结构快速部署数据。其中,知识数据是指知识库中的知识,知识结构是指知识库中知识的结构架构,包括创建数据库中的表、索引、视图、存储过程以及触发器等,以及知识数据的定义,例如知识数据的类型、名称、整型的定义等。Further, in the embodiment of the present invention, by querying the knowledge data and knowledge structure of the knowledge base, it can be used for the subsequent deployment of the fragmented knowledge base, and the data can be rapidly deployed through a predetermined structure. Among them, the knowledge data refers to the knowledge in the knowledge base, and the knowledge structure refers to the structural structure of the knowledge in the knowledge base, including the creation of tables, indexes, views, stored procedures, and triggers in the database, as well as the definition of knowledge data, such as knowledge Data type, name, definition of integer, etc.
本发明的一实施例中,查询知识库的知识数据与知识结构,包括:在知识库中获取知识,并将知识作为知识数据;查询知识数据中数据之间的数据关联及知识数据的存储位置;根据数据关联与存储位置,确定知识库的知识结构。In an embodiment of the present invention, querying the knowledge data and knowledge structure of the knowledge base includes: obtaining knowledge in the knowledge base and using the knowledge as knowledge data; querying the data association between data in the knowledge data and the storage location of the knowledge data ; According to data association and storage location, determine the knowledge structure of the knowledge base.
其中,数据关联是指数据之间的关系,例如表格中的每一列数据的关系是列数与列名都一致、表B中的数据属于表A中的数据a以及数据之间的前后与左右关系等。示例性地,根据数据关联与存储位置,确定知识库的知识结构可以为:根据数据之间的关联以及数据的存储位置可知,某一存储位置的数据可以通过表结构存储、通过索引结构存储等等。Among them, data association refers to the relationship between data. For example, the relationship between each column of data in the table is that the number of columns and the name of the column are consistent, the data in table B belongs to data a in table A, and the front, back, left, and right between data relationship etc. Exemplarily, according to the data association and storage location, determining the knowledge structure of the knowledge base can be as follows: According to the association between data and the storage location of the data, the data in a certain storage location can be stored through a table structure, through an index structure, etc. wait.
进一步地,本发明实施例通过构建知识结构的结构文件,以用于在后续将分片的知识库部署时可以根据未分片之前的知识库的结构来有序部署,一方面将知识库分批次部署,便于管控,另一方面提升部署速度。其中,结构文件是指声明知识库中的结构的文件,例如mysql的ddl与elasticsearch的索引mapping等,其中mysql的ddl用于对数据库内部的对象进行创建、删除、修改等操作的语言文件;elasticsearch的索引mapping用于定义索引中的字段的名称与定义字段的数据类型等,mapping的作用就是执行一系列的指令将输入的数据转成可搜索的索引项。Further, the embodiment of the present invention constructs the structure file of the knowledge structure, so that when the fragmented knowledge base is deployed in the future, it can be deployed in an orderly manner according to the structure of the knowledge base before the fragmentation. On the one hand, the knowledge base is divided into Batch deployment is convenient for management and control, and on the other hand, it improves the deployment speed. Among them, the structure file refers to the file that declares the structure in the knowledge base, such as the ddl of mysql and the index mapping of elasticsearch, etc., where the ddl of mysql is used for creating, deleting, modifying and other operations on objects inside the database; elasticsearch The index mapping is used to define the name of the field in the index and define the data type of the field, etc. The function of mapping is to execute a series of instructions to convert the input data into searchable index items.
本发明的一实施例中,构建知识结构的结构文件,包括:在预构建的初始文件中确定知识结构的描述方法;利用描述方法构建知识结构的结构文件。In an embodiment of the present invention, constructing the structure file of the knowledge structure includes: determining the description method of the knowledge structure in the pre-built initial file; and constructing the structure file of the knowledge structure by using the description method.
其中,预构建的初始文件包括初始空白的mysql的ddl文件与elasticsearch的索引mapping文件,描述方法是指在文件中表述知识结构的方法,例如知识结构的前后关系的表述方法、表与表的附属关系的表述方法、知识库中知识的增删改查的结构的表述方法。Among them, the pre-built initial file includes the initial blank mysql ddl file and the index mapping file of elasticsearch. The description method refers to the method of expressing the knowledge structure in the file, such as the expression method of the context of the knowledge structure, and the attachment of tables and tables. The expression method of the relationship, the expression method of the structure of the addition, deletion, modification and query of knowledge in the knowledge base.
S2、对知识数据进行数据分片,得到分片知识,对分片知识进行周期存储,得到周期存储知识,根据周期存储知识,构建知识数据的升级校验文件。S2. Perform data fragmentation on the knowledge data to obtain the fragmented knowledge, periodically store the fragmented knowledge to obtain the periodic storage knowledge, and construct an upgrade verification file of the knowledge data according to the periodic storage knowledge.
本发明实施例通过对知识数据进行数据分片,以用于将知识库分批次、分开发语言进行部署,便于管控,且知识库的开发语言数据可控,减少服务器成本。In the embodiments of the present invention, data fragmentation is performed on the knowledge data to deploy the knowledge base in batches and development languages, which facilitates management and control, and the development language data of the knowledge base is controllable, reducing server costs.
本发明的一实施例中,对知识数据进行数据分片,得到分片知识,包括:识别知识数据的水平特征;基于水平特征,确定知识数据的分片规则;基于分片规则,对知识数据进行水平分片,得到分片知识。In one embodiment of the present invention, performing data fragmentation on knowledge data to obtain fragmentation knowledge includes: identifying the horizontal features of the knowledge data; determining the fragmentation rules of the knowledge data based on the horizontal features; Perform horizontal sharding to obtain sharding knowledge.
示例性地,对知识数据进行数据分片过程是指按照业务维度将表拆分到不同的数据库,专库专用的过程,例如一个订单表,里面的订单相关信息放到订单库的表里,里面的商品信息放商品库的表里,里面的地址信息放用户信息库里,水平特征指的是每张表的每一行的信息类型,例如每一行表示每一个订单号所对应的信息,则按照水平特征即订单号来确定分片规则为按订单号单双来分,则基于分片规则,按照单双订单号不同,将表中数据拆分到一张单号订单的表中和一张双号订单的表中。Exemplarily, the process of data sharding for knowledge data refers to the process of splitting tables into different databases according to business dimensions, a process dedicated to special databases, such as an order table, and the order-related information in it is placed in the table of the order library. The product information inside is placed in the table of the commodity library, and the address information inside is placed in the user information library. The horizontal feature refers to the information type of each row in each table. For example, each row represents the information corresponding to each order number, then According to the horizontal feature, that is, the order number, the sharding rule is determined according to the single and double order number. Based on the sharding rule, the data in the table is split into a table of single number orders and one Sheet of double number orders.
进一步地,本发明实施例通过对分片知识进行周期存储,以用于分时段将分片知识进行存储,降低了一次性存储内容过多的压力。Further, the embodiment of the present invention periodically stores the slice knowledge for storing the slice knowledge in time intervals, reducing the pressure of too much content stored at one time.
本发明的一实施例中,对分片知识进行周期存储,得到周期存储知识,包括:基于分片知识的分片类型,构建分片知识的周期存储分包;确定分片知识的存储周期;根据存储周期,利用周期存储分包对分片知识进行周期存储,得到周期存储知识。In an embodiment of the present invention, periodic storage of slice knowledge to obtain periodic storage knowledge includes: based on the slice type of slice knowledge, constructing periodic storage subcontracts of slice knowledge; determining the storage period of slice knowledge; According to the storage cycle, the periodic storage sub-package is used to store the slice knowledge periodically, and the periodic storage knowledge is obtained.
其中,分片类型包括版本、漏洞、解决方案等基本信息类型与maven、npm等开发语言数据类型,周期存储分包是指每个分片类型所对应的数据的存储包。示例性地,将版本、漏洞、解决方案等基本信息存储在基础数据包,以及maven、npm等开发语言数据分包存储,此打包过程按照一定周期循环打包存储,例如第一天存储基础数据包、第二天存储maven语言包、第三天存储npm语言包...第n天存储基础数据包、第n+1天存储maven语言包...以此规律类推进行存储。Among them, the fragmentation type includes basic information types such as version, vulnerability, and solution, and development language data types such as maven and npm, and the periodic storage subpackage refers to the storage package of data corresponding to each fragmentation type. For example, basic information such as versions, vulnerabilities, and solutions are stored in the basic data package, and development language data such as maven and npm are stored in sub-packages. This packaging process is packaged and stored according to a certain cycle, for example, the basic data package is stored on the first day , Store the maven language package on the second day, store the npm language package on the third day... store the basic data package on the nth day, store the maven language package on the n+1 day... and store it by analogy.
进一步地,本发明实施例通过根据周期存储知识,构建知识数据的升级校验文件,以用于利用升级校验文件记录周期内打包的所有信息,保障后续对已经打包好的数据升级时,可以按照升级校验文件中所记录的打包信息及其打包的周期时间对数据包进行顺序升级。其中,升级校验文件用于在对打包好的数据包升级之前,需要通过升级校验文件来校验数据包的时间顺序,依次进行升级,升级校验文件即check文件中信息主要包括三部分,一部分是基础包或语言包的拆分信息,如一个语言包拆分为多少个小包,第二部分是每个数据包的文件hash值,以便校验数据升级时校验数据是否安全,最后一部分是这些包所属类型以及版本信息,方便后续升级时的数据版本的获取和校验,为后续的数据增量升级提供版本基础,简而言之,所有知识库数据在周期内循环进行打一个个类型的单包,打的单包都由1个check文件和多个数据包文件组成,check文件中记录了该周期内包的所有信息。Further, the embodiment of the present invention constructs an upgrade verification file of knowledge data by storing knowledge according to the period, so as to use the upgrade verification file to record all the information packaged in the period, so as to ensure that when the packaged data is upgraded in the future, it can Upgrade the data packages sequentially according to the package information and package cycle time recorded in the upgrade verification file. Among them, the upgrade verification file is used to verify the chronological order of the data packets through the upgrade verification file before upgrading the packaged data package, and the upgrades are performed sequentially. The information in the upgrade verification file, that is, the check file, mainly includes three parts , one part is the split information of the basic package or language pack, such as how many small packages a language pack is split into, the second part is the file hash value of each data package, so as to verify whether the data is safe when the data is upgraded, and finally Part of it is the type and version information of these packages, which facilitates the acquisition and verification of data versions during subsequent upgrades, and provides a version basis for subsequent incremental data upgrades. In short, all knowledge base data is printed one by one in a cycle Each type of single package consists of one check file and multiple data package files. The check file records all the information of the package in this cycle.
参阅图2所示,表示本发明一实施例中图1提供的一种基于数据分片的知识库部署方法中升级校验文件的存储内容示意图。在图2中,索引结构包、基础数据包、pip语言包、golang语言包、其他语言包、maven语言包以及npm语言包表示知识库数据在周期内循环进行打一个个类型的单包,即周期存储知识,图中的校验信息包括每个数据包的文件hash值与包所属类型以及版本信息,其中每个数据包的文件hash值用于校验数据升级时校验数据是否安全,包所属类型以及版本信息方便后续升级时的数据版本的获取和校验,为后续的数据增量升级提供版本基础。Referring to FIG. 2 , it shows a schematic diagram of storage content of an upgrade verification file in a knowledge base deployment method based on data sharding provided in FIG. 1 in an embodiment of the present invention. In Figure 2, the index structure package, basic data package, pip language package, golang language package, other language packages, maven language package, and npm language package indicate that the knowledge base data is cyclically typed into a single package of each type in a cycle, namely The knowledge is stored periodically. The verification information in the figure includes the file hash value of each data package, the type of the package, and the version information. The file hash value of each data package is used to verify whether the data is safe when the data is upgraded. The type and version information facilitate the acquisition and verification of the data version during subsequent upgrades, and provide a version basis for subsequent incremental data upgrades.
本发明的一实施例中,根据周期存储知识,构建知识数据的升级校验文件,包括:查询周期存储知识的分包哈希值、类型信息与版本信息;根据分包哈希值、类型信息与版本信息,构建知识数据的校验信息;基于周期存储知识与校验信息,构建知识数据的升级校验文件。In an embodiment of the present invention, according to the periodic storage knowledge, the upgrade verification file of the knowledge data is constructed, including: querying the subpackage hash value, type information and version information of the periodic storage knowledge; according to the subpackage hash value, type information and version information to build verification information for knowledge data; based on periodic storage of knowledge and verification information, build an upgrade verification file for knowledge data.
S3、利用结构文件在预构建的用户私有服务中进行结构部署,得到结构部署服务,利用升级校验文件在结构部署服务中对知识数据进行部署升级,得到知识库的部署结果。S3. Use the structure file to deploy the structure in the pre-built user private service to obtain the structure deployment service, use the upgrade verification file to deploy and upgrade the knowledge data in the structure deployment service, and obtain the deployment result of the knowledge base.
本发明实施例通过利用结构文件在预构建的用户私有服务中进行结构部署,以用于为后续的知识库数据在用户私有服务中的部署做准备。其中,预构建的用户私有服务是指为私人用户单独使用而构建的云服务。In the embodiment of the present invention, structure deployment is performed in the pre-built user private service by using the structure file, so as to prepare for the subsequent deployment of knowledge base data in the user private service. Among them, the pre-built user private service refers to the cloud service built for private users to use alone.
可选地,利用结构文件在预构建的用户私有服务中进行结构部署,得到结构部署服务的过程可以为根据结构文件中定义的对数据表的增删改查、对数据表的结构关系的描述以及对知识库数据的字符类型、字段类型的定义,构建初始化的数据表,得到部署好结构的云服务。Optionally, use the structure file to deploy the structure in the pre-built user private service. The process of obtaining the structure deployment service can be based on the addition, deletion, modification and query of the data table defined in the structure file, the description of the structural relationship of the data table, and Define the character type and field type of knowledge base data, build an initialized data table, and obtain a cloud service with a well-deployed structure.
进一步地,本发明实施例通过利用升级校验文件在结构部署服务中对知识数据进行部署升级,以用于在部署好结构的前提下将知识库的数据部署在用户私有服务中,并升级成最新版本,保障用户获取数据包时会自动获取离当前时间最近的数据包。Further, the embodiment of the present invention deploys and upgrades the knowledge data in the structure deployment service by using the upgrade verification file, so as to deploy the data of the knowledge base in the user's private service under the premise that the structure is deployed, and upgrade it to The latest version ensures that when users get data packets, they will automatically get the data packets closest to the current time.
本发明的一实施例中,利用升级校验文件在结构部署服务中对知识数据进行部署升级,得到知识库的部署结果,包括:利用升级校验文件校验知识数据对应的基础数据包与语言包是否信息正确;在基础数据包与语言包信息正确时,利用升级校验文件确定基础数据包与语言包的部署顺序;基于部署顺序,对知识数据进行数据部署,得到部署数据;对部署数据进行数据升级,得到知识库的部署结果。In an embodiment of the present invention, the knowledge data is deployed and upgraded in the structure deployment service by using the upgrade verification file, and the deployment result of the knowledge base is obtained, including: using the upgrade verification file to verify the basic data package and language corresponding to the knowledge data Whether the package information is correct; when the basic data package and language pack information are correct, use the upgrade verification file to determine the deployment sequence of the basic data package and language pack; based on the deployment sequence, deploy the knowledge data to obtain the deployment data; Perform data upgrades to obtain the deployment results of the knowledge base.
示例性地,对知识数据对应的基础数据包和语言包在用户私有服务进行部署数据升级,用户获取数据包时会自动获取离当前时间最近的数据包,升级语言包时需检查基础数据包,基础数据包已升级的前提下才能升级语言包,且每次升级前需校验包的check文件和基础数据包、语言包文件信息是否匹配,以及包的语言版本是否在系统内升级过,防止知识库的数据包被篡改,保证知识库数据和版本的一致性,由于数据分片升级的数据包可能是n天前的包,而组件、漏洞、许可等知识库信息是每时每刻都会进行发布更新,所以需要将分片升级时的知识库版本增量升级到当前最新版本的知识库版本。For example, the basic data package and language package corresponding to the knowledge data are deployed in the user's private service to upgrade the deployment data. When the user obtains the data package, it will automatically obtain the data package closest to the current time. When upgrading the language package, the basic data package needs to be checked. The language pack can only be upgraded on the premise that the basic data package has been upgraded, and before each upgrade, it is necessary to verify whether the check file of the package matches the information of the basic data package and the language pack file, and whether the language version of the package has been upgraded in the system to prevent The data package of the knowledge base has been tampered with to ensure the consistency of the data and version of the knowledge base. Since the data package upgraded by data sharding may be a package n days ago, the knowledge base information such as components, vulnerabilities, and licenses is updated all the time. For release updates, it is necessary to incrementally upgrade the knowledge base version at the time of shard upgrade to the current latest version of the knowledge base version.
可以看出,本发明实施例首先通过获取知识库,以用于将知识库中的数据进行分片存储,进一步地,本发明实施例通过查询知识库的知识数据与知识结构,以用于在后续部署分片的知识库时,可以通过预先确定好的结构快速部署数据,进一步地,本发明实施例通过构建知识结构的结构文件,以用于在后续将分片的知识库部署时可以根据未分片之前的知识库的结构来有序部署,一方面将知识库分批次部署,便于管控,另一方面提升部署速度,进一步地,本发明实施例通过对知识数据进行数据分片,以用于将知识库分批次、分开发语言进行部署,便于管控,且知识库的开发语言数据可控,减少服务器成本,进一步地,本发明实施例通过对分片知识进行周期存储,以用于分时段将分片知识进行存储,降低了一次性存储内容过多的压力,进一步地,本发明实施例通过根据周期存储知识,构建知识数据的升级校验文件,以用于利用升级校验文件记录周期内打包的所有信息,保障后续对已经打包好的数据升级时,可以按照升级校验文件中所记录的打包信息及其打包的周期时间对数据包进行顺序升级,进一步地,本发明实施例通过利用结构文件在预构建的用户私有服务中进行结构部署,以用于为后续的知识库数据在用户私有服务中的部署做准备,进一步地,本发明实施例通过利用升级校验文件在结构部署服务中对知识数据进行部署升级,以用于在部署好结构的前提下将知识库的数据部署在用户私有服务中,并升级成最新版本,保障用户获取数据包时会自动获取离当前时间最近的数据包。因此,本发明实施例提出的一种基于数据分片的知识库部署方法可以对用户筛选所需要的开发语言数据的知识库进行部署,提升知识库部署效率。It can be seen that the embodiment of the present invention first obtains the knowledge base to store the data in the knowledge base in pieces, and further, the embodiment of the present invention queries the knowledge data and knowledge structure of the knowledge base to use in the When subsequently deploying the fragmented knowledge base, data can be quickly deployed through a predetermined structure. Further, the embodiment of the present invention constructs a structure file of the knowledge structure, which can be used for subsequent deployment of the fragmented knowledge base according to The structure of the knowledge base before fragmentation is deployed in an orderly manner. On the one hand, the knowledge base is deployed in batches to facilitate management and control; It is used to deploy the knowledge base in batches and separate development languages, which is convenient for management and control, and the development language data of the knowledge base is controllable, reducing server costs. Further, the embodiments of the present invention periodically store the fragmented knowledge to It is used to store fragmented knowledge in time intervals, which reduces the pressure of storing too much content at one time. Furthermore, the embodiment of the present invention stores knowledge according to the cycle to construct an upgrade verification file of knowledge data, which is used for using the upgrade verification file. The verification file records all the information packaged in the cycle to ensure that when the packaged data is upgraded in the future, the data packets can be upgraded sequentially according to the packaging information recorded in the upgrade verification file and the cycle time of packaging. Further, this The embodiment of the invention uses the structure file to deploy the structure in the pre-built user private service, so as to prepare for the deployment of the subsequent knowledge base data in the user private service. Further, the embodiment of the present invention uses the upgrade verification The file deploys and upgrades the knowledge data in the structure deployment service, which is used to deploy the data of the knowledge base in the user's private service under the premise of deploying the structure, and upgrades to the latest version to ensure that the user will automatically obtain the data package The most recent packet to the current time. Therefore, a knowledge base deployment method based on data sharding proposed by the embodiment of the present invention can deploy the knowledge base of development language data required for user screening, and improve the efficiency of knowledge base deployment.
如图3所示,是本发明基于数据分片的知识库部署装置功能模块图。As shown in FIG. 3 , it is a functional block diagram of the knowledge base deployment device based on data sharding in the present invention.
本发明基于数据分片的知识库部署装置300可以安装于电子设备中。根据实现的功能,基于数据分片的知识库部署装置可以包括结构构建模块301、校验构建模块302以及数据升级模块303。本发明模块也可以称之为单元,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。The knowledge
在本发明实施例中,关于各模块/单元的功能如下:In the embodiment of the present invention, the functions of each module/unit are as follows:
结构构建模块301,用于获取知识库,查询知识库的知识数据与知识结构,构建知识结构的结构文件;The
校验构建模块302,用于对知识数据进行数据分片,得到分片知识,对分片知识进行周期存储,得到周期存储知识,根据周期存储知识,构建知识数据的升级校验文件;The
数据升级模块303,用于利用结构文件在预构建的用户私有服务中进行结构部署,得到结构部署服务,利用升级校验文件在结构部署服务中对知识数据进行部署升级,得到知识库的部署结果。The data upgrade
详细地,本发明实施例中基于数据分片的知识库部署装置300中的各模块在使用时采用与上述的图1至图2中的基于数据分片的知识库部署方法一样的技术手段,并能够产生相同的技术效果,这里不再赘述。In detail, each module in the knowledge
如图4所示,是本发明实现基于数据分片的知识库部署方法的电子设备的结构示意图。As shown in FIG. 4 , it is a schematic structural diagram of an electronic device implementing a knowledge base deployment method based on data sharding in the present invention.
电子设备可以包括处理器40、存储器41、通信总线42以及通信接口43,还可以包括存储在存储器41中并可在处理器40上运行的计算机程序,如基于数据分片的知识库部署程序。The electronic device may include a
其中,处理器40在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。处理器40是电子设备的控制核心(Control Unit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在存储器41内的程序或者模块(例如执行基于数据分片的知识库部署程序等),以及调用存储在存储器41内的数据,以执行电子设备的各种功能和处理数据。Wherein, the
存储器41至少包括一种类型的可读存储介质,可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。存储器41在一些实施例中可以是电子设备的内部存储单元,例如该电子设备的移动硬盘。存储器41在另一些实施例中也可以是电子设备的外部存储设备,例如电子设备上配备的插接式移动硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)等。进一步地,存储器41还可以既包括电子设备的内部存储单元也包括外部存储设备。存储器41不仅可以用于存储安装于电子设备的应用软件及各类数据,例如数据库配置化连接程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The
通信总线42可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。总线被设置为实现存储器41以及至少一个处理器40等之间的连接通信。The
通信接口43用于上述电子设备4与其他设备之间的通信,包括网络接口和用户接口。可选地,网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备与其他电子设备之间建立通信连接。用户接口可以是显示器(Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备中处理的信息以及用于显示可视化的用户界面。The
图4仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图4示出的结构并不构成对电子设备的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。Figure 4 only shows an electronic device with components, and those skilled in the art can understand that the structure shown in Figure 4 does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or Combining certain parts, or different arrangements of parts.
例如,尽管未示出,电子设备还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与至少一个处理器40逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。电子设备还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。For example, although not shown, the electronic device may also include a power supply (such as a battery) for supplying power to various components. Preferably, the power supply may be logically connected to at least one
应该了解,实施例仅为说明之用,在专利发明范围上并不受此结构的限制。It should be understood that the embodiment is only for illustration, and is not limited by the structure in the scope of the patented invention.
电子设备中的存储器41存储的数据库配置化连接程序是多个计算机程序的组合,在处理器40中运行时,可以实现:The database configuration connection program stored in the
获取知识库,查询知识库的知识数据与知识结构,构建知识结构的结构文件;Obtain the knowledge base, query the knowledge data and knowledge structure of the knowledge base, and construct the structure file of the knowledge structure;
对知识数据进行数据分片,得到分片知识,对分片知识进行周期存储,得到周期存储知识,根据周期存储知识,构建知识数据的升级校验文件;Carry out data fragmentation on the knowledge data to obtain fragmentation knowledge, periodically store the fragmentation knowledge, obtain periodic storage knowledge, and construct an upgrade verification file of knowledge data according to the periodic storage knowledge;
利用结构文件在预构建的用户私有服务中进行结构部署,得到结构部署服务,利用升级校验文件在结构部署服务中对知识数据进行部署升级,得到知识库的部署结果。Use the structure file to deploy the structure in the pre-built user private service to obtain the structure deployment service, use the upgrade verification file to deploy and upgrade the knowledge data in the structure deployment service, and obtain the deployment result of the knowledge base.
具体地,处理器40对上述计算机程序的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。Specifically, for a specific implementation method of the above computer program by the
进一步地,电子设备集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个非易失性计算机可读取存储介质中。存储介质可以是易失性的,也可以是非易失性的。例如,计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。Furthermore, if the integrated module/unit of the electronic device is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium. Storage media can be either volatile or nonvolatile. For example, a computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, removable hard disk, magnetic disk, optical disk, computer memory, and read-only memory (ROM, Read-Only Memory).
本发明还提供一种存储介质,可读存储介质存储有计算机程序,计算机程序在被电子设备的处理器所执行时,可以实现:The present invention also provides a storage medium. The readable storage medium stores a computer program. When the computer program is executed by the processor of the electronic device, it can realize:
获取知识库,查询知识库的知识数据与知识结构,构建知识结构的结构文件;Obtain the knowledge base, query the knowledge data and knowledge structure of the knowledge base, and construct the structure file of the knowledge structure;
对知识数据进行数据分片,得到分片知识,对分片知识进行周期存储,得到周期存储知识,根据周期存储知识,构建知识数据的升级校验文件;Carry out data fragmentation on the knowledge data to obtain fragmentation knowledge, periodically store the fragmentation knowledge, obtain periodic storage knowledge, and construct an upgrade verification file of knowledge data according to the periodic storage knowledge;
利用结构文件在预构建的用户私有服务中进行结构部署,得到结构部署服务,利用升级校验文件在结构部署服务中对知识数据进行部署升级,得到知识库的部署结果。Use the structure file to deploy the structure in the pre-built user private service to obtain the structure deployment service, use the upgrade verification file to deploy and upgrade the knowledge data in the structure deployment service, and obtain the deployment result of the knowledge base.
在本发明所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided by the present invention, it should be understood that the disclosed devices, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of modules is only a logical function division, and there may be other division methods in actual implementation.
作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。A module described as a separate component may or may not be physically separated, and a component shown as a module may or may not be a physical unit, that is, it may be located in one place, or may also be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may physically exist separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software function modules.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。It will be apparent to those skilled in the art that the invention is not limited to the details of the above-described exemplary embodiments, but that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention.
因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Accordingly, the embodiments should be regarded in all points of view as exemplary and not restrictive, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim concerned.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relative terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these No such actual relationship or order exists between entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
以上仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所发明的原理和新颖特点相一致的最宽的范围。The above are only specific embodiments of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features of the invention herein.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211405365.3A CN115907010A (en) | 2022-11-10 | 2022-11-10 | Knowledge base deployment method, device, electronic equipment and medium based on data sharding |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211405365.3A CN115907010A (en) | 2022-11-10 | 2022-11-10 | Knowledge base deployment method, device, electronic equipment and medium based on data sharding |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115907010A true CN115907010A (en) | 2023-04-04 |
Family
ID=86477954
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211405365.3A Pending CN115907010A (en) | 2022-11-10 | 2022-11-10 | Knowledge base deployment method, device, electronic equipment and medium based on data sharding |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115907010A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120146026A (en) * | 2025-05-15 | 2025-06-13 | 国家石油天然气管网集团有限公司 | A knowledge base version control method, device, medium and product |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017101591A1 (en) * | 2015-12-17 | 2017-06-22 | 华为技术有限公司 | Method for constructing knowledge base, and controller |
| CN107958004A (en) * | 2016-10-17 | 2018-04-24 | 中国移动通信有限公司研究院 | The construction method and device of a kind of knowledge base |
| CN112052141A (en) * | 2020-09-02 | 2020-12-08 | 平安科技(深圳)有限公司 | Data fragment verification method and device, computer equipment and readable storage medium |
| CN115118504A (en) * | 2022-06-28 | 2022-09-27 | 北京天融信网络安全技术有限公司 | Knowledge base updating method and device, electronic equipment and storage medium |
-
2022
- 2022-11-10 CN CN202211405365.3A patent/CN115907010A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2017101591A1 (en) * | 2015-12-17 | 2017-06-22 | 华为技术有限公司 | Method for constructing knowledge base, and controller |
| CN107958004A (en) * | 2016-10-17 | 2018-04-24 | 中国移动通信有限公司研究院 | The construction method and device of a kind of knowledge base |
| CN112052141A (en) * | 2020-09-02 | 2020-12-08 | 平安科技(深圳)有限公司 | Data fragment verification method and device, computer equipment and readable storage medium |
| CN115118504A (en) * | 2022-06-28 | 2022-09-27 | 北京天融信网络安全技术有限公司 | Knowledge base updating method and device, electronic equipment and storage medium |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120146026A (en) * | 2025-05-15 | 2025-06-13 | 国家石油天然气管网集团有限公司 | A knowledge base version control method, device, medium and product |
| CN120146026B (en) * | 2025-05-15 | 2025-10-03 | 国家石油天然气管网集团有限公司 | Knowledge base version control method, knowledge base version control equipment, knowledge base version control medium and knowledge base version control product |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113961584A (en) | Method and device for analyzing field blood relationship, electronic equipment and storage medium | |
| CN112948427B (en) | Data query method, device, equipment and storage medium | |
| CN114398346A (en) | Data migration method, device, equipment and storage medium | |
| CN114185895A (en) | Data import and export method, device, electronic device and storage medium | |
| CN111625252A (en) | Cluster upgrading maintenance method and device, electronic equipment and storage medium | |
| CN114116673B (en) | Data migration method based on artificial intelligence and related equipment | |
| CN111897856A (en) | Supervision message generation method, device, electronic device and readable storage medium | |
| CN114398282A (en) | Test script generation method, device, equipment and storage medium | |
| CN112486532A (en) | Method and device for managing configuration file, electronic equipment and storage medium | |
| CN113342379B (en) | Micro-service upgrading method and device, electronic equipment and storage medium | |
| CN114625755A (en) | Script checking method and device, electronic equipment and storage medium | |
| CN115907010A (en) | Knowledge base deployment method, device, electronic equipment and medium based on data sharding | |
| CN111859452A (en) | Page information verification method, apparatus, device, and computer-readable storage medium | |
| CN115220740A (en) | Database environment deployment method, device, electronic device and storage medium | |
| CN115658109A (en) | Microservice hot deployment method, system, electronic device and storage medium | |
| CN114356379A (en) | Backup-based service upgrading method, device, equipment and storage medium | |
| CN114625712A (en) | Data synchronization method and device, electronic equipment and storage medium | |
| WO2022179122A1 (en) | Big-data-based data storage method and apparatus, and electronic device and storage medium | |
| CN114510666A (en) | Page jump method, device, equipment and storage medium | |
| CN120523476A (en) | A method, device, equipment and storage medium for collaborative deployment of front-end and back-end resources | |
| CN113268514A (en) | Multidimensional data statistical method and device, electronic equipment and storage medium | |
| CN114860314B (en) | Deployment upgrading method, device, equipment and medium based on database compatibility | |
| CN111612417A (en) | System resource configuration method, device, electronic device and storage medium | |
| CN114185588A (en) | Incremental package generation method, device, equipment and storage medium | |
| CN115544488A (en) | Project cloud authority management method, device, electronic equipment and storage medium |
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 |
