WO2020133185A1 - 电子元件配套资料查询方法、存储介质及终端 - Google Patents
电子元件配套资料查询方法、存储介质及终端 Download PDFInfo
- Publication number
- WO2020133185A1 WO2020133185A1 PCT/CN2018/124780 CN2018124780W WO2020133185A1 WO 2020133185 A1 WO2020133185 A1 WO 2020133185A1 CN 2018124780 W CN2018124780 W CN 2018124780W WO 2020133185 A1 WO2020133185 A1 WO 2020133185A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sub
- electronic component
- word
- data
- code
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/31—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/38—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
Definitions
- the present invention relates to the field of electronic component data query, and more specifically, to an electronic component supporting data query method, storage medium, and terminal.
- the original component resources such as some development tools, materials, etc. all contain only TC7SEinnFU similar article number naming rules, where ⁇ represents a wildcard character, which can be entered as any character.
- TC7SET28FU the only information the user knows is the specific component number TC7SET28FU. If you need to enter TC7SET28FU, you can find the matching TC7SET ⁇ FU corresponding original factory resources. It is necessary to affix labels on all original resources of the factory, that is, exhaustive ⁇ fillable characters, that is, you need to paste the TC7SET28FU article number on all resources, then it is possible to find the corresponding resources through matching and searching, which greatly increases Maintenance costs and risks.
- the technical problem to be solved by the present invention is to provide a method, a storage medium and a terminal for querying supporting data of electronic components in view of the defect that the above-mentioned electronic component data of the prior art establishes a database before querying and the workload is large resulting in high maintenance costs. .
- the technical solution adopted by the present invention to solve its technical problems is: to construct a method for querying supporting information of electronic components, including:
- the data label includes the sub-word unit
- the electronic component supporting data query method of the present invention before the receiving electronic component code, the method further includes the process of establishing a database:
- the initial component code includes at least one wildcard
- the splitting the initial series of element codes to obtain the sub-word unit according to a preset split mode includes: splitting the initial series of element codes into the sub-word units according to the position of the wildcard, the sub-unit The word unit is a continuous character in the encoding of the initial series of elements;
- the establishment of the correspondence between the sub-word unit and the electronic component supporting data includes: establishing the correspondence between all the sub-word units in the initial series of component codes and the same electronic component supporting data.
- the electronic component supporting data query method of the present invention includes one of the sub-words;
- the searching for the data label corresponding to the sub-word unit includes: searching for the data label corresponding to the sub-word unit in the electronic component encoding, the data label including one of the sub-word units.
- the electronic component code includes at least two of the sub-words
- the searching for the data label corresponding to the sub-word unit includes: searching for the data label corresponding to all the sub-word units in the electronic component code, and the data label includes the content described in the electronic component code One-to-one correspondence of sub-word units.
- the extraction of sub-words corresponding to the codes of the electronic components includes:
- the extracting part of characters in the code of the electronic component as the detection word includes:
- the first character encoded by the electronic component is used as a start cursor, and the end cursor traverses the electronic component code to the end-of-word character after the start cursor;
- the method further includes:
- the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method for querying supporting information of electronic components as described above is realized.
- the present invention also provides a terminal, the terminal includes a processor, the processor is used to execute the computer program stored in the memory to implement the steps of the electronic component supporting data query method as described above.
- An electronic component supporting material query method, storage medium and terminal implementing the present invention have the following beneficial effects:
- the method includes: acquiring an initial series of component codes; splitting the initial series of component codes according to a preset split mode to obtain a child Word unit; establish the correspondence between the sub-word unit and the supporting information of electronic components, and store it in the database.
- Receive the electronic component code extract the sub-word unit corresponding to the electronic component code, the sub-word unit is a part of the electronic component code; find the data label corresponding to the sub-word unit, the data label includes the sub-word unit; obtain the electronic component corresponding to the data label Supporting information.
- FIG. 1 is a flowchart of a method for querying supporting information of electronic components according to the present invention
- FIG. 2 is a flowchart of the process of establishing a database in the present invention
- FIG. 3 is a flowchart of extracting sub-grams corresponding to electronic component codes in the present invention.
- FIG. 4 is a flowchart of extracting detected word primitives in the present invention.
- FIGS. 5a, 5b and 5c are structural diagrams of an electronic component encoding of the present invention.
- FIG. 6 is a schematic structural diagram of a terminal according to the present invention.
- the method for querying supporting information of electronic components in this embodiment includes:
- the electronic component code can be received through the input device, or the electronic component code can be received and recognized through the voice receiving device, or the electronic component code can be received by scanning the barcode or two-dimensional code of the electronic component through the camera.
- S12. Extract a sub-word unit corresponding to the electronic component code, and the sub-word unit is a part of the electronic component code. There may be one or more sub-word units.
- the order of characters in the sub-word unit is the same as the order of characters in the electronic component code, that is, the sub-word unit is a segment in the electronic component code.
- the data label includes the sub-word unit.
- the sub-words included in the data label correspond one-to-one with the sub-words extracted from the electronic component encoding.
- the so-called one-to-one correspondence requires the number of sub-words included in the data label and the number of sub-words extracted from the electronic component encoding The same, and every There is also a one-to-one correspondence between sub-words.
- S14 Acquire supporting information of electronic components corresponding to the data label. There is a one-to-one correspondence between the data label and the supporting data of electronic components. Since the data label contains sub-words, the sub-words and the supporting data of electronic components are essentially one-to-one.
- the sub-word unit corresponding to the electronic component code is obtained, and then the sub-word unit is used to search for supporting information of the electronic component, so as to quickly and accurately find the supporting information of the electronic component.
- the electronic component matching material query method of this embodiment before receiving the electronic component code further includes the process of establishing a database:
- the initial series of component codes is the total code of a series of components, which includes wildcards, which are universal characters. By changing the wildcards, the product codes of the series of components can be generated.
- the initial series component code is TC7SEinnFU
- ⁇ is a wildcard
- different electronic component codes can be obtained by removing different values from ⁇ , for example, ⁇ is 00, 01, 02, 03, 04, 05, 06, 07, 08, 09 , 10, to obtain the number of some columns.
- the initial series of component codes can be received through the input device, or the initial series of component codes can be received and recognized through the voice receiving device, or the initial series of component codes can be received by the camera scanning the bar code or two-dimensional code of the electronic component.
- S22 Split the initial series of element codes according to the preset split mode to obtain sub-word units.
- the element code of the initial series includes at least one wildcard; splitting the element code of the initial series according to the preset split mode to obtain sub-words includes: splitting the code of the element of the initial series into sub-words according to the position of the wildcard, and the sub-words are the initial series Continuous characters in the component code.
- the initial series component code can be split by the wildcard, for example, the initial series component code is T C7SETDDFU, where ⁇ is a wildcard, then TC7SEIDnFU can be split into Two sub-words of TC7SET and FU.
- S23 Establish a correspondence between sub-words and supporting information of electronic components, and store them in the database. Will get The sub-grams encoded by the initial series of components are stored in the database. Establishing the correspondence between sub-words and supporting information for electronic components includes: establishing the correspondence between all sub-words in the initial series of component codes and supporting information for the same electronic component.
- the above initial series components are coded as TC7SET and FU two sub-words of TC7SEinnFU, and the corresponding relationship between the two sub-words of TC7SET and FU and the supporting information of electronic components is established, that is, the corresponding relationship of the supporting information of electronic components corresponds to the two sub-words of TC7SET and FU yuan.
- the sub-word unit is obtained by splitting the initial series of element codes, and the sub-word unit does not contain wildcards, thereby achieving the uniqueness of the sub-word unit, and then the uniqueness of the sub-word unit can be used to establish matching with electronic components Correspondence of data, establish a database.
- the electronic component code includes a sub-word unit; searching for the data label corresponding to the sub-word unit includes: searching for sub-words in the electronic component code The data label corresponding to the element, the data label includes a sub-word element.
- the electronic component code includes at least two sub-words.
- Finding the data label corresponding to the sub-word unit includes: Finding the data label corresponding to all the sub-word units in the electronic component code.
- the data label includes the sub-word unit corresponding to the sub-word unit in the electronic component code.
- the above initial series components are coded as TC7SET and FU two sub-words of TC7SEinnFU, and the corresponding relationship between TC7S ET and FU two sub-words and electronic component supporting data is established, that is, the corresponding relationship of electronic component supporting data corresponds to both TC7SET and FU Word unit.
- the data label corresponding to all the sub-word units in the electronic component encoding is required, thereby ensuring the uniqueness of the data.
- extracting sub-words corresponding to the electronic component codes includes:
- S121 Extract a part of characters in the electronic component code as the detection word unit, and the detection word unit is a part in the electronic component code, and the order of the characters in the part is consistent with the character order in the electronic component code.
- S122 Determine whether there is a detected word unit in the database.
- the sub-word unit obtained from the initial series of element codes is stored in the server, by determining whether the detected word unit is the same as the sub-word stored in the database Meta-identity to determine whether there is a detection word in the database.
- S123 If the detected word unit exists in the database, confirm the detected word unit as the sub-word unit encoded by the electronic component.
- the detected word unit does not exist in the database, the detected word unit is not a sub-word unit encoded by the electronic component.
- This embodiment determines the sub-word unit in the electronic component encoding by determining whether the detected word unit in the electronic component encoding is in the data.
- the electronic component supporting material query method of this embodiment extracting part of characters in the electronic component code as the detection word includes:
- S1211 the first character encoded by the electronic component is used as a start cursor, and the end cursor traverses the code of the electronic component to the end-of-word character after the start cursor;
- S1213 Acquire the characters corresponding to the start cursor and the end cursor, and the characters between the start cursor and the end cursor during the traversal, to form a detection word unit.
- the initial series element code is 7CTSET28FU, which contains 10 characters: 7, C, T, S, E, T, 2, 8, F, U, for each Numbered characters, from left to right are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, respectively.
- the start cursor is located at the character number 0, that is, at the character 7; the end cursor is traversed starting at the character number 1, that is, at the character C.
- a detection word "7C” is acquired.
- the end cursor moves to the character number 3 get a detection word "7CTS”; when the end cursor moves to the character number 5, get a detection word "7CTS ET"; and so on, until the end character U is detected .
- This embodiment discloses an algorithm for acquiring detected word units, which can quickly acquire the detection within the code of the electronic component Word unit.
- the electronic component accessory data query method of some embodiments after acquiring the electronic component accessory data corresponding to the data tag, further includes: displaying the electronic component accessory data.
- the method further includes: downloading the electronic component accessory data.
- the electronic component accessory data query method of some embodiments after acquiring the electronic component accessory data corresponding to the data tag, further includes: sending the electronic component accessory data. For example, send supporting materials of electronic components to the mailbox reserved by the user, or send download links to the mailbox reserved by the user or the account of the instant messaging tool reserved. It is convenient for users to obtain information.
- This embodiment also provides a computer-readable storage medium on which a computer program is stored.
- the computer program is executed by a processor, the method for querying supporting information of electronic components as described above is implemented.
- this embodiment also provides a terminal.
- the terminal includes a processor, and the processor is configured to implement the steps of the foregoing method for querying supporting information of electronic components when executing the computer program stored in the memory.
- Terminals include but are not limited to smart phones, tablet computers, notebook computers, desktop computers and other electronic devices.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Computational Linguistics (AREA)
- Software Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
一种电子元件配套资料查询方法、存储介质及终端。该方法包括:获取初始系列元件编码(S21);按照预设拆分模式拆分初始系列元件编码得到子词元(S22);建立子词元与电子元件配套资料的对应关系,存储到数据库中(S23)。接收电子元件编码(S11);提取电子元件编码对应的子词元,子词元为电子元件编码的一部分(S12);查找与子词元对应的资料标签,资料标签中包括子词元(S13);获取资料标签对应的电子元件配套资料(S14)。该方法只需录入原厂资料中提供的货号命名规则即可,无需进行穷举扩展具体的订货号,大大减少了数据库建设过程中的工作量,从而减少维护成本。
Description
电子元件配套资料查询方法、 存储介质及终端 技术领域
[0001] 本发明涉及电子元件资料查询领域, 更具体地说, 涉及一种电子元件配套资料 查询方法、 存储介质及终端。
背景技术
[0002] 在电子元件网站, 用户需要了解某一型号的电子元件, 或需要获取某一型号电 子元件的配套资料时, 需要通过电子元件型号查询数据库, 所以对于所有电子 元件需要建立对应的数据库。
[0003] 5见有的开发工具、 资料等原厂元器件资源都是只包含 TC7SEinnFU类似的货 号命名规则, 其中□代表的是通配符, 即可输入为任意字符。 而用户购买具体的 元器件时都是具体的型号, 如 TC7SET28FU, 则用户所知晓的信息只有具体的元 器件货号 TC7SET28FU, 如果需要用户输入 TC7SET28FU能找到匹配的 TC7SET □□FU对应的原厂资源, 则需要在所有的原厂资源上衍生贴上标签, 即穷举□可 填字符, 即需要将 TC7SET28FU货号, 全部贴到所有资源上, 才可能通过匹配查 找的方式找到对应资源, 极大地增加了维护的成本与风险。
发明概述
技术问题
[0004] 本发明要解决的技术问题在于, 针对现有技术的上述电子元件资料在查询前建 立数据库工作量大导致维护成本高的缺陷, 提供一种电子元件配套资料查询方 法、 存储介质及终端。
问题的解决方案
技术解决方案
[0005] 本发明解决其技术问题所采用的技术方案是: 构造一种电子元件配套资料查询 方法, 包括:
[0006] 接收电子元件编码;
[0007] 提取所述电子元件编码对应的子词元, 所述子词元为所述电子元件编码的一部
分;
[0008] 查找与所述子词元对应的资料标签, 所述资料标签中包括所述子词元;
[0009] 获取所述资料标签对应的电子元件配套资料。
[0010] 进一步, 本发明所述的电子元件配套资料查询方法, 在所述接收电子元件编码 之前, 所述方法还包括建立数据库过程:
[0011] 获取初始系列元件编码;
[0012] 按照预设拆分模式拆分所述初始系列元件编码得到子词元;
[0013] 建立所述子词元与电子元件配套资料的对应关系, 存储到数据库中。
[0014] 进一步, 本发明所述的电子元件配套资料查询方法, 所述初始系列元件编码包 括至少一位通配符;
[0015] 所述按照预设拆分模式拆分所述初始系列元件编码得到子词元包括: 按照所述 通配符的位置将所述初始系列元件编码拆分为所述子词元, 所述子词元为所述 初始系列兀件编码中的连续字符;
[0016] 所述建立所述子词元与电子元件配套资料的对应关系包括: 建立所述初始系列 元件编码中所有所述子词元与同一所述电子元件配套资料的对应关系。
[0017] 进一步, 本发明所述的电子元件配套资料查询方法, 所述电子元件编码包括一 个所述子词元;
[0018] 所述查找与所述子词元对应的资料标签包括: 查找与所述电子元件编码中子词 元对应的资料标签, 所述资料标签包括一个所述子词元。
[0019] 进一步, 本发明所述的电子元件配套资料查询方法, 所述电子元件编码包括至 少两个所述子词元;
[0020] 所述查找与所述子词元对应的资料标签包括: 查找与所述电子元件编码中所有 子词元对应的资料标签, 所述资料标签中包括与所述电子元件编码中所述子词 元一一对应的子词元。
[0021] 进一步, 本发明所述的电子元件配套资料查询方法, 所述提取所述电子元件编 码对应的子词元包括:
[0022] 提取所述电子元件编码中的部分字符作为检测词元;
[0023] 判断所述数据库中是否存在所述检测词元;
[0024] 若是, 将所述检测词元确认为所述电子元件编码的子词元。
[0025] 进一步, 本发明所述的电子元件配套资料查询方法, 所述提取所述电子元件编 码中的部分字符作为检测词元包括:
[0026] 将所述电子元件编码的第一字符作为开始游标, 结束游标从所述开始游标后开 始遍历所述电子元件编码至词尾字符;
[0027] 每次所述结束游标遍历至词尾字符后, 将所述开始游标后移一位字符, 所述结 束游标重新进行遍历, 直至所述开始游标位于所述电子元件编码的词尾字符, 结束遍历;
[0028] 遍历期间获取所述开始游标和结束游标对应的字符、 以及所述开始游标和结束 游标之间的字符, 组成所述检测词元。
[0029] 进一步, 本发明所述的电子元件配套资料查询方法, 在所述获取所述资料标签 对应的电子元件配套资料之后, 所述方法还包括:
[0030] 显示所述电子元件配套资料; 或
[0031] 下载所述电子元件配套资料; 或
[0032] 发送所述电子元件配套资料。
[0033] 另, 本发明还提供一种计算机可读存储介质, 其上存储有计算机程序, 所述计 算机程序被处理器执行时实现如上述的电子元件配套资料查询方法。
[0034] 另, 本发明还提供一种终端, 所述终端包括处理器, 所述处理器用于执行存储 器中存储的计算机程序时实现如上述电子元件配套资料查询方法的步骤。
发明的有益效果
有益效果
[0035] 实施本发明的一种电子元件配套资料查询方法、 存储介质及终端, 具有以下有 益效果: 该方法包括: 获取初始系列元件编码; 按照预设拆分模式拆分初始系 列元件编码得到子词元; 建立子词元与电子元件配套资料的对应关系, 存储到 数据库中。 接收电子元件编码; 提取电子元件编码对应的子词元, 子词元为电 子元件编码的一部分; 查找与子词元对应的资料标签, 资料标签中包括子词元 ; 获取资料标签对应的电子元件配套资料。 通过实施本发明, 只需录入原厂资 料中提供的货号命名规则即可, 无需进行穷举扩展具体的订货号, 大大减少了
数据库建设过程中的工作量, 从而减少维护成本。
对附图的简要说明
附图说明
[0036] 下面将结合附图及实施例对本发明作进一步说明, 附图中:
[0037] 图 1是本发明一种电子元件配套资料查询方法的流程图;
[0038] 图 2是本发明中建立数据库过程流程图;
[0039] 图 3是本发明中提取电子元件编码对应的子词元流程图;
[0040] 图 4是本发明中提取检测词元流程图;
[0041] 图 5a、 图 5b和图 5c是本发明一电子元件编码的结构图;
[0042] 图 6是本发明一种终端的结构示意图。
实施该发明的最佳实施例
本发明的最佳实施方式
[0043] 为了对本发明的技术特征、 目的和效果有更加清楚的理解, 现对照附图详细说 明本发明的具体实施方式。
发明实施例
实施例
[0044] 如图 1所示, 本实施例中电子元件配套资料查询方法包括:
[0045] S11、 接收电子元件编码, 该电子元件编码为电子元件的具体编码, 即该电子 元件编码由全部由字符组成, 不再包含通配符。 作为选择, 可通过输入设备接 收电子元件编码, 或通过语音接收设备接收并识别电子元件编码, 或通过摄像 头扫描电子元件的条码或二维码接收电子元件编码。
[0046] S12、 提取电子元件编码对应的子词元, 子词元为电子元件编码的一部分。 获 取的子词元可能有一个或者多个, 子词元中字符的排序和电子元件编码中字符 的排序一致, 即子词元为电子元件编码中的一段。
[0047] S13、 查找与子词元对应的资料标签, 资料标签中包括子词元。 资料标签中所 包含的子词元与电子元件编码中提取的子词元一一对应, 所谓一一对应, 要求 资料标签中所包含的子词元与电子元件编码中提取的子词元的数量相同, 且每
个子词元之间也一一对应。 即若电子元件编码中仅提取一个子词元, 则资料标 签中也仅包括一个子词元, 电子元件编码中的子词元与资料标签中的子词元一 致; 若电子元件编码中仅提取多个子词元, 则资料标签中也仅包括对应数量的 子词元, 此时要求电子元件编码中的所有子词元与资料标签中的所有子词元一 致。
[0048] S14、 获取资料标签对应的电子元件配套资料。 资料标签与电子元件配套资料 之间是一一对应的, 因资料标签中包含子词元, 所以实质上是子词元与电子元 件配套资料是一一对应的。
[0049] 本实施例通过获取电子元件编码对应的子词元, 进而通过子词元查找电子元件 配套资料, 从而快速准确的找到电子元件配套资料。
实施例
[0050] 如图 2所示, 在上述实施例的基础上, 本实施例的电子元件配套资料查询方法 在接收电子元件编码之前, 还包括建立数据库过程:
[0051] S21、 获取初始系列元件编码, 初始系列元件编码为一系列元件的总编码, 其 中包含通配符, 通配符即通用字符, 通过改变通配符可产生该系列元件的产品 编码。 例如初始系列元件编码为 TC7SEinnFU, □为通配符, 通过□□去不同的 值可得到不同的电子元件编码, 例如□□为 00、 01、 02、 03、 04、 05、 06、 07、 08、 09、 10 , 从而获取一些列的编号。 作为选择, 可通过输入设备接收初始 系列元件编码, 或通过语音接收设备接收并识别初始系列元件编码, 或通过摄 像头扫描电子元件的条码或二维码接收初始系列元件编码。
[0052] S22、 按照预设拆分模式拆分初始系列元件编码得到子词元。 初始系列元件编 码包括至少一位通配符; 按照预设拆分模式拆分初始系列元件编码得到子词元 包括: 按照通配符的位置将初始系列元件编码拆分为子词元, 子词元为初始系 列元件编码中的连续字符。 例如, 如果包含一位通配符, 或者包含几位连续的 通配符, 则可通过该通配符拆分初始系列元件编码, 例如初始系列元件编码为 T C7SETDDFU, 其中□□为通配符, 则可将 TC7SEIDnFU拆分为 TC7SET和 FU两 个子词元。
[0053] S23、 建立子词元与电子元件配套资料的对应关系, 存储到数据库中。 将获取
的初始系列元件编码的子词元存储到数据库中。 建立子词元与电子元件配套资 料的对应关系包括: 建立初始系列元件编码中所有子词元与同一电子元件配套 资料的对应关系。 例如上述初始系列元件编码为 TC7SEinnFU的 TC7SET和 FU 两个子词元, 建立 TC7SET和 FU两个子词元与电子元件配套资料的对应关系, 即 电子元件配套资料的对应关系同时对应 TC7SET和 FU两个子词元。
[0054] 本实施例通过拆分初始系列元件编码获取子词元, 而子词元中不包含通配符, 从而实现子词元的唯一性, 进而可利用子词元的唯一性建立与电子元件配套资 料的对应关系, 建立数据库。
实施例
[0055] 在上述实施例的基础上, 本实施例的电子元件配套资料查询方法, 电子元件编 码包括一个子词元; 查找与子词元对应的资料标签包括: 查找与电子元件编码 中子词元对应的资料标签, 资料标签包括一个子词元。
[0056] 本实施例的电子元件配套资料查询方法, 电子元件编码包括至少两个子词元。
查找与子词元对应的资料标签包括: 查找与电子元件编码中所有子词元对应的 资料标签, 资料标签中包括与电子元件编码中子词元一一对应的子词元。 例如 上述初始系列元件编码为 TC7SEinnFU的 TC7SET和 FU两个子词元, 建立 TC7S ET和 FU两个子词元与电子元件配套资料的对应关系, 即电子元件配套资料的对 应关系同时对应 TC7SET和 FU两个子词元。
[0057] 本实施例在查找与子词元对应的资料标签过程中, 需要电子元件编码中所有子 词元对应的资料标签, 从而保证了资料的唯一性。
实施例
[0058] 如图 3所示, 本实施例的电子元件配套资料查询方法, 提取电子元件编码对应 的子词元包括:
[0059] S121、 提取电子元件编码中的部分字符作为检测词元, 检测词元为电子元件编 码中的一部分, 该部分字符的顺序与电子元件编码中的字符顺序一致。
[0060] S122、 判断数据库中是否存在检测词元, 在上述实施例中, 将从初始系列元件 编码中获取的子词元存储到服务器中, 通过判断检测词元是否与数据库中存储 的子词元一致来判断数据库中是否存在检测词元。
[0061] S123、 若数据库中存在检测词元, 将检测词元确认为电子元件编码的子词元。
[0062] S124、 若数据库中不存在检测词元, 检测词元不是电子元件编码的子词元。
[0063] 本实施例通过判断电子元件编码中检测词元是否在数据中来确定电子元件编码 中的子词元。
[0064] 如图 4所示, 本实施例的电子元件配套资料查询方法, 提取电子元件编码中的 部分字符作为检测词元包括:
[0065] S1211、 将电子元件编码的第一字符作为开始游标, 结束游标从开始游标后开 始遍历电子元件编码至词尾字符;
[0066] S1212、 每次结束游标遍历至词尾字符后, 将开始游标后移一位字符, 结束游 标重新进行遍历, 直至开始游标位于电子元件编码的词尾字符, 结束遍历;
[0067] S1213、 遍历期间获取开始游标和结束游标对应的字符、 以及开始游标和结束 游标之间的字符, 组成检测词元。
[0068] 如图 5a、 图 5b、 图 5c所示, 初始系列元件编码为 7CTSET28FU, 其中包含 10个 字符: 7、 C、 T、 S、 E、 T、 2、 8、 F、 U, 对每个字符进行编号, 从左到右分别 为 0、 1、 2、 3、 4、 5、 6、 7、 8、 9。 开始遍历时, 开始游标位于编号为 0的字符 处, 即位于字符 7处; 结束游标从编号为 1的字符开始遍历, 即从字符 C处开始遍 历。 此时获取一个检测词元“7C”。 当结束游标移动至编号 3的字符时, 获取一个 检测词元“7CTS”; 当结束游标移动至编号 5的字符时, 获取一个检测词元“7CTS ET”; 依次类推, 直至检测至词尾字符 U。
[0069] 第一轮遍历结束后, 进入第二轮遍历, 将开始游标移动至编号为 1的字符处, 结束游标从编号为 2的字符处开始遍历。 当结束游标移动至编号 3的字符时, 获 取一个检测词元“CTS”; 当结束游标移动至编号 5的字符时, 获取一个检测词元“ CTSET”; 依次类推, 直至检测至词尾字符 U。
[0070] 依次类推, 第二轮遍历结束后, 进入下一轮遍历, 将开始游标后移一位字符, 结束游标重新进行遍历, 直至开始游标位于电子元件编码的词尾字符, 结束遍 历。 遍历期间获取开始游标和结束游标对应的字符、 以及开始游标和结束游标 之间的字符, 组成检测词元。
[0071] 本实施例公开了一种获取检测词元的算法, 可快速获取电子元件编码内的检测
词元。
[0072] 作为选择, 一些实施例的电子元件配套资料查询方法, 在获取资料标签对应的 电子元件配套资料之后还包括: 显示电子元件配套资料。
[0073] 作为选择, 一些实施例的电子元件配套资料查询方法, 在获取资料标签对应的 电子元件配套资料之后还包括: 下载电子元件配套资料。
[0074] 作为选择, 一些实施例的电子元件配套资料查询方法, 在获取资料标签对应的 电子元件配套资料之后还包括: 发送电子元件配套资料。 例如, 发送电子元件 配套资料至用户预留的邮箱, 或发送下载链接至用户预留的邮箱或预留的即时 通信工具账号中。 方便用户获取资料。
实施例
[0075] 本实施例还提供一种计算机可读存储介质, 其上存储有计算机程序, 计算机程 序被处理器执行时实现如上述的电子元件配套资料查询方法。
实施例
[0076] 如图 6所示, 本实施例还提供一种终端, 终端包括处理器, 处理器用于执行存 储器中存储的计算机程序时实现如上述电子元件配套资料查询方法的步骤。 终 端包括但不限于智能手机、 平板电脑、 笔记本电脑、 台式电脑等电子设备。
[0077] 通过实施本发明, 只需录入原厂资料中提供的货号命名规则即可, 无需进行穷 举扩展具体的订货号, 大大减少了数据库建设过程中的工作量, 从而减少维护 成本。
[0078] 本说明书中各个实施例采用递进的方式描述, 每个实施例重点说明的都是与其 他实施例的不同之处, 各个实施例之间相同相似部分互相参见即可。 对于实施 例公开的装置而言, 由于其与实施例公开的方法相对应, 所以描述的比较简单 , 相关之处参见方法部分说明即可。
[0079] 专业人员还可以进一步意识到, 结合本文中所公开的实施例描述的各示例的单 元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来实现, 为了清 楚地说明硬件和软件的可互换性, 在上述说明中已经按照功能一般性地描述了 各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来执行, 取决于技术 方案的特定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用
不同方法来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。
[0080] 结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、 处理器 执行的软件模块, 或者二者的结合来实施。 软件模块可以置于随机存储器 (RA M) 、 内存、 只读存储器 (ROM) 、 电可编程 ROM、 电可擦除可编程 ROM、 寄 存器、 硬盘、 可移动磁盘、 CD-ROM、 或技术领域内所公知的任意其它形式的 存储介质中。
[0081] 以上实施例只为说明本发明的技术构思及特点, 其目的在于让熟悉此项技术的 人士能够了解本发明的内容并据此实施, 并不能限制本发明的保护范围。 凡跟 本发明权利要求范围所做的均等变化与修饰, 均应属于本发明权利要求的涵盖 范围。
Claims
[权利要求 1] 一种电子元件配套资料查询方法, 其特征在于, 包括:
接收电子元件编码;
提取所述电子元件编码对应的子词元, 所述子词元为所述电子元件编 码的一部分;
查找与所述子词元对应的资料标签, 所述资料标签中包括所述子词元 获取所述资料标签对应的电子元件配套资料。
[权利要求 2] 根据权利要求 1所述的电子元件配套资料查询方法, 其特征在于, 在 所述接收电子元件编码之前, 所述方法还包括建立数据库过程: 获取初始系列元件编码;
按照预设拆分模式拆分所述初始系列元件编码得到子词元; 建立所述子词元与电子元件配套资料的对应关系, 存储到数据库中。
[权利要求 3] 根据权利要求 2所述的电子元件配套资料查询方法, 其特征在于, 所 述初始系列元件编码包括至少一位通配符;
所述按照预设拆分模式拆分所述初始系列元件编码得到子词元包括: 按照所述通配符的位置将所述初始系列元件编码拆分为所述子词元, 所述子词元为所述初始系列元件编码中的连续字符;
所述建立所述子词元与电子元件配套资料的对应关系包括: 建立所述 初始系列元件编码中所有所述子词元与同一所述电子元件配套资料的 对应关系。
[权利要求 4] 根据权利要求 3所述的电子元件配套资料查询方法, 其特征在于, 所 述电子元件编码包括一个所述子词元;
所述查找与所述子词元对应的资料标签包括: 查找与所述电子元件编 码中子词元对应的资料标签, 所述资料标签包括一个所述子词元。
[权利要求 5] 根据权利要求 3所述的电子元件配套资料查询方法, 其特征在于, 所 述电子元件编码包括至少两个所述子词元;
所述查找与所述子词元对应的资料标签包括: 查找与所述电子元件编
码中所有子词元对应的资料标签, 所述资料标签中包括与所述电子元 件编码中所述子词元一一对应的子词元。
[权利要求 6] 根据权利要求 2-5任一项所述的电子元件配套资料查询方法, 其特征 在于, 所述提取所述电子元件编码对应的子词元包括:
提取所述电子元件编码中的部分字符作为检测词元;
判断所述数据库中是否存在所述检测词元;
若是, 将所述检测词元确认为所述电子元件编码的子词元。
[权利要求 7] 根据权利要求 6所述的电子元件配套资料查询方法, 其特征在于, 所 述提取所述电子元件编码中的部分字符作为检测词元包括: 将所述电子元件编码的第一字符作为开始游标, 结束游标从所述开始 游标后开始遍历所述电子元件编码至词尾字符; 每次所述结束游标遍历至词尾字符后, 将所述开始游标后移一位字符 , 所述结束游标重新进行遍历, 直至所述开始游标位于所述电子元件 编码的词尾字符, 结束遍历;
遍历期间获取所述开始游标和结束游标对应的字符、 以及所述开始游 标和结束游标之间的字符, 组成所述检测词元。
[权利要求 8] 根据权利要求 1所述的电子元件配套资料查询方法, 其特征在于, 在 所述获取所述资料标签对应的电子元件配套资料之后, 所述方法还包 括:
显示所述电子元件配套资料; 或
下载所述电子元件配套资料; 或
发送所述电子元件配套资料。
[权利要求 9] 一种计算机可读存储介质, 其上存储有计算机程序, 其特征在于, 所 述计算机程序被处理器执行时实现如权利要求 1-8中任意一项所述的 电子元件配套资料查询方法。
[权利要求 10] 一种终端, 其特征在于, 所述终端包括处理器, 所述处理器用于执行 存储器中存储的计算机程序时实现如权利要求 1-8中任意一项所述电 子元件配套资料查询方法的步骤。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/124780 WO2020133185A1 (zh) | 2018-12-28 | 2018-12-28 | 电子元件配套资料查询方法、存储介质及终端 |
US17/413,132 US11921770B2 (en) | 2018-12-28 | 2018-12-28 | Electronic element supporting data inquiry method, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/124780 WO2020133185A1 (zh) | 2018-12-28 | 2018-12-28 | 电子元件配套资料查询方法、存储介质及终端 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020133185A1 true WO2020133185A1 (zh) | 2020-07-02 |
Family
ID=71126426
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/124780 WO2020133185A1 (zh) | 2018-12-28 | 2018-12-28 | 电子元件配套资料查询方法、存储介质及终端 |
Country Status (2)
Country | Link |
---|---|
US (1) | US11921770B2 (zh) |
WO (1) | WO2020133185A1 (zh) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102467544A (zh) * | 2010-11-16 | 2012-05-23 | 中国电信股份有限公司 | 基于空间模糊编码的信息智能搜索方法及*** |
CN105426408A (zh) * | 2015-11-02 | 2016-03-23 | 北京锐安科技有限公司 | 一种多索引的数据处理方法及装置 |
CN107169046A (zh) * | 2017-04-25 | 2017-09-15 | 广东网金控股股份有限公司 | 一种数据库索引查找方法、装置及用户终端 |
CN107992523A (zh) * | 2017-11-07 | 2018-05-04 | 中国平安人寿保险股份有限公司 | 移动应用的功能选项查找方法及终端设备 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5748953A (en) * | 1989-06-14 | 1998-05-05 | Hitachi, Ltd. | Document search method wherein stored documents and search queries comprise segmented text data of spaced, nonconsecutive text elements and words segmented by predetermined symbols |
TW511007B (en) * | 2001-08-30 | 2002-11-21 | Ulead Systems Inc | System and method editing and processing character string |
US7073138B2 (en) * | 2003-06-06 | 2006-07-04 | Eugene Mirkin | Method and apparatus for cursor positioning in bi-directional text |
US7519621B2 (en) * | 2004-05-04 | 2009-04-14 | Pagebites, Inc. | Extracting information from Web pages |
CN100452042C (zh) | 2006-06-23 | 2009-01-14 | 腾讯科技(深圳)有限公司 | 数字串模糊匹配的方法 |
US9129009B2 (en) * | 2010-11-03 | 2015-09-08 | Google Inc. | Related links |
-
2018
- 2018-12-28 US US17/413,132 patent/US11921770B2/en active Active
- 2018-12-28 WO PCT/CN2018/124780 patent/WO2020133185A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102467544A (zh) * | 2010-11-16 | 2012-05-23 | 中国电信股份有限公司 | 基于空间模糊编码的信息智能搜索方法及*** |
CN105426408A (zh) * | 2015-11-02 | 2016-03-23 | 北京锐安科技有限公司 | 一种多索引的数据处理方法及装置 |
CN107169046A (zh) * | 2017-04-25 | 2017-09-15 | 广东网金控股股份有限公司 | 一种数据库索引查找方法、装置及用户终端 |
CN107992523A (zh) * | 2017-11-07 | 2018-05-04 | 中国平安人寿保险股份有限公司 | 移动应用的功能选项查找方法及终端设备 |
Also Published As
Publication number | Publication date |
---|---|
US11921770B2 (en) | 2024-03-05 |
US20220067079A1 (en) | 2022-03-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106933854B (zh) | 短链接处理方法、装置及服务器 | |
JP7029003B2 (ja) | パスワード保護質問設定方法及び装置 | |
CN104866985B (zh) | 快递单号识别方法、装置及*** | |
JP2019503537A (ja) | ショートリンクを処理する方法及び装置並びにショートリンクサーバ | |
JP6783375B2 (ja) | 情報インタラクションのための方法および装置 | |
CN103136228A (zh) | 一种图片搜索方法以及图片搜索装置 | |
WO2016101811A1 (zh) | 一种信息排序方法及装置 | |
WO2017079649A2 (en) | Method, system, and device for item search | |
WO2019196260A1 (zh) | 自动查找物流信息的方法、装置、终端设备及可读存储介质 | |
CN103810268A (zh) | 加载搜索结果推荐信息、网址检测的方法、装置和*** | |
WO2016058425A1 (zh) | 一种语音搜索方法、装置、设备和计算机存储介质 | |
CN102682011B (zh) | 建立域名描述名称信息表、搜索的方法、装置及*** | |
EP2778975A1 (en) | Methods for compressing web page menus and devices thereof | |
TW201327203A (zh) | 用於行動環境中之漸進式型樣匹配之方法及裝置 | |
CN105868225A (zh) | 数据查询的方法、客户端、服务器及*** | |
KR102114532B1 (ko) | 정보 운용 | |
JP6877343B2 (ja) | 非構造化メッセージの処理 | |
US8732214B2 (en) | Product search | |
CA2364886A1 (en) | Pattern retrieving method, pattern retrieval apparatus, computer-readable storage medium storing pattern retrieval program, pattern retrieval system, and pattern retrieval program | |
WO2020133185A1 (zh) | 电子元件配套资料查询方法、存储介质及终端 | |
WO2020135001A1 (zh) | 一种小说推荐方法及设备 | |
KR102023999B1 (ko) | 웹 페이지를 생성하는 방법 및 장치 | |
WO2013166903A1 (zh) | 一种跨社区搜索方法和装置 | |
CN110858852B (zh) | 一种注册域名的获取方法及装置 | |
CN112511643A (zh) | 一种报文数据提取方法及装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18944196 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 16/11/2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18944196 Country of ref document: EP Kind code of ref document: A1 |