WO2018010569A1 - Product chain object database establishment, and query methods, devices and systems therefor - Google Patents
Product chain object database establishment, and query methods, devices and systems therefor Download PDFInfo
- Publication number
- WO2018010569A1 WO2018010569A1 PCT/CN2017/091636 CN2017091636W WO2018010569A1 WO 2018010569 A1 WO2018010569 A1 WO 2018010569A1 CN 2017091636 W CN2017091636 W CN 2017091636W WO 2018010569 A1 WO2018010569 A1 WO 2018010569A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- industry
- product
- relationship
- production
- chain
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
Definitions
- the application relates to the technical field of computer processing, in particular to a method for establishing a product chain object database, a device for establishing a product chain object database, a system for establishing a product chain object database, and a query for a product chain object database.
- the method a query device of a product chain object database and a query system of a product chain object database.
- the final product may be successfully launched, but it has lost the excellent objective conditions that were previously conceived, and the efficiency is very low.
- embodiments of the present application have been proposed in order to provide a method for establishing a product chain object database that overcomes the above problems or at least partially solves the above problems, a device for building a product chain object database, and a product chain object.
- Database establishment system a product A query method for a chain object database, a query device for a product chain object database, and a query system for a product chain object database.
- the embodiment of the present application provides a system for establishing a product chain object database, where the system includes:
- One or more processors are One or more processors;
- One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, the one or more modules having the following functions:
- the product object and the associated object are used as industry objects, and the relationship with the industry is stored in a product chain object database of the industry.
- an embodiment of the present application provides a query system for a product chain object database, where the product chain object database stores an industry object and an industry relationship, where the industry object includes a product object and an associated object, and the industry relationship is a relationship between the product object established by the industry and the associated object; the system comprising:
- One or more processors are One or more processors;
- One or more modules the one or more modules being stored in the memory and configured to be executed by the one or more processors, the one or more modules having the following functions:
- the embodiment of the present application provides a method for establishing a product chain object database, including:
- the product object and the associated object are used as industry objects, and the relationship with the industry is stored in a product chain object database of the industry.
- the embodiment of the present application provides a query method for a product chain object database, where the product chain object database stores an industry object and an industry relationship, where the industry object includes a product object and an associated object, and the industry relationship is a relationship between the product object established by the industry and the associated object;
- the method includes:
- an embodiment of the present application provides a device for establishing a product chain object database, including:
- a product object obtaining module configured to obtain a product object from the webpage information
- An association object obtaining module configured to acquire an association object related to the product object in the webpage information
- An object industry identification module configured to identify an industry to which the product object belongs
- An industry relationship establishing module configured to establish an industry relationship between the product object and the associated object according to the industry
- the product chain object database storage module is configured to store the product object and the associated object as an industry object, and store the relationship with the industry in a product chain object database of the industry.
- the embodiment of the present application provides a query device for a product chain object database, where the product chain object database stores an industry object and an industry relationship, where the industry object includes a product object and an associated object, and the industry relationship is a relationship between the product object established by the industry and the associated object;
- the device comprises:
- a query request receiving module configured to receive a query request sent by the client, where the query request has a query word
- An industry object matching module configured to query an industry object that matches the query word in a product chain object database of the industry
- a product chain object traversal module which is used for searching for other industry objects connected by industry relations in a product chain object database of the industry based on the industry object, and obtaining a product chain object;
- a product chain object return module is configured to return the product chain object to the client.
- the embodiment of the present application can obtain a product object and related related objects, identify an industry to which the product object belongs, establish an industry relationship between the product object and the associated object, store the product object and the associated object as an industry object, and store the relationship with the industry to
- the product chain object database of the industry is accumulated and updated to gradually improve the data in the product chain, and the establishment of an automated industry product chain object database is realized, avoiding labor through workers, experts, etc. Accumulation, greatly reducing the cost of time, and the amount of data on the network is very large, through the knowledge of the group to compensate for the shortcomings of the knowledge of workers, experts and other individuals, reduce the The lack of information in the product chain has improved efficiency.
- the embodiment of the present application When receiving the query request sent by the client, the embodiment of the present application extracts the query word, identifies the industry to which the query word belongs, and searches for the industry object matching the query word in the product chain object database of the industry, and the product chain object database in the industry. Based on the industry object, we query other industry objects connected by industry relations step by step, obtain product chain objects and return to the client, and quickly let users obtain comprehensive product chain information, avoiding spending a long time to Product product chain research, reducing the time of research and improving efficiency.
- FIG. 1 is a flow chart showing the steps of an embodiment of a method for establishing a product chain object database of the present application
- FIG. 2 is a diagram showing an example of webpage information in an embodiment of the present application.
- 3A to 3C are diagrams showing an example of a product chain object database according to an embodiment of the present application.
- FIG. 4 is a flow chart showing the steps of an embodiment of a method for querying a product chain object database of the present application
- FIG. 5 is a structural block diagram of an embodiment of a device for establishing a product chain object database of the present application
- FIG. 6 is a structural block diagram of an embodiment of a query device for a product chain object database of the present application
- FIG. 7 is a schematic structural diagram of a server according to an embodiment of the present application.
- FIG. 1 a flow chart of steps of a method for establishing a product chain object database of the present application is shown, which may specifically include the following steps:
- Step 101 Obtain a product object from the webpage information
- the product object may be a data object that represents a product, generally an entity word.
- product objects can refer to mobile phones, tablets, computers, and the like.
- the product object may refer to konjac roast duck, green pepper shredded pork, hot and sour potato silk, and the like.
- product objects may refer to sofas, desks, beds, and the like.
- step 101 may include the following sub-steps:
- Sub-step S11 extracting a preset web address
- the website information of each industry may be collected in advance and stored in the network database.
- These website information may include the website name, the industry of the website, and the website address. Examples of the website can be as follows:
- Sub-step S12 crawling webpage information corresponding to the webpage
- the webpage information corresponding to the webpage may be captured by a web crawler (also known as a web spider, a web robot, etc.).
- a web crawler also known as a web spider, a web robot, etc.
- the web crawler visits a webpage of the website from the website, reads webpage information (such as title, body, etc.) of the webpage, finds other link addresses in the webpage, and then finds the next webpage through these link addresses, so that the loop continues. Usually until all the pages of this website have been crawled.
- Sub-step S13 identifying a website to which the webpage information belongs
- Sub-step S14 extracting a product object according to the first location of the website in the webpage information.
- product objects can be extracted at a specified first location according to the rules of their structure.
- a partition (div) of a body part of a webpage generally used to record summary information such as a dish image (not shown in FIG. 2), a dish name, a rating, and the like. .
- Step 102 Acquire an association object related to the product object in the webpage information.
- An associated object can refer to a data object related to a product in the product chain, generally an entity word.
- related objects may refer to components such as screens, circuit boards, cameras, etc., and may also refer to manufacturers of production and the like.
- the related object may be a vegetable material, a manufacturer that supplies the material, a manufacturer, and the like.
- step 102 may include the following sub-steps:
- Sub-step S21 extracting an association object associated with the product object according to the second location of the website in the webpage information.
- product objects can be extracted at a specified second location according to the regularity of their structure.
- content information such as materials and practices of a dish is generally used in a partition (div) of a body portion of a web page.
- step 102 can include the following sub-steps:
- Sub-step S22 extracting a preset production object
- Sub-step S23 when the production object produces the product object, the production object is set as an association object.
- Production objects which can refer to data objects that are produced (including production, sales, etc.) in the product chain, are generally entity words.
- a production object can be a manufacturer of a mobile phone, or a merchant selling a mobile phone, and the like.
- a production target can produce a restaurant of the dish type or the like.
- the manufacturer information may be collected in advance, and a structured vendor database is built.
- the manufacturer database may include the marketing content of the production object (including the product that can be produced), and may also include the marketing data of the manufacturer.
- the granularity of each product can also include user behavior data such as clicks, comments, orders, purchases, and more.
- the object of the production may be an online manufacturer or an offline manufacturer, and the embodiment of the present application does not limit this.
- the production object is set as an associated object relative to the product object.
- Step 103 Identify an industry to which the product object belongs
- the industry of the website can be identified as the industry to which the product object belongs.
- the basic introduction of the dishes and the representation of the product objects of the dishes can directly divide the industry into the food industry of the recipe network.
- the text classifier can be used to identify the industry to which the product objects belong.
- Preprocessing the product object before entering the product object into the text classifier for example, removing numbers, hyphens, punctuation, special symbols, converting uppercase letters to lowercase letters, stopping words, filtering words that are worthless to the classification ,and many more.
- the text classifier can be implemented based on algorithms such as naive Bayes, KNN (k-Nearest Neighbor algorithm).
- KNN Take KNN as an example, if a sample (such as a product object) is the k most in the feature space Most of the samples (ie, the nearest neighbors in the feature space) belong to a certain category, and the sample also belongs to this category.
- the selected neighbors are all objects that have been correctly classified.
- the method determines the category to which the samples are to be classified according to the category of the nearest neighbor or samples.
- Step 104 Establish an industry relationship between the product object and the associated object according to the industry;
- the materials include konjac, duck, etc.
- the merchant that can make the dish is the A shop. Therefore, the established industry relationship is that the mushroom simmered duck meat [material] konjac, Mushroom simmered duck meat [material] duck, mushroom simmered duck meat [production] A shop and so on.
- most of the industry relationships may include product composition relationships and/or product production relationships.
- the product composition relationship may be a relationship between the product and other objects used for the production of the product.
- Other objects may be products or raw materials, which is not limited in the embodiment of the present application.
- the industry relationship established between mushrooms and duck meat and konjac, ducks and other materials is a product composition relationship.
- Product production relationships are thought to be the relationship between the product and the manufacturer that produced the product.
- the industry relationship established between the mushroom and the A shop is the product production relationship.
- Step 105 Store the product object and the associated object as an industry object, and store the relationship with the industry in a product chain object database of the industry.
- each industry has at least one product chain object database, also known as a knowledge graph, which is essentially a semantic network, and its nodes generally represent an entity or a concept. Generally represents various semantic relationships between entities/concepts.
- the node of the product chain object database represents an industry object, that is, a data object in the industry
- the edge represents an industry relationship, that is, an industry object and an industry object are recorded in a product chain object database of an industry. Industry relations.
- industry objects can be divided into product objects and associated objects.
- product objects and associated objects are relatively speaking.
- An industry object can be a product object relative to certain industry objects, or it can be relative to certain industries.
- the associated object of the object can be a product object relative to certain industry objects, or it can be relative to certain industries.
- the screen is an associated object with respect to the mobile phone, and is also a product object relative to the display screen, the touch screen, and the like.
- the product chain object database of the industry to which the product object belongs can be extracted, and the product object, the associated object, and the industry relationship thereof are stored.
- the vendor database may also store the standard names of the industry objects in each industry and the non-standard names that may appear corresponding to each standard name.
- the product object and the associated object are named as non-standard names, they can be converted to standardized names.
- the duck is normalized into a duck, the konjac is turned into a hoe, and so on.
- step 105 may include the following sub-steps:
- Sub-step S31 searching for the product object in the industry object recorded in the product chain object database of the industry.
- the product object may be searched in an industry object recorded in the product chain object database to confirm whether the product object has been recorded in the product chain object database.
- the product object is an independent attribute of the industry object.
- the product object has the same name as the industry object, it does not mean that the industry object is a product object.
- the currently acquired product object is a screen
- the associated object is a display screen and a touch screen
- the product chain object database of the electronic industry to which the screen belongs is extracted.
- the mobile phone is recorded as a product object
- the screen is relative to the mobile phone. Associating an object, even if the screen has been recorded, the screen is not a product object, so it is confirmed that the screen as a product object is not found.
- Sub-step S32 when the product object is not found, the product object is recorded in a product chain object database of the industry.
- an industry object has the same name as the product object, but is recorded as an attribute of the associated object.
- the industry object can be directly set as the product object.
- Sub-step S33 searching for the associated object in the industry object recorded in the product chain object database of the industry.
- the associated object can be further looked up in the industry object recorded in the product chain object database.
- the associated object is relative to the product object, and is not an independent attribute of itself. Therefore, regardless of whether the attribute of the industrial object is a product object or an associated object, it can become an associated object of the current product object, that is, when the association is associated.
- the industry object can be considered a product object.
- the currently acquired product object is a screen
- the associated object is a display screen and a touch screen.
- the product chain object database of the electronic industry of the screen is taken.
- the touch screen is recorded as a product object
- the display screen is an object associated with the television. Therefore, it is confirmed that the display screen and the touch screen as the associated objects are found.
- Sub-step S34 when the associated object is found, the product object and the associated object are connected in the industry relationship.
- the node that is the product object and the node that is the associated object can be connected as an edge in an industry relationship.
- Sub-step S35 when the associated object is not found, the associated object is recorded in a product chain object database of the industry.
- Sub-step S36 connecting the product object and the associated object in the industry relationship.
- Sub-step S37 when the product object is found, the product object, the associated object, and the industry relationship are ignored.
- the product object If the product object is found, it means that the product object, the associated object and its industry relationship have been recorded before, and the current product object, associated object and its industry relationship are ignored.
- the embodiment of the present application can obtain a product object and related related objects, identify an industry to which the product object belongs, establish an industry relationship between the product object and the associated object, store the product object and the associated object as an industry object, and store the relationship with the industry to
- the product chain object database of the industry is accumulated and updated to gradually improve the data in the product chain, and the establishment of an automated industry product chain object database is realized, avoiding labor through workers, experts, etc. Accumulation, greatly reducing the cost of time, and the amount of data on the network is very large, through the knowledge of the group to compensate for the insufficiency of knowledge of workers, experts and other individuals, reducing the phenomenon of information gap in the product chain, improve efficiency.
- the industry that recognizes the screen is the electronic industry
- the industry relationship established between the screen and the display screen is the component
- the screen and The industry relationship established between the touch screens is the component, which is produced for the industry relationship established between the screen and the Ding factory.
- Extract the product chain object database of the electronics industry as shown in Figure 3A.
- the recorded industry objects are TV, display, mobile phone, factory A, factory B, factory C, screen, camera. , circuit boards, and more.
- TVs and mobile phones are the product objects, and displays, A factory, B factory, C factory, screen, camera, circuit board, etc. are related objects.
- the screen as the product object is not recorded, but if the screen as the associated object has been recorded, the screen can be set as the product object.
- the display screen has been recorded, as shown in Figure 3C, the display can be set as the associated object, the parts are connected to the screen and the display screen, in addition, the touch screen and the Ding factory are not recorded. , you can add a touch screen and Ding factory and set as the associated object, with the parts as the side to connect the screen and the touch screen, to make the side connection screen and Ding factory.
- FIG. 4 a flow chart of steps of an embodiment of a method for querying a product chain object database of the present application is shown, which may specifically include the following steps:
- Step 401 Receive a query request sent by a client.
- the user may send a query request to the server through a client, such as a browser or a separate application.
- a client such as a browser or a separate application.
- the query request has a query word.
- Step 402 Identify an industry to which the query term belongs.
- the query words can be normalized to obtain the standard naming.
- the standard name of the industry object in each industry and other non-standard names corresponding to each standard name may be stored in the preset vendor database.
- the query word if it is a non-standard name, it can be converted into a standardized name.
- the duck is normalized into a duck, the konjac is turned into a hoe, and so on.
- the query term is konjac roast duck, the industry to which it belongs is the food industry; if the query term is a mobile phone, the industry to which it belongs is the electronics industry.
- Step 403 Query an industry object that matches the query term in a product chain object database of the industry.
- each industry has at least one product chain object database, also known as a knowledge graph, which is essentially a semantic network, and its nodes generally represent an entity or a concept. Generally represents various semantic relationships between entities/concepts.
- the product chain object database stores the industry object and the industry relationship
- the node of the product chain object database represents the industry object, that is, the data object in the industry
- the edge represents the industry relationship, that is, the product chain object of an industry.
- the database records the industry relationships between industry objects and industry objects in the industry.
- the industry object includes a product object and an associated object
- the industry relationship is a relationship between the product object and the associated object established according to the industry.
- most of the industry relationships may include product composition relationships and/or product production relationships.
- the product composition relationship may be a relationship between the product and other objects used for the production of the product.
- Other objects may be products or raw materials, which is not limited in the embodiment of the present application.
- the industry relationship established between mushrooms and duck meat and konjac, ducks and other materials is a product composition relationship.
- Product production relationships are thought to be the relationship between the product and the manufacturer that produced the product.
- the industry relationship established between the mushroom and the A shop is the product production relationship.
- Step 404 In the product chain object database of the industry, use the industry object as a base point to query other industry objects connected by industry relations step by step to obtain a product chain object.
- the industry object matching the query word may be traversed along the edge to find other connected industry objects, and the product chain object, that is, all or part of the data object in the product chain of a certain product.
- step 404 can include the following sub-steps:
- Sub-step S41 setting the industry object as a product object
- the user queries the product in many cases, so the query word entered can be considered as a product object.
- Sub-step S42 searching for a target industry relationship preset in the industry
- Sub-step S43 determining whether the industry relationship of the product object connection matches the target industry relationship; if yes, executing sub-step S44, if not, executing sub-step S46;
- the target industry relationship may be set in the industry relationship owned by the industry for different industries to control the direction and depth of the product chain object.
- the component in order to control the extension of the product chain object to the component, can be set as the target industry relationship, and if other industry objects are parts of an industry object, the industry relationship In line with the target industry relationship, if the industry object is a component of other industry objects, its industry relationship does not meet the target industry relationship.
- Sub-step S44 extracting an association object of the industry relationship connection
- Sub-step S45 the associated object is set as a new product object, return to the execution sub-step S43;
- the associated object can be traversed as a new product object, ie as a new product.
- Sub-step S46 connecting the queried product object and the associated object with the industry relationship to generate a product chain object.
- the traversal is over, and the product objects and associated objects are connected in series by industry relationship to obtain the product chain object.
- Step 405 Return the product chain object to the client.
- the product chain object can be sent to the client for display.
- the information in the product chain object may be sorted according to certain rules.
- the query request has a first geographic location, that is, a geographic location where the client is located.
- the production object represented by the industrial object is extracted, that is, the data object of the product (including production, sales, etc.) is produced in the product chain.
- the sorting may be performed according to factors such as the score, the production quality, and the like, which is not limited by the embodiment of the present application.
- the user in order to improve the efficiency of information acquisition, the user can set certain query parameters to query information in the product chain object.
- the total cost of production is included in the query request.
- the production object represented by the industrial object is extracted, that is, the data object of the product (including production, sales, etc.) is produced in the product chain.
- the target production object whose production sub-cost is less than or equal to the total production cost is selected from the production object, and the product chain object including the target production object is returned to the client.
- the production objects whose production cost is less than or equal to 500 yuan and 900 yuan can be respectively returned.
- the product chain object database of the industry may be generated in the manner of the method for establishing the product chain object database, and the applications thereof are basically similar, so the description is relatively simple, and the related places are referred to the method for establishing the product chain object database.
- the description of the embodiments may be omitted, and the embodiments of the present application are not described in detail herein.
- the embodiment of the present application When receiving the query request sent by the client, the embodiment of the present application extracts the query word, identifies the industry to which the query word belongs, and searches for the industry object matching the query word in the product chain object database of the industry, and the product chain object database in the industry. Based on the industry object, we query other industry objects connected by industry relations step by step, obtain product chain objects and return to the client, and quickly let users obtain comprehensive product chain information, avoiding spending a long time to Product product chain research, reducing the time of research and improving efficiency.
- the industry to which it belongs is identified as the electronic industry.
- the product chain object database of the electronic industry is extracted, as shown in FIG. 3C, in the product chain object database of the electronic industry, an industry object (ie, a mobile phone) matching the query word (ie, mobile phone) is queried.
- an industry object ie, a mobile phone
- the query word ie, mobile phone
- the industry object ie mobile phone
- the industry object is traversed as a product object.
- the industrial relationship between the mobile phone and the factory A and the factory B is produced, and the target industry relationship is met, and the plant A and plant B are extracted.
- the industry relationship between mobile phones and C stores is sales, in line with the target industry relationship, and the extraction of C stores.
- the industry relationship between mobile phones and screens, cameras, circuit boards, etc. is components, in line with the target industry relationship, extracting screens, cameras, circuit boards, and so on.
- the mobile phone does not have other connected industry relationships, and this node is traversed.
- the industry relationship between the screen and the Ding factory is produced, in line with the target industry relationship, and the Ding factory is extracted.
- the industry relationship between the phone and the display and touch screen is component, in line with the target industry relationship, extracting the display and touch screen.
- the screen does not have other connected industry relationships, and this node is traversed.
- the display Since the display is a component of the TV, it does not meet the target industry relationship and does not extract the TV.
- the display does not have other connected industry relationships, and this node is traversed.
- the mobile phone is connected with the factory, the factory B, the C shop, the screen, the camera, the circuit board, etc.
- the industrial chain is connected with the Ding factory, the screen and the display screen and the touch screen to obtain the product chain object:
- FIG. 5 a structural block diagram of an apparatus for establishing a product chain object database of the present application is shown, which may specifically include the following modules:
- a product object obtaining module 501 configured to obtain a product object from the webpage information
- the association object obtaining module 502 is configured to acquire an association object related to the product object in the webpage information
- the object industry identification module 503 is configured to identify an industry to which the product object belongs
- An industry relationship establishing module 504 configured to establish an industry relationship between the product object and the associated object according to the industry;
- the product chain object database storage module 505 is configured to store the product object and the associated object as an industry object, and store the relationship with the industry in a product chain object database of the industry.
- the product object obtaining module 501 may include the following sub-modules:
- a URL extraction sub-module for extracting a preset URL
- a webpage information capture sub-module configured to capture webpage information corresponding to the webpage
- a website identification sub-module configured to identify a website to which the webpage information belongs
- a product object extraction submodule configured to extract a product object according to the first location of the website in the webpage information.
- the associated object obtaining module 502 may include the following sub-modules:
- an associated object extraction submodule configured to extract an association object associated with the product object according to the second location of the website in the webpage information.
- the associated object acquisition module 502 can include the following sub-modules:
- a production object extraction submodule for extracting a preset production object
- the associated object setting submodule is configured to set the production object as an associated object when the production object produces the product object.
- the industry relationship includes a product composition relationship and/or a product production relationship.
- an industry relationship between an industry object and an industry object in the industry is recorded in a product chain object database of the industry;
- the product chain object database storage module 505 can include the following sub-modules:
- a product object finding submodule configured to search for the product object in an industry object recorded in a product chain object database of the industry
- a product object record submodule configured to record the product object in a product chain object database of the industry when the product object is not found;
- An associated object search submodule configured to search for the associated object in an industry object recorded in a product chain object database of the industry
- a first connection submodule configured to connect the product object and the associated object in the industry relationship when the associated object is found
- An associated object record submodule configured to record the associated object in a product chain object database of the industry when the associated object is not found;
- connection submodule configured to connect the product object and the associated object in the industry relationship.
- the product chain object database storage module 505 may further include the following sub-modules:
- the sub-module is ignored for ignoring the product object, the associated object, and the industry relationship when the product object is found.
- the product chain object database storage module 505 may further include the following sub-modules:
- An object is sub-module for normalizing the product object and the associated object Reason.
- the product chain object database stores an industry object and an industry relationship, and the industry object includes a product object and an associated object.
- the industry relationship is a relationship between the product object and the associated object established according to the industry; specifically, the following modules may be included:
- the query request receiving module 601 is configured to receive a query request sent by the client, where the query request has a query word;
- the query word industry identification module 602 is configured to identify an industry to which the query word belongs
- An industry object matching module 603, configured to query an industry object that matches the query word in a product chain object database of the industry;
- a product chain object traversal module 604 configured to use the industry object as a base point in the product chain object database of the industry, and query other industry objects connected by industry relations step by step to obtain a product chain object;
- the product chain object return module 605 is configured to return the product chain object to the client.
- the industry relationship includes a product composition relationship and/or a product production relationship.
- the product chain object database traversal module 604 can include the following sub-modules:
- a first product object setting submodule configured to set the industry object as a product object
- a target industry relationship matching submodule configured to determine whether an industry relationship of the product object connection matches the target industry relationship; if yes, the associated object extracts the submodule, and if not, executes the object connection submodule;
- An association object extraction submodule configured to extract an association object of the industry relationship connection
- a second product object setting submodule configured to set the associated object as a new product object, and return a calling target industry relationship matching submodule;
- the query request has a first geographic location
- the product chain object return module 605 can include the following sub-modules:
- a first production object extraction submodule configured to extract a production object represented by the industry object when the industry relationship is a product production relationship
- a location location query sub-module configured to query a second geographic location of the production object
- a distance sorting submodule configured to sort the production objects according to a distance value between the first geographic location and the second geographic location
- the sort returns a submodule for returning the sorted product chain object to the client.
- the query request has a total cost of production
- the product chain object return module 605 can include the following sub-modules:
- a second production object extraction submodule configured to extract a production object represented by the industry object when the industry relationship is a product production relationship
- a production sub-cost query sub-module configured to query a production sub-cost of the production object
- a target production object selection submodule configured to select, from the production objects, a target production object that has a sum of the production sub-costs less than or equal to the total production cost
- the target production object returns a submodule for returning a product chain object including the target production object to the client.
- the apparatus may further include the following modules:
- the query word normalization module is used for normalizing the query words.
- the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
- the embodiment of the present invention further provides a system for establishing a product chain object database, and the system for establishing a product chain object database may include:
- One or more processors are One or more processors;
- One or more modules the one or more modules being stored in the memory and configured to be executed by one or more processors, wherein the one or more modules have the following functions:
- the product object and the associated object are used as industry objects, and the relationship with the industry is stored in a product chain object database of the industry.
- the one or more modules may have the following functions:
- the product object is extracted according to the first location of the website in the webpage information.
- the one or more modules may have the following functions:
- the associated object associated with the product object is extracted in accordance with the second location of the website in the web page information.
- the one or more modules may have the following functions:
- the production object When the production object produces the product object, the production object is set as an associated object.
- the industry relationship includes a product composition relationship and/or a product production relationship.
- an industry relationship between an industry object and an industry object in the industry is recorded in a product chain object database of the industry;
- the one or more modules can have the following functions:
- the associated object is recorded in a product chain object database of the industry;
- the product object and the associated object are connected in the industry relationship.
- the one or more modules may have the following functions:
- the one or more modules may have the following functions:
- the product object and the associated object are normalized.
- An embodiment of the present invention further provides a query system for a product chain object database, where the product chain object database stores an industry object and an industry relationship, where the industry object includes a product object and an associated object, and the industry relationship is established according to an industry.
- the relationship between the product object and the associated object; the system for establishing the product chain object database may include:
- One or more processors are One or more processors;
- One or more modules the one or more modules being stored in the memory and configured to be executed by one or more processors, wherein the one or more modules have the following functions:
- the industry relationship includes a product composition relationship and/or a product production relationship.
- the one or more modules may have the following functions:
- the product object and the associated object that are queried are connected by the industry relationship to generate a product chain object.
- the query request has a first geographic location;
- the one or more modules may have the following functions:
- the sorted product chain object is returned to the client.
- the query request has a total production cost
- the one or more modules may have the following functions:
- a product chain object including the target production object is returned to the client.
- the one or more modules may have the following functions:
- the query words are normalized.
- FIG. 7 is a schematic structural diagram of a server provided by an embodiment of the present application.
- the server 700 can vary considerably depending on configuration or performance, and can include one or more central processing units (CPUs) 722 (eg, one or more processors) and memory 732, one or one
- the storage medium 730 (for example, one or one of the Shanghai quantity storage devices) storing the application 742 or the data 744 above.
- the memory 732 and the storage medium 730 may be temporarily stored or persistently stored.
- the program stored on storage medium 730 may include one or more modules (not shown), each of which may include a series of instruction operations in the server.
- central processor 722 can be configured to communicate with storage medium 730, executing a series of instruction operations in storage medium 730 on server 700.
- Server 700 may also include one or more power sources 726, one or more wired or wireless network interfaces 750, one or more input and output interfaces 758, one or more keyboards 756, and/or one or more operating systems 741 For example, Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
- central processor 722 can execute instructions on server 700 for:
- the product object and the associated object are used as industry objects, and the relationship with the industry is stored in a product chain object database of the industry.
- the one or more modules may have the following functions:
- the product object is extracted according to the first location of the website in the webpage information.
- the one or more modules may have the following functions:
- the associated object associated with the product object is extracted in accordance with the second location of the website in the web page information.
- the one or more modules may have the following functions:
- the production object When the production object produces the product object, the production object is set as an associated object.
- the industry relationship includes a product composition relationship and/or a product production relationship.
- an industry relationship between an industry object and an industry object in the industry is recorded in a product chain object database of the industry;
- the one or more modules can have the following functions:
- the associated object is recorded in a product chain object database of the industry;
- the product object and the associated object are connected in the industry relationship.
- the one or more modules may have the following functions:
- the one or more modules may have the following functions:
- the product object and the associated object are normalized.
- the product chain object database stores an industry object and an industry relationship, the industry object including a product object and an associated object, the industry relationship being between the product object and the associated object established according to an industry Relationship;
- central processor 722 can execute instructions on server 700 for:
- an industry relationship between an industry object and an industry object in the industry is recorded in a product chain object database of the industry, and the industry relationship includes a product composition relationship and/or a product production relationship.
- the one or more modules may have the following functions:
- the product object and the associated object that are queried are connected by the industry relationship to generate a product chain object.
- the query request has a first geographic location;
- the one or more modules may have the following functions:
- the sorted product chain object is returned to the client.
- the query request has a total production cost
- the one or more modules may have the following functions:
- a product chain object including the target production object is returned to the client.
- the one or more modules may have the following functions:
- the query words are normalized.
- embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product object. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application may take the form of a computer program product object embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer usable program code embodied therein. .
- the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
- RAM random access memory
- ROM read only memory
- Memory is computer readable medium
- Computer readable media includes both permanent and non-persistent, removable and non-removable media.
- Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media 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.
- PRAM phase change memory
- SRAM static random access memory
- DRAM dynamic random access memory
- RAM random access memory
- ROM read only memory
- EEPROM electrically erasable programmable read only memory
- flash memory or other memory technology
- compact disk read only memory CD-ROM
- DVD digital versatile disk
- Magnetic tape cartridges magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
- computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
- Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program product objects in accordance with embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
- These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
- Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the instruction device implements the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart.
- the method for establishing a product chain object database provided by the present application, a device for establishing a product chain object database, a system for establishing a product chain object database, a method for querying a product chain object database, and a product chain
- the query method device of the object database and the query method system of the product chain object database are described in detail.
- the principle and implementation manner of the present application are described in the specific examples. The description of the above embodiment is only for helping.
- the method of the present application and its core idea are understood; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and the scope of application. It should be understood that the limitations of the application.
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本申请涉及计算机处理的技术领域,特别是涉及一种产品链对象数据库的建立方法、一种产品链对象数据库的建立装置、一种产品链对象数据库的建立系统、一种产品链对象数据库的查询方法、一种产品链对象数据库的查询装置和一种产品链对象数据库的查询系统。The application relates to the technical field of computer processing, in particular to a method for establishing a product chain object database, a device for establishing a product chain object database, a system for establishing a product chain object database, and a query for a product chain object database. The method, a query device of a product chain object database and a query system of a product chain object database.
产品从初级生产直到消费的各环节,涉及产品及其辅料的生产、加工、分销、贮存和处理,形成产品链。Products from primary production to consumption, involving the production, processing, distribution, storage and processing of products and their accessories, form a product chain.
范围从原材料生产者、产品生产制造商、运输和仓储者、转包商到零售商和产品服务环节以及相关的组织,如设备、包装材料生产者、清洗行业、添加剂和配料生产者。It ranges from raw material producers, product manufacturers, transportation and warehousing, subcontractors to retailers and product services, and related organizations such as equipment, packaging material producers, cleaning industries, additives and ingredient producers.
由于产品在产品链的各个环节的信息,基本是依靠熟练工人、专家等人工进行积累,不仅耗时长,而且,工人、专家等个人的知识不全,导致产品链的信息比较残缺,效率很低。Because the information of products in all aspects of the product chain is basically based on skilled workers, experts and other manual accumulation, not only takes a long time, but also the knowledge of workers, experts and other individuals is incomplete, resulting in information gaps in the product chain, the efficiency is very low.
在生产一个产品之前,用户往往需要花费很长时间对该产品的产品链进行调研,然后才开始制作。Before producing a product, users often take a long time to research the product chain of the product before starting production.
例如,对于手机而言,在生产之前,需要调研电路板、摄像头、传感器(如距离传感器、陀螺仪等)、电池、耳机、数据线、屏幕等一系列的零部件,其产品链长,所花费的调研时间很长。For example, for mobile phones, before production, it is necessary to investigate a series of components such as circuit boards, cameras, sensors (such as distance sensors, gyroscopes, etc.), batteries, headphones, data lines, screens, etc. The time spent on research is long.
当然,最后产品可能成功推出,但是已经失去了此前构思时候所具备的优良客观条件,效率很低。Of course, the final product may be successfully launched, but it has lost the excellent objective conditions that were previously conceived, and the efficiency is very low.
发明内容Summary of the invention
鉴于上述问题,提出了本申请实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种产品链对象数据库的建立方法、一种产品链对象数据库的建立装置、一种产品链对象数据库的建立系统、一种产品 链对象数据库的查询方法、一种产品链对象数据库的查询装置和一种产品链对象数据库的查询系统。In view of the above problems, embodiments of the present application have been proposed in order to provide a method for establishing a product chain object database that overcomes the above problems or at least partially solves the above problems, a device for building a product chain object database, and a product chain object. Database establishment system, a product A query method for a chain object database, a query device for a product chain object database, and a query system for a product chain object database.
一方面,本申请实施例提供了一种产品链对象数据库的建立系统,所述系统包括:In one aspect, the embodiment of the present application provides a system for establishing a product chain object database, where the system includes:
一个或多个处理器;One or more processors;
存储器;和Memory; and
一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或多个处理器执行,所述一个或多个模块具有如下功能:One or more modules, the one or more modules being stored in the memory and configured to be executed by the one or more processors, the one or more modules having the following functions:
从网页信息中获取产品对象;Obtain product objects from web page information;
在所述网页信息中获取与所述产品对象相关的关联对象;Obtaining an association object related to the product object in the webpage information;
识别所述产品对象所属的行业;Identifying the industry to which the product object belongs;
根据所述行业建立所述产品对象与所述关联对象之间的行业关系;Establishing an industry relationship between the product object and the associated object according to the industry;
将所述产品对象、所述关联对象作为行业对象,与所述行业关系存储至所述行业的产品链对象数据库中。The product object and the associated object are used as industry objects, and the relationship with the industry is stored in a product chain object database of the industry.
另一方面,本申请实施例提供了一种产品链对象数据库的查询系统,所述产品链对象数据库存储有行业对象和行业关系,所述行业对象包括产品对象和关联对象,所述行业关系为根据行业建立的所述产品对象与所述关联对象之间的关系;所述系统包括:On the other hand, an embodiment of the present application provides a query system for a product chain object database, where the product chain object database stores an industry object and an industry relationship, where the industry object includes a product object and an associated object, and the industry relationship is a relationship between the product object established by the industry and the associated object; the system comprising:
一个或多个处理器;One or more processors;
存储器;和Memory; and
一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或多个处理器执行,所述一个或多个模块具有如下功能:One or more modules, the one or more modules being stored in the memory and configured to be executed by the one or more processors, the one or more modules having the following functions:
接收客户端发送的查询请求,所述查询请求中具有查询词;Receiving a query request sent by the client, where the query request has a query word;
识别所述查询词所属的行业;Identifying the industry to which the query term belongs;
在所述行业的产品链对象数据库中查询与所述查询词匹配的行业对象; Querying an industry object matching the query term in a product chain object database of the industry;
在所述行业的产品链对象数据库中以所述行业对象为基点,逐级查询以行业关系相连的其它行业对象,获得产品链对象;In the product chain object database of the industry, based on the industry object, querying other industry objects connected by industry relations step by step to obtain a product chain object;
将所述产品链对象返回所述客户端。Returning the product chain object to the client.
另一方面,本申请实施例提供了一种产品链对象数据库的建立方法,包括:On the other hand, the embodiment of the present application provides a method for establishing a product chain object database, including:
从网页信息中获取产品对象;Obtain product objects from web page information;
在所述网页信息中获取与所述产品对象相关的关联对象;Obtaining an association object related to the product object in the webpage information;
识别所述产品对象所属的行业;Identifying the industry to which the product object belongs;
根据所述行业建立所述产品对象与所述关联对象之间的行业关系;Establishing an industry relationship between the product object and the associated object according to the industry;
将所述产品对象、所述关联对象作为行业对象,与所述行业关系存储至所述行业的产品链对象数据库中。The product object and the associated object are used as industry objects, and the relationship with the industry is stored in a product chain object database of the industry.
另一方面,本申请实施例提供了一种产品链对象数据库的查询方法,所述产品链对象数据库存储有行业对象和行业关系,所述行业对象包括产品对象和关联对象,所述行业关系为根据行业建立的所述产品对象与所述关联对象之间的关系;On the other hand, the embodiment of the present application provides a query method for a product chain object database, where the product chain object database stores an industry object and an industry relationship, where the industry object includes a product object and an associated object, and the industry relationship is a relationship between the product object established by the industry and the associated object;
所述的方法包括:The method includes:
接收客户端发送的查询请求,所述查询请求中具有查询词;Receiving a query request sent by the client, where the query request has a query word;
识别所述查询词所属的行业;Identifying the industry to which the query term belongs;
在所述行业的产品链对象数据库中查询与所述查询词匹配的行业对象;Querying an industry object matching the query term in a product chain object database of the industry;
在所述行业的产品链对象数据库中以所述行业对象为基点,逐级查询以行业关系相连的其它行业对象,获得产品链对象;In the product chain object database of the industry, based on the industry object, querying other industry objects connected by industry relations step by step to obtain a product chain object;
将所述产品链对象返回所述客户端。Returning the product chain object to the client.
另一方面,本申请实施例提供了一种产品链对象数据库的建立装置,包括:On the other hand, an embodiment of the present application provides a device for establishing a product chain object database, including:
产品对象获取模块,用于从网页信息中获取产品对象;a product object obtaining module, configured to obtain a product object from the webpage information;
关联对象获取模块,用于在所述网页信息中获取与所述产品对象相关的关联对象; An association object obtaining module, configured to acquire an association object related to the product object in the webpage information;
对象行业识别模块,用于识别所述产品对象所属的行业;An object industry identification module, configured to identify an industry to which the product object belongs;
行业关系建立模块,用于根据所述行业建立所述产品对象与所述关联对象之间的行业关系;An industry relationship establishing module, configured to establish an industry relationship between the product object and the associated object according to the industry;
产品链对象数据库存储模块,用于将所述产品对象、所述关联对象作为行业对象,与所述行业关系存储至所述行业的产品链对象数据库中。The product chain object database storage module is configured to store the product object and the associated object as an industry object, and store the relationship with the industry in a product chain object database of the industry.
另一方面,本申请实施例提供了一种产品链对象数据库的查询装置,所述产品链对象数据库存储有行业对象和行业关系,所述行业对象包括产品对象和关联对象,所述行业关系为根据所述行业建立的所述产品对象与所述关联对象之间的关系;On the other hand, the embodiment of the present application provides a query device for a product chain object database, where the product chain object database stores an industry object and an industry relationship, where the industry object includes a product object and an associated object, and the industry relationship is a relationship between the product object established by the industry and the associated object;
所述的装置包括:The device comprises:
查询请求接收模块,用于接收客户端发送的查询请求,所述查询请求中具有查询词;a query request receiving module, configured to receive a query request sent by the client, where the query request has a query word;
查询词行业识别模块,用于识别所述查询词所属的行业;Querying a word industry identification module for identifying an industry to which the query word belongs;
行业对象匹配模块,用于在所述行业的产品链对象数据库中查询与所述查询词匹配的行业对象;An industry object matching module, configured to query an industry object that matches the query word in a product chain object database of the industry;
产品链对象数据库遍历模块,用于在所述行业的产品链对象数据库中以所述行业对象为基点,逐级查询以行业关系相连的其它行业对象,获得产品链对象;a product chain object traversal module, which is used for searching for other industry objects connected by industry relations in a product chain object database of the industry based on the industry object, and obtaining a product chain object;
产品链对象返回模块,用于将所述产品链对象返回所述客户端。A product chain object return module is configured to return the product chain object to the client.
本申请实施例包括以下优点:Embodiments of the present application include the following advantages:
本申请实施例可以获取产品对象及其相关的关联对象,识别产品对象所属的行业,以建立产品对象与关联对象之间的行业关系,将产品对象、关联对象作为行业对象,与行业关系存储至行业的产品链对象数据库中,对该行业的产品链对象数据库进行累积、更新,以逐步完善产品链中的数据,实现了自动化的行业的产品链对象数据库的建立,避免通过工人、专家等人工进行积累,大大减少了时间的耗费,并且,网络上的数据量十分巨大,通过群体的知识弥补工人、专家等个人的知识不全的缺点,减少使 得产品链的信息残缺的现象,提高了效率。The embodiment of the present application can obtain a product object and related related objects, identify an industry to which the product object belongs, establish an industry relationship between the product object and the associated object, store the product object and the associated object as an industry object, and store the relationship with the industry to In the industry product chain object database, the product chain object database of the industry is accumulated and updated to gradually improve the data in the product chain, and the establishment of an automated industry product chain object database is realized, avoiding labor through workers, experts, etc. Accumulation, greatly reducing the cost of time, and the amount of data on the network is very large, through the knowledge of the group to compensate for the shortcomings of the knowledge of workers, experts and other individuals, reduce the The lack of information in the product chain has improved efficiency.
本申请实施例接收客户端发送的查询请求,则从其中提取查询词,识别查询词所属的行业,在行业的产品链对象数据库中查询与查询词匹配的行业对象,在行业的产品链对象数据库中以该行业对象为基点,逐级查询以行业关系相连的其它行业对象,获得产品链对象并返回客户端,快速让用户获得全面的产品链的信息,避免花费很长的时间去对某个产品的产品链进行调研,减少调研的时间,提高了效率。When receiving the query request sent by the client, the embodiment of the present application extracts the query word, identifies the industry to which the query word belongs, and searches for the industry object matching the query word in the product chain object database of the industry, and the product chain object database in the industry. Based on the industry object, we query other industry objects connected by industry relations step by step, obtain product chain objects and return to the client, and quickly let users obtain comprehensive product chain information, avoiding spending a long time to Product product chain research, reducing the time of research and improving efficiency.
图1是本申请的一种产品链对象数据库的建立方法实施例的步骤流程图;1 is a flow chart showing the steps of an embodiment of a method for establishing a product chain object database of the present application;
图2是本申请实施例的一种网页信息的示例图;2 is a diagram showing an example of webpage information in an embodiment of the present application;
图3A至图3C是本申请实施例的一种产品链对象数据库的示例图;3A to 3C are diagrams showing an example of a product chain object database according to an embodiment of the present application;
图4是本申请的一种产品链对象数据库的查询方法实施例的步骤流程图;4 is a flow chart showing the steps of an embodiment of a method for querying a product chain object database of the present application;
图5是本申请的一种产品链对象数据库的建立装置实施例的结构框图;5 is a structural block diagram of an embodiment of a device for establishing a product chain object database of the present application;
图6是本申请的一种产品链对象数据库的查询装置实施例的结构框图;6 is a structural block diagram of an embodiment of a query device for a product chain object database of the present application;
图7是本申请实施例的一种服务器结构示意图。FIG. 7 is a schematic structural diagram of a server according to an embodiment of the present application.
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。The above described objects, features and advantages of the present application will become more apparent and understood.
参照图1,示出了本申请的一种产品链对象数据库的建立方法实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , a flow chart of steps of a method for establishing a product chain object database of the present application is shown, which may specifically include the following steps:
步骤101,从网页信息中获取产品对象;Step 101: Obtain a product object from the webpage information;
在本发明实施例中,产品对象,可以为表征产品的数据对象,一般为实体词。In the embodiment of the present invention, the product object may be a data object that represents a product, generally an entity word.
在不同的行业,产品对象也有所不同。 Product objects vary in different industries.
例如,对于电子行业,产品对象可以指手机、平板电脑、电脑等等。For example, for the electronics industry, product objects can refer to mobile phones, tablets, computers, and the like.
又例如,对于食品行业,产品对象可以指魔芋烧鸭肉、青椒肉丝、酸辣土豆丝等等。For another example, for the food industry, the product object may refer to konjac roast duck, green pepper shredded pork, hot and sour potato silk, and the like.
又例如,对于家具行业,产品对象可以指沙发、书桌、床等等。As another example, for the furniture industry, product objects may refer to sofas, desks, beds, and the like.
在本申请的一个实施例中,步骤101可以包括如下子步骤:In an embodiment of the present application,
子步骤S11,提取预设的网址;Sub-step S11, extracting a preset web address;
在本申请实施例中,可以预先采集各个行业的网站信息,存储在网点数据库中。In the embodiment of the present application, the website information of each industry may be collected in advance and stored in the network database.
这些网站信息可以包括网站名称、网站所属行业、网址,其示例可以如下表所示:These website information may include the website name, the industry of the website, and the website address. Examples of the website can be as follows:
在创建产品链对象数据库的过程中,可以从网点数据库中提取网址。In the process of creating a product chain object database, you can extract the URL from the site database.
子步骤S12,抓取所述网址对应的网页信息;Sub-step S12, crawling webpage information corresponding to the webpage;
在具体实现中,可以通过网络爬虫(又称网络蜘蛛、网络机器人等)抓取该网址对应的网页信息。In a specific implementation, the webpage information corresponding to the webpage may be captured by a web crawler (also known as a web spider, a web robot, etc.).
网络爬虫从该网址访问网站的某个网页,读取网页的网页信息(如标题、正文等),找到在网页中的其它链接地址,然后通过这些链接地址寻找下一个网页,这样一直循环下去,一般直到把这个网站所有的网页都抓取完为止。The web crawler visits a webpage of the website from the website, reads webpage information (such as title, body, etc.) of the webpage, finds other link addresses in the webpage, and then finds the next webpage through these link addresses, so that the loop continues. Usually until all the pages of this website have been crawled.
子步骤S13,识别所述网页信息所属的网站;Sub-step S13, identifying a website to which the webpage information belongs;
子步骤S14,按照所述网站在所述网页信息中的第一位置提取产品对象。Sub-step S14, extracting a product object according to the first location of the website in the webpage information.
在实际应用中,很多网站的网页一般是基于相同的网页模板生成的,因此,这些网页的结构一般存在一定的规律。In practical applications, the pages of many websites are generally generated based on the same web page template. Therefore, the structure of these web pages generally has certain rules.
针对这些网站,可以按照其结构的规律,在指定的第一位置提取产品对象。 For these websites, product objects can be extracted at a specified first location according to the rules of their structure.
例如,如图2所示,在菜谱网中,在网页主体(body)部分的一个分区(div)中,一般用于记载菜式图片(图2未标示)、菜式名称、评分等摘要信息。For example, as shown in FIG. 2, in the recipe network, in a partition (div) of a body part of a webpage, generally used to record summary information such as a dish image (not shown in FIG. 2), a dish name, a rating, and the like. .
针对这个网站,可以在这个分区中提取菜式名称作为产品对象,即魔芋烧鸭肉。For this website, you can extract the dish name as the product object in this partition, namely the konjac roast duck.
步骤102,在所述网页信息中获取与所述产品对象相关的关联对象;Step 102: Acquire an association object related to the product object in the webpage information.
关联对象,可以指在产品链中与产品相关的数据对象,一般为实体词。An associated object can refer to a data object related to a product in the product chain, generally an entity word.
例如,对于电子行业的手机,关联对象可以指屏幕、电路板、摄像头等零部件,也可以指生产的厂商等等。For example, for mobile phones in the electronics industry, related objects may refer to components such as screens, circuit boards, cameras, etc., and may also refer to manufacturers of production and the like.
又例如,对于食品行业,关联对象可以菜式的材料,也可以指提供材料的厂商,还可以指生产的厂商等等。For example, in the food industry, the related object may be a vegetable material, a manufacturer that supplies the material, a manufacturer, and the like.
在本申请的一个实施例中,步骤102可以包括如下子步骤:In an embodiment of the present application,
子步骤S21,按照所述网站在所述网页信息中的第二位置提取与所述产品对象关联的关联对象。Sub-step S21, extracting an association object associated with the product object according to the second location of the website in the webpage information.
在实际应用中,很多网站的网页一般是基于相同的网页模板生成的,因此,这些网页的结构一般存在一定的规律。In practical applications, the pages of many websites are generally generated based on the same web page template. Therefore, the structure of these web pages generally has certain rules.
针对这些网站,可以按照其结构的规律,在指定的第二位置提取产品对象。For these websites, product objects can be extracted at a specified second location according to the regularity of their structure.
例如,如图2所示,在菜谱网中,在网页主体(body)部分的一个分区(div)中,一般用于记载菜式的材料、做法等内容信息。For example, as shown in FIG. 2, in the recipe network, content information such as materials and practices of a dish is generally used in a partition (div) of a body portion of a web page.
针对这个网站,可以在这个分区中提取菜式的材料作为关联对象,即鸭子半只、魔芋豆腐、大蒜3瓣、泡姜1小块、泡椒3个左右、油2汤匙、开水适量。For this website, you can extract the material of the dish as the associated object in this partition, that is, duck half, konjac tofu, garlic 3, ginger 1 small, pickled pepper 3, oil 2 tablespoons, boiling water amount.
在本申请的另一个实施例中,步骤102可以包括如下子步骤:In another embodiment of the present application,
子步骤S22,提取预设的生产对象;Sub-step S22, extracting a preset production object;
子步骤S23,当所述生产对象生产所述产品对象时,将所述生产对象设置为关联对象。 Sub-step S23, when the production object produces the product object, the production object is set as an association object.
生产对象,可以指在产品链中生产(包括制作、销售等)产品的数据对象,一般为实体词。Production objects, which can refer to data objects that are produced (including production, sales, etc.) in the product chain, are generally entity words.
例如,对于电子行业的手机,生产对象可以生产手机的厂家,也可以指销售手机的商家等等。For example, for a mobile phone in the electronics industry, a production object can be a manufacturer of a mobile phone, or a merchant selling a mobile phone, and the like.
又例如,对于食品行业的菜式,生产对象可以制作该菜式的商家等。Further, for example, for a dish type in the food industry, a production target can produce a restaurant of the dish type or the like.
在本申请实施例中,可以预先采集厂商信息,构建结构化的厂商数据库,这个厂商数据库除了包含生产对象的经营内容(包括可生产的产品)之外,还可以包括厂商的营销数据,具体到每个产品的粒度,也可以包含用户行为数据,如点击、评论、下单、购买等等。In the embodiment of the present application, the manufacturer information may be collected in advance, and a structured vendor database is built. The manufacturer database may include the marketing content of the production object (including the product that can be produced), and may also include the marketing data of the manufacturer. The granularity of each product can also include user behavior data such as clicks, comments, orders, purchases, and more.
需要说明的是,这个生产对象,可以是线上的厂商,也可以是线下的厂商,本申请实施例对此不加以限制。It should be noted that the object of the production may be an online manufacturer or an offline manufacturer, and the embodiment of the present application does not limit this.
若检测到厂商数据库中某个生产对象可以生成该产品对象时,将该生产对象设置为相对于该产品对象的关联对象。If it is detected that a production object in the vendor database can generate the product object, the production object is set as an associated object relative to the product object.
步骤103,识别所述产品对象所属的行业;Step 103: Identify an industry to which the product object belongs;
在具体实现中,由于在网点数据库中记录了网站的行业,而很多网站中网页的内容大多与网站的行业吻合,因此,对于这些网站,可以将网站的行业识别为产品对象所属的行业。In the specific implementation, since the website industry is recorded in the network database, and the content of the website in many websites is mostly consistent with the industry of the website, for these websites, the industry of the website can be identified as the industry to which the product object belongs.
例如,菜谱网中基本介绍菜式,表征菜式的产品对象,可以直接将其行业划分为菜谱网的食品行业。For example, in the recipe network, the basic introduction of the dishes and the representation of the product objects of the dishes can directly divide the industry into the food industry of the recipe network.
但是,某些综合性的网站,如门户网站、百科类网站,会涵盖很多行业,因此,对于这些网站,可以通过文本分类器识别产品对象所属的行业。However, some comprehensive websites, such as portal websites and encyclopedia websites, cover many industries. Therefore, for these websites, the text classifier can be used to identify the industry to which the product objects belong.
将产品对象输入文本分类器之前,一般对产品对象进行预处理,例如,去除数字、连字符、标点符号、特殊符号、将大写字母转换为小写字母、去停词、过滤对分类无价值的词,等等。Preprocessing the product object before entering the product object into the text classifier, for example, removing numbers, hyphens, punctuation, special symbols, converting uppercase letters to lowercase letters, stopping words, filtering words that are worthless to the classification ,and many more.
文本分类器,可以基于朴素贝叶斯、KNN(k-Nearest Neighbor algorithm,K最邻近结点算法)等算法实现。The text classifier can be implemented based on algorithms such as naive Bayes, KNN (k-Nearest Neighbor algorithm).
以KNN为例,如果一个样本(如产品对象)在特征空间中的k个最相 似(即特征空间中最邻近)的样本中的大多数属于某一个类别,则该样本也属于这个类别。Take KNN as an example, if a sample (such as a product object) is the k most in the feature space Most of the samples (ie, the nearest neighbors in the feature space) belong to a certain category, and the sample also belongs to this category.
在KNN中,所选择的邻居都是已经正确分类的对象,该方法在定类决策上只依据最邻近的一个或者几个样本的类别来决定待分样本所属的类别。In KNN, the selected neighbors are all objects that have been correctly classified. The method determines the category to which the samples are to be classified according to the category of the nearest neighbor or samples.
步骤104,根据所述行业建立所述产品对象与所述关联对象之间的行业关系;Step 104: Establish an industry relationship between the product object and the associated object according to the industry;
对于同一个行业的实体集合(即产品对象、关联对象组成的集合),可以构建实体间(即产品对象与关联对象之间)的关系。For a collection of entities in the same industry (that is, a collection of product objects and associated objects), you can construct relationships between entities (that is, between product objects and associated objects).
需要说明的是,在每个行业中,产品对象与关联对象之间的行业关系都有所不同。It should be noted that in each industry, the industry relationship between product objects and associated objects is different.
例如,对于食品行业的蘑芋烧鸭肉,其材料包括魔芋、鸭子等,能做出该菜式的商家为A店铺,因此,建立的行业关系为,蘑芋烧鸭肉【材料】魔芋,蘑芋烧鸭肉【材料】鸭子,蘑芋烧鸭肉【制作】A店铺等等。For example, for the mushroom industry in the food industry, the materials include konjac, duck, etc., and the merchant that can make the dish is the A shop. Therefore, the established industry relationship is that the mushroom simmered duck meat [material] konjac, Mushroom simmered duck meat [material] duck, mushroom simmered duck meat [production] A shop and so on.
在本申请实施例中,行业关系大多可以包括产品组成关系和/或产品生产关系。In the embodiments of the present application, most of the industry relationships may include product composition relationships and/or product production relationships.
其中,产品组成关系可以为产品与用于生产该产品的其他物体之间的关系,其他物体其本身可以为产品,也可以为原材料,本申请实施例对此不加以限制。The product composition relationship may be a relationship between the product and other objects used for the production of the product. Other objects may be products or raw materials, which is not limited in the embodiment of the present application.
例如,蘑芋烧鸭肉与魔芋、鸭子等材料建立的行业关系为产品组成关系。For example, the industry relationship established between mushrooms and duck meat and konjac, ducks and other materials is a product composition relationship.
又例如,手机与电路板、摄像头、传感器等零部件建立的行业关系为产品组成关系。For example, the industry relationship established between mobile phones and circuit boards, cameras, sensors and other components is a product relationship.
产品生产关系以为产品与生产该产品的厂商之间的关系。Product production relationships are thought to be the relationship between the product and the manufacturer that produced the product.
例如,蘑芋烧鸭肉与A店铺建立的行业关系为产品生产关系。For example, the industry relationship established between the mushroom and the A shop is the product production relationship.
当然,上述行业关系只是作为示例,在实施本申请实施例时,可以根据实际情况设置其他行业关系,例如,产品运输关系(产品与运输该产品的厂商之间的关系)、产品存储关系(产品与存储该产品的厂商之间的关系) 等等,本申请实施例对此不加以限制。另外,除了上述行业关系外,本领域技术人员还可以根据实际需要采用其它行业关系,本发明实施例对此也不加以限制。Of course, the above-mentioned industry relationship is only an example. When implementing the embodiments of the present application, other industry relationships may be set according to actual conditions, for example, product transportation relationship (the relationship between the product and the manufacturer who transports the product), product storage relationship (product Relationship with the vendor that stores the product) Etc., the embodiment of the present application does not limit this. In addition, in addition to the above-mentioned industry relations, those skilled in the art may also adopt other industry relationships according to actual needs, and the embodiments of the present invention do not limit this.
步骤105,将所述产品对象、所述关联对象作为行业对象,与所述行业关系存储至所述行业的产品链对象数据库中。Step 105: Store the product object and the associated object as an industry object, and store the relationship with the industry in a product chain object database of the industry.
在本申请实施例中,每个行业至少具有一个产品链对象数据库,又称知识图谱(Knowledge Graph),本质上是一种语义网络,其节点一般代表实体(entity)或者概念(concept),边一般代表实体/概念之间的各种语义关系。In the embodiment of the present application, each industry has at least one product chain object database, also known as a knowledge graph, which is essentially a semantic network, and its nodes generally represent an entity or a concept. Generally represents various semantic relationships between entities/concepts.
在本申请实施例中,产品链对象数据库的节点代表行业对象,即这个行业中的数据对象,边代表行业关系,即某个行业的产品链对象数据库中记录该行业中行业对象与行业对象之间的行业关系。In the embodiment of the present application, the node of the product chain object database represents an industry object, that is, a data object in the industry, and the edge represents an industry relationship, that is, an industry object and an industry object are recorded in a product chain object database of an industry. Industry relations.
其中,行业对象可以区分为产品对象、关联对象,当然产品对象和关联对象是相对而言的,某个行业对象既可以是相对于某些行业对象的产品对象,也可以是相对于某些行业对象的关联对象。Among them, industry objects can be divided into product objects and associated objects. Of course, product objects and associated objects are relatively speaking. An industry object can be a product object relative to certain industry objects, or it can be relative to certain industries. The associated object of the object.
例如,屏幕是相对于手机的关联对象,也是相对于显示屏、触摸屏的产品对象,等等。For example, the screen is an associated object with respect to the mobile phone, and is also a product object relative to the display screen, the touch screen, and the like.
若识别出产品对象、关联对象及其行业关系,则可以提取产品对象所属的行业的产品链对象数据库,存储产品对象、关联对象及其行业关系。If the product object, the associated object, and the industry relationship are identified, the product chain object database of the industry to which the product object belongs can be extracted, and the product object, the associated object, and the industry relationship thereof are stored.
由于行业中对各个行业对象的命名并非完全统一,可能存在差异,因此,在存储之前,可以对产品对象和关联对象进行归一化处理,获得标准的命名。Since the naming of various industry objects in the industry is not completely uniform, there may be differences. Therefore, before storage, product objects and associated objects can be normalized to obtain standard naming.
在具体实现中,厂商数据库中还可以存储各个行业中行业对象的标准名称及每个标准名称对应的可能出现的非标准名称。In a specific implementation, the vendor database may also store the standard names of the industry objects in each industry and the non-standard names that may appear corresponding to each standard name.
根据标准名称与非标准名称之间的对应关系,若产品对象和关联对象的命名为非标准名称,则可以转换为标准化名称。According to the correspondence between the standard name and the non-standard name, if the product object and the associated object are named as non-standard names, they can be converted to standardized names.
例如,将鸭子归一化为鸭、将魔芋归一化为芋头等等。For example, the duck is normalized into a duck, the konjac is turned into a hoe, and so on.
在本申请的一个实施例中,步骤105可以包括如下子步骤:
In an embodiment of the present application,
子步骤S31,在所述行业的产品链对象数据库中记录的行业对象中查找所述产品对象。Sub-step S31, searching for the product object in the industry object recorded in the product chain object database of the industry.
在本申请实施例中,可以在产品链对象数据库记录的行业对象中查找该产品对象,以确认产品链对象数据库中是否已记录该产品对象。In the embodiment of the present application, the product object may be searched in an industry object recorded in the product chain object database to confirm whether the product object has been recorded in the product chain object database.
需要说明的是,产品对象是行业对象的独立属性,当产品对象与行业对象的名称一样时,并不意味着该行业对象是产品对象。It should be noted that the product object is an independent attribute of the industry object. When the product object has the same name as the industry object, it does not mean that the industry object is a product object.
例如,当前获取的产品对象为屏幕,关联对象为显示屏和触摸屏,提取屏幕所属电子行业的产品链对象数据库,在这个产品链对象数据库中,已记录手机作为产品对象,屏幕是相对于手机的关联对象,即便已记录屏幕,但是,屏幕并非产品对象,因此,确认未查找到作为产品对象的屏幕。For example, the currently acquired product object is a screen, the associated object is a display screen and a touch screen, and the product chain object database of the electronic industry to which the screen belongs is extracted. In the product chain object database, the mobile phone is recorded as a product object, and the screen is relative to the mobile phone. Associating an object, even if the screen has been recorded, the screen is not a product object, so it is confirmed that the screen as a product object is not found.
子步骤S32,当未查找到所述产品对象时,在所述行业的产品链对象数据库中记录所述产品对象。Sub-step S32, when the product object is not found, the product object is recorded in a product chain object database of the industry.
在一种情况中,某个行业对象与产品对象的名称一样,但是,作为关联对象的属性而记录。In one case, an industry object has the same name as the product object, but is recorded as an attribute of the associated object.
在这种情况中,可以直接以该行业对象设为产品对象。In this case, the industry object can be directly set as the product object.
在另一种情况中,并不存在与产品对象的名称一样的行业对象。In another case, there is no industry object with the same name as the product object.
在这种情况中,可以以产品对象的名称新增一个行业对象,设为产品对象。In this case, you can add an industry object to the name of the product object and set it as the product object.
子步骤S33,在所述行业的产品链对象数据库中记录的行业对象中查找所述关联对象。Sub-step S33, searching for the associated object in the industry object recorded in the product chain object database of the industry.
如果未查找到该产品对象,即可以进一步在产品链对象数据库记录的行业对象中查找关联对象。If the product object is not found, the associated object can be further looked up in the industry object recorded in the product chain object database.
需要说明的是,关联对象是相对于产品对象而言的,并非是自身的独立属性,因此,无论行业对象的属性是产品对象还是关联对象,都可以成为当前产品对象的关联对象,即当关联对象与行业对象的名称一样时,可以认为该行业对象是产品对象。It should be noted that the associated object is relative to the product object, and is not an independent attribute of itself. Therefore, regardless of whether the attribute of the industrial object is a product object or an associated object, it can become an associated object of the current product object, that is, when the association is associated. When an object has the same name as an industry object, the industry object can be considered a product object.
例如,当前获取的产品对象为屏幕,关联对象为显示屏和触摸屏,提 取屏幕所属电子行业的产品链对象数据库,在这个产品链对象数据库中,已记录触摸屏作为产品对象,显示屏是相对于电视的关联对象,因此,确认查找到作为关联对象的显示屏和触摸屏。For example, the currently acquired product object is a screen, and the associated object is a display screen and a touch screen. The product chain object database of the electronic industry of the screen is taken. In the product chain object database, the touch screen is recorded as a product object, and the display screen is an object associated with the television. Therefore, it is confirmed that the display screen and the touch screen as the associated objects are found.
子步骤S34,当查找到所述关联对象时,以所述行业关系连接所述产品对象与所述关联对象。Sub-step S34, when the associated object is found, the product object and the associated object are connected in the industry relationship.
如果查找到关联对象,则可以以行业关系为边连接作为产品对象的节点与作为关联对象的节点。If an associated object is found, the node that is the product object and the node that is the associated object can be connected as an edge in an industry relationship.
子步骤S35,当未查找到所述关联对象时,在所述行业的产品链对象数据库中记录所述关联对象。Sub-step S35, when the associated object is not found, the associated object is recorded in a product chain object database of the industry.
若未查找到关联对象,即不存在与关联对象的名称一样的行业对象。If the associated object is not found, there is no industry object with the same name as the associated object.
在这种情况中,可以以关联对象的名称新增一个行业对象,设为关联对象In this case, you can add an industry object with the name of the associated object, and set it as the associated object.
子步骤S36,以所述行业关系连接所述产品对象与所述关联对象。Sub-step S36, connecting the product object and the associated object in the industry relationship.
子步骤S37,当查找到所述产品对象时,忽略所述产品对象、所述关联对象与所述行业关系。Sub-step S37, when the product object is found, the product object, the associated object, and the industry relationship are ignored.
如果查找到该产品对象,即表示在先已记录了产品对象、关联对象及其行业关系,忽略当前的产品对象、关联对象及其行业关系。If the product object is found, it means that the product object, the associated object and its industry relationship have been recorded before, and the current product object, associated object and its industry relationship are ignored.
本申请实施例可以获取产品对象及其相关的关联对象,识别产品对象所属的行业,以建立产品对象与关联对象之间的行业关系,将产品对象、关联对象作为行业对象,与行业关系存储至行业的产品链对象数据库中,对该行业的产品链对象数据库进行累积、更新,以逐步完善产品链中的数据,实现了自动化的行业的产品链对象数据库的建立,避免通过工人、专家等人工进行积累,大大减少了时间的耗费,并且,网络上的数据量十分巨大,通过群体的知识弥补工人、专家等个人的知识不全的缺点,减少使得产品链的信息残缺的现象,提高了效率。The embodiment of the present application can obtain a product object and related related objects, identify an industry to which the product object belongs, establish an industry relationship between the product object and the associated object, store the product object and the associated object as an industry object, and store the relationship with the industry to In the industry product chain object database, the product chain object database of the industry is accumulated and updated to gradually improve the data in the product chain, and the establishment of an automated industry product chain object database is realized, avoiding labor through workers, experts, etc. Accumulation, greatly reducing the cost of time, and the amount of data on the network is very large, through the knowledge of the group to compensate for the insufficiency of knowledge of workers, experts and other individuals, reducing the phenomenon of information gap in the product chain, improve efficiency.
为使本领域技术人员更好地理解本申请实施例,以下通过具体的示例来说明本申请实施例中行业的产品链对象数据库的建立方法。 In order to enable a person skilled in the art to better understand the embodiments of the present application, a method for establishing a product chain object database of an industry in the embodiment of the present application is described below by way of specific examples.
若当前在手机网站中提取了产品对象屏幕及其关联对象显示屏、触摸屏和丁工厂,识别了屏幕的行业为电子行业,为屏幕与显示屏之间建立的行业关系为零部件、为屏幕与触摸屏之间建立的行业关系为零部件,为屏幕与丁工厂之间建立的行业关系为制作。If the product object screen and its associated object display screen, touch screen and Ding factory are currently extracted from the mobile phone website, the industry that recognizes the screen is the electronic industry, and the industry relationship established between the screen and the display screen is the component, the screen and The industry relationship established between the touch screens is the component, which is produced for the industry relationship established between the screen and the Ding factory.
提取电子行业的产品链对象数据库,如图3A所示,在该电子行业的产品链对象数据库中,已记录的行业对象为电视、显示器、手机、甲工厂、乙工厂、丙工厂、屏幕、摄像头、电路板等等。Extract the product chain object database of the electronics industry, as shown in Figure 3A. In the product chain object database of the electronics industry, the recorded industry objects are TV, display, mobile phone, factory A, factory B, factory C, screen, camera. , circuit boards, and more.
电视与手机为产品对象,显示器、甲工厂、乙工厂、丙工厂、屏幕、摄像头、电路板等为关联对象。TVs and mobile phones are the product objects, and displays, A factory, B factory, C factory, screen, camera, circuit board, etc. are related objects.
如图3B所示,在该电子行业的产品链对象数据库中,并未记录作为产品对象的屏幕,但是,已记录作为关联对象的屏幕,则可以设该屏幕为产品对象。As shown in FIG. 3B, in the product chain object database of the electronic industry, the screen as the product object is not recorded, but if the screen as the associated object has been recorded, the screen can be set as the product object.
在该电子行业的产品链对象数据库中,已记录显示屏,则如图3C诉讼时,可以设显示屏为关联对象,以零部件为边连接屏幕与显示屏,此外,未记录触摸屏和丁工厂,则可以新增触摸屏和丁工厂并设为关联对象,以零部件为边连接屏幕与触摸屏,以制作为边连接屏幕与丁工厂。In the electronic product chain object database, the display screen has been recorded, as shown in Figure 3C, the display can be set as the associated object, the parts are connected to the screen and the display screen, in addition, the touch screen and the Ding factory are not recorded. , you can add a touch screen and Ding factory and set as the associated object, with the parts as the side to connect the screen and the touch screen, to make the side connection screen and Ding factory.
参照图4,示出了本申请的一种产品链对象数据库的查询方法实施例的步骤流程图,具体可以包括如下步骤:Referring to FIG. 4, a flow chart of steps of an embodiment of a method for querying a product chain object database of the present application is shown, which may specifically include the following steps:
步骤401,接收客户端发送的查询请求。Step 401: Receive a query request sent by a client.
在本申请实施例中,用户可以通过客户端,如浏览器或独立的应用,向服务器发送查询请求。In the embodiment of the present application, the user may send a query request to the server through a client, such as a browser or a separate application.
其中,查询请求中具有查询词。Among them, the query request has a query word.
步骤402,识别所述查询词所属的行业。Step 402: Identify an industry to which the query term belongs.
由于行业中对各个行业对象的命名并非完全统一,可能存在差异,因此,在查询之前,可以对查询词进行归一化处理,获得标准的命名。Since the naming of various industry objects in the industry is not completely uniform, there may be differences. Therefore, before the query, the query words can be normalized to obtain the standard naming.
在具体实现中,在预置的厂商数据库中可以存储各个行业中行业对象的标准名称及每个标准名称对应的可能出现的其它非标准名称。 In a specific implementation, the standard name of the industry object in each industry and other non-standard names corresponding to each standard name may be stored in the preset vendor database.
根据标准名称与非标准名称之间的对应关系,若查询词为非标准名称,则可以转换为标准化名称。According to the correspondence between the standard name and the non-standard name, if the query word is a non-standard name, it can be converted into a standardized name.
例如,将鸭子归一化为鸭、将魔芋归一化为芋头等等。For example, the duck is normalized into a duck, the konjac is turned into a hoe, and so on.
在查询时,可以对查询词进行索引,查找该查询词所属的行业。When querying, you can index the query words to find the industry to which the query word belongs.
例如,若查询词为魔芋烧鸭肉,则其所属的行业为食品行业;若查询词为手机,则其所属的行业为电子行业。For example, if the query term is konjac roast duck, the industry to which it belongs is the food industry; if the query term is a mobile phone, the industry to which it belongs is the electronics industry.
步骤403,在所述行业的产品链对象数据库中查询与所述查询词匹配的行业对象。Step 403: Query an industry object that matches the query term in a product chain object database of the industry.
在本申请实施例中,每个行业至少具有一个产品链对象数据库,又称知识图谱(Knowledge Graph),本质上是一种语义网络,其节点一般代表实体(entity)或者概念(concept),边一般代表实体/概念之间的各种语义关系。In the embodiment of the present application, each industry has at least one product chain object database, also known as a knowledge graph, which is essentially a semantic network, and its nodes generally represent an entity or a concept. Generally represents various semantic relationships between entities/concepts.
在本申请实施例中,产品链对象数据库存储有行业对象和行业关系,产品链对象数据库的节点代表行业对象,即这个行业中的数据对象,边代表行业关系,即某个行业的产品链对象数据库中记录该行业中行业对象与行业对象之间的行业关系。In the embodiment of the present application, the product chain object database stores the industry object and the industry relationship, the node of the product chain object database represents the industry object, that is, the data object in the industry, and the edge represents the industry relationship, that is, the product chain object of an industry. The database records the industry relationships between industry objects and industry objects in the industry.
进一步而言,行业对象包括产品对象和关联对象,行业关系为根据行业建立的所述产品对象与关联对象之间的关系。Further, the industry object includes a product object and an associated object, and the industry relationship is a relationship between the product object and the associated object established according to the industry.
在本申请实施例中,行业关系大多可以包括产品组成关系和/或产品生产关系。In the embodiments of the present application, most of the industry relationships may include product composition relationships and/or product production relationships.
其中,产品组成关系可以为产品与用于生产该产品的其他物体之间的关系,其他物体其本身可以为产品,也可以为原材料,本申请实施例对此不加以限制。The product composition relationship may be a relationship between the product and other objects used for the production of the product. Other objects may be products or raw materials, which is not limited in the embodiment of the present application.
例如,蘑芋烧鸭肉与魔芋、鸭子等材料建立的行业关系为产品组成关系。For example, the industry relationship established between mushrooms and duck meat and konjac, ducks and other materials is a product composition relationship.
又例如,手机与电路板、摄像头、传感器等零部件建立的行业关系为产品组成关系。For example, the industry relationship established between mobile phones and circuit boards, cameras, sensors and other components is a product relationship.
产品生产关系以为产品与生产该产品的厂商之间的关系。 Product production relationships are thought to be the relationship between the product and the manufacturer that produced the product.
例如,蘑芋烧鸭肉与A店铺建立的行业关系为产品生产关系。For example, the industry relationship established between the mushroom and the A shop is the product production relationship.
当然,上述行业关系只是作为示例,在实施本申请实施例时,可以根据实际情况设置其他行业关系,例如,产品运输关系(产品与运输该产品的厂商之间的关系)、产品存储关系(产品与存储该产品的厂商之间的关系)等等,本申请实施例对此不加以限制。另外,除了上述行业关系外,本领域技术人员还可以根据实际需要采用其它行业关系,本发明实施例对此也不加以限制。Of course, the above-mentioned industry relationship is only an example. When implementing the embodiments of the present application, other industry relationships may be set according to actual conditions, for example, product transportation relationship (the relationship between the product and the manufacturer who transports the product), product storage relationship (product The embodiment of the present application does not limit the relationship between the manufacturer and the manufacturer. In addition, in addition to the above-mentioned industry relations, those skilled in the art may also adopt other industry relationships according to actual needs, and the embodiments of the present invention do not limit this.
步骤404,在所述行业的产品链对象数据库中以所述行业对象为基点,逐级查询以行业关系相连的其它行业对象,获得产品链对象。Step 404: In the product chain object database of the industry, use the industry object as a base point to query other industry objects connected by industry relations step by step to obtain a product chain object.
在具体实现中,可以基于与查询词匹配的行业对象,沿边进行遍历,查找相连的其他行业对象,获得产品链对象,即某个产品的产品链中的全部或部分数据对象。In a specific implementation, the industry object matching the query word may be traversed along the edge to find other connected industry objects, and the product chain object, that is, all or part of the data object in the product chain of a certain product.
在本申请的一个实施例中,步骤404可以包括如下子步骤:In one embodiment of the present application,
子步骤S41,将所述行业对象设置为产品对象;Sub-step S41, setting the industry object as a product object;
在一般情况下,用户很多情况下查询的是产品,因此,所输入的查询词可以认为是产品对象。In general, the user queries the product in many cases, so the query word entered can be considered as a product object.
子步骤S42,查找所述行业中预设的目标行业关系;Sub-step S42, searching for a target industry relationship preset in the industry;
子步骤S43,判断所述产品对象连接的行业关系是否与所述目标行业关系匹配;若是,则执行子步骤S44,若否,则执行子步骤S46;Sub-step S43, determining whether the industry relationship of the product object connection matches the target industry relationship; if yes, executing sub-step S44, if not, executing sub-step S46;
在本申请实施例中,可以针对不同行业,从该行业所拥有的行业关系中设置目标行业关系,以控制产品链对象的走向和深度。In the embodiment of the present application, the target industry relationship may be set in the industry relationship owned by the industry for different industries to control the direction and depth of the product chain object.
例如,在电子行业的产品链对象数据库中,为控制产品链对象往零部件的方向延伸,可以设置零部件为目标行业关系,若其他行业对象为某个行业对象的零部件时,其行业关系符合目标行业关系,反之,若该行业对象为其他行业对象的零部件时,其行业关系不符合目标行业关系。For example, in the product chain object database of the electronics industry, in order to control the extension of the product chain object to the component, the component can be set as the target industry relationship, and if other industry objects are parts of an industry object, the industry relationship In line with the target industry relationship, if the industry object is a component of other industry objects, its industry relationship does not meet the target industry relationship.
子步骤S44,提取所述行业关系连接的关联对象;Sub-step S44, extracting an association object of the industry relationship connection;
子步骤S45,将所述关联对象设置为新的产品对象,返回执行子步骤S43; Sub-step S45, the associated object is set as a new product object, return to the execution sub-step S43;
如果识别了关联对象,则可以以该关联对象作为新的产品对象,即作为新的产品,继续进行遍历。If the associated object is identified, the associated object can be traversed as a new product object, ie as a new product.
子步骤S46,以所述行业关系连接查询到的产品对象及关联对象,生成产品链对象。Sub-step S46, connecting the queried product object and the associated object with the industry relationship to generate a product chain object.
若再没有符合目标行业关系时,遍历结束,将产品对象、关联对象以行业关系进行串联,获得产品链对象。If the target industry relationship is not met, the traversal is over, and the product objects and associated objects are connected in series by industry relationship to obtain the product chain object.
步骤405,将所述产品链对象返回所述客户端。Step 405: Return the product chain object to the client.
当获得产品链对象时,可以将产品链对象发送至客户端进行显示。When a product chain object is obtained, the product chain object can be sent to the client for display.
在具体实现中,为了提高信息的获取效率,可以按照一定的规则对产品链对象中信息进行排序。In the specific implementation, in order to improve the information acquisition efficiency, the information in the product chain object may be sorted according to certain rules.
在本申请的一个实施例中,查询请求中具有第一地理位置,即客户端所处的地理位置。In an embodiment of the present application, the query request has a first geographic location, that is, a geographic location where the client is located.
在食品行业中的餐饮等情况下,当行业关系为产品生产关系时,提取行业对象表征的生产对象,即在产品链中生产(包括制作、销售等)产品的数据对象。In the case of catering in the food industry, when the industry relationship is the product production relationship, the production object represented by the industrial object is extracted, that is, the data object of the product (including production, sales, etc.) is produced in the product chain.
查询生产对象的第二地理位置,并按照所述第一地理位置与所述第二地理位置之间的距离值对所述生产对象进行排序,将排序之后的产品链对象返回客户端。Querying a second geographic location of the production object, and sorting the production objects according to the distance value between the first geographic location and the second geographic location, and returning the sorted product chain object to the client.
一般而言,距离值越小,排序越靠前,反之,距离值越大,排序越靠后。In general, the smaller the distance value, the higher the sorting. On the contrary, the larger the distance value, the lower the sorting.
当然,除了按照距离进行排序之外,还可以按照评分、生产质量等因素进行排序,本申请实施例对此不加以限制。Of course, in addition to the sorting according to the distance, the sorting may be performed according to factors such as the score, the production quality, and the like, which is not limited by the embodiment of the present application.
在实际应用中,为了提高信息的获取效率,用户可以设置一定的查询参数查询产品链对象中的信息。In practical applications, in order to improve the efficiency of information acquisition, the user can set certain query parameters to query information in the product chain object.
在本申请的一个实施例中,查询请求中具有生产总成本。In one embodiment of the present application, the total cost of production is included in the query request.
当行业关系为产品生产关系时,提取行业对象表征的生产对象,即在产品链中生产(包括制作、销售等)产品的数据对象。When the industry relationship is a product production relationship, the production object represented by the industrial object is extracted, that is, the data object of the product (including production, sales, etc.) is produced in the product chain.
查询生产对象的生产子成本。 Query the production sub-cost of the production object.
从生产对象中选择生产子成本之和小于或等于生产总成本的目标生产对象,将包括目标生产对象的产品链对象返回客户端。The target production object whose production sub-cost is less than or equal to the total production cost is selected from the production object, and the product chain object including the target production object is returned to the client.
例如,若用户设置生产成本为500元、900元,则可以分别返回产成本小于或等于500元、900元的生产对象。For example, if the user sets the production cost to 500 yuan or 900 yuan, the production objects whose production cost is less than or equal to 500 yuan and 900 yuan can be respectively returned.
在本申请实施例中,行业的产品链对象数据库可以产品链对象数据库的建立方法实施例中的方式生成,其应用基本相似,所以描述的比较简单,相关之处参见产品链对象数据库的建立方法实施例的部分说明即可,本申请实施例在此不加以详述。In the embodiment of the present application, the product chain object database of the industry may be generated in the manner of the method for establishing the product chain object database, and the applications thereof are basically similar, so the description is relatively simple, and the related places are referred to the method for establishing the product chain object database. The description of the embodiments may be omitted, and the embodiments of the present application are not described in detail herein.
本申请实施例接收客户端发送的查询请求,则从其中提取查询词,识别查询词所属的行业,在行业的产品链对象数据库中查询与查询词匹配的行业对象,在行业的产品链对象数据库中以该行业对象为基点,逐级查询以行业关系相连的其它行业对象,获得产品链对象并返回客户端,快速让用户获得全面的产品链的信息,避免花费很长的时间去对某个产品的产品链进行调研,减少调研的时间,提高了效率。When receiving the query request sent by the client, the embodiment of the present application extracts the query word, identifies the industry to which the query word belongs, and searches for the industry object matching the query word in the product chain object database of the industry, and the product chain object database in the industry. Based on the industry object, we query other industry objects connected by industry relations step by step, obtain product chain objects and return to the client, and quickly let users obtain comprehensive product chain information, avoiding spending a long time to Product product chain research, reducing the time of research and improving efficiency.
为使本领域技术人员更好地理解本申请实施例,以下通过具体的示例来说明本申请实施例中行业的产品链对象数据库的查询方法。In order to enable a person skilled in the art to better understand the embodiments of the present application, the following describes a method for querying the product chain object database of the industry in the embodiment of the present application by a specific example.
若用户输入的查询词为手机,识别其所属的行业为电子行业。If the query word entered by the user is a mobile phone, the industry to which it belongs is identified as the electronic industry.
假设在电子行业中,目标行业关系为零部件、制作、销售。Assume that in the electronics industry, the target industry relationship is parts, production, and sales.
提取电子行业的产品链对象数据库,如图3C所示,在该电子行业的产品链对象数据库中,查询与查询词(即手机)匹配的行业对象(即手机)。The product chain object database of the electronic industry is extracted, as shown in FIG. 3C, in the product chain object database of the electronic industry, an industry object (ie, a mobile phone) matching the query word (ie, mobile phone) is queried.
以该行业对象(即手机)为产品对象进行遍历。The industry object (ie mobile phone) is traversed as a product object.
手机与甲工厂、乙工厂之间的行业关系为制作,符合目标行业关系,提取甲工厂、乙工厂。The industrial relationship between the mobile phone and the factory A and the factory B is produced, and the target industry relationship is met, and the plant A and plant B are extracted.
手机与丙店铺之间的行业关系为销售,符合目标行业关系,提取丙店铺。The industry relationship between mobile phones and C stores is sales, in line with the target industry relationship, and the extraction of C stores.
手机与屏幕、摄像头、电路板等之间的行业关系为零部件,符合目标行业关系,提取屏幕、摄像头、电路板等。 The industry relationship between mobile phones and screens, cameras, circuit boards, etc. is components, in line with the target industry relationship, extracting screens, cameras, circuit boards, and so on.
手机不具有其他相连的行业关系,这个节点遍历完毕。The mobile phone does not have other connected industry relationships, and this node is traversed.
由于甲工厂、乙工厂、丙店铺、摄像头、电路板等并不具有其他相连的行业关系,因此,这些节点也遍历完毕。Since the A factory, the B factory, the C shop, the camera, the circuit board, etc. do not have other connected industry relationships, these nodes are also traversed.
以屏幕作为新的产品对象继续进行遍历。Continue traversing with the screen as a new product object.
屏幕与丁工厂之间的行业关系为制作,符合目标行业关系,提取丁工厂。The industry relationship between the screen and the Ding factory is produced, in line with the target industry relationship, and the Ding factory is extracted.
手机与显示屏和触摸屏之间的行业关系为零部件,符合目标行业关系,提取显示屏和触摸屏。The industry relationship between the phone and the display and touch screen is component, in line with the target industry relationship, extracting the display and touch screen.
屏幕不具有其他相连的行业关系,这个节点遍历完毕。The screen does not have other connected industry relationships, and this node is traversed.
以显示屏作为产品对象继续进行遍历。Continue traversing with the display as the product object.
由于显示屏为电视的零部件,不符合目标行业关系,不提取电视。Since the display is a component of the TV, it does not meet the target industry relationship and does not extract the TV.
显示屏不具有其他相连的行业关系,这个节点遍历完毕。The display does not have other connected industry relationships, and this node is traversed.
至此,所有节点遍历完毕。At this point, all nodes are traversed.
以行业关系串联手机与甲工厂、乙工厂、丙店铺、屏幕、摄像头、电路板等,以行业关系串联丁工厂、屏幕与显示屏和触摸屏,获得产品链对象:In the industry relationship, the mobile phone is connected with the factory, the factory B, the C shop, the screen, the camera, the circuit board, etc., and the industrial chain is connected with the Ding factory, the screen and the display screen and the touch screen to obtain the product chain object:
手机Mobile phone
【制作】甲工厂[Production] A factory
乙工厂Factory B
【销售】丙店铺[sales] C shop
【零部件】屏幕[Parts] screen
【制作】丁工厂[Production] Ding Factory
【零部件】显示屏[parts] display
触摸屏touch screen
摄像头camera
电路板Circuit board
…… ......
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the embodiments of the present application are not limited by the described action sequence, because In accordance with embodiments of the present application, certain steps may be performed in other sequences or concurrently. In the following, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required in the embodiments of the present application.
参照图5,示出了本申请的一种产品链对象数据库的建立装置实施例的结构框图,具体可以包括如下模块:Referring to FIG. 5, a structural block diagram of an apparatus for establishing a product chain object database of the present application is shown, which may specifically include the following modules:
产品对象获取模块501,用于从网页信息中获取产品对象;a product
关联对象获取模块502,用于在所述网页信息中获取与所述产品对象相关的关联对象;The association
对象行业识别模块503,用于识别所述产品对象所属的行业;The object
行业关系建立模块504,用于根据所述行业建立所述产品对象与所述关联对象之间的行业关系;An industry
产品链对象数据库存储模块505,用于将所述产品对象、所述关联对象作为行业对象,与所述行业关系存储至所述行业的产品链对象数据库中。The product chain object
在本申请的一个实施例中,所述产品对象获取模块501可以包括如下子模块:In an embodiment of the present application, the product
网址提取子模块,用于提取预设的网址;a URL extraction sub-module for extracting a preset URL;
网页信息抓取子模块,用于抓取所述网址对应的网页信息;a webpage information capture sub-module, configured to capture webpage information corresponding to the webpage;
网站识别子模块,用于识别所述网页信息所属的网站;a website identification sub-module, configured to identify a website to which the webpage information belongs;
产品对象提取子模块,用于按照所述网站在所述网页信息中的第一位置提取产品对象。a product object extraction submodule, configured to extract a product object according to the first location of the website in the webpage information.
在本申请的一个实施例中,所述关联对象获取模块502可以包括如下子模块:In an embodiment of the present application, the associated
关联对象提取子模块,用于按照所述网站在所述网页信息中的第二位置提取与所述产品对象关联的关联对象。 And an associated object extraction submodule, configured to extract an association object associated with the product object according to the second location of the website in the webpage information.
在本申请的另一个实施例中,所述关联对象获取模块502可以包括如下子模块:In another embodiment of the present application, the associated
生产对象提取子模块,用于提取预设的生产对象;a production object extraction submodule for extracting a preset production object;
关联对象设置子模块,用于在所述生产对象生产所述产品对象时,将所述生产对象设置为关联对象。The associated object setting submodule is configured to set the production object as an associated object when the production object produces the product object.
在具体实现中,所述行业关系包括产品组成关系和/或产品生产关系。In a specific implementation, the industry relationship includes a product composition relationship and/or a product production relationship.
在本申请的一个实施例中,所述行业的产品链对象数据库中记录所述行业中行业对象与行业对象之间的行业关系;In an embodiment of the present application, an industry relationship between an industry object and an industry object in the industry is recorded in a product chain object database of the industry;
所述产品链对象数据库存储模块505可以包括如下子模块:The product chain object
产品对象查找子模块,用于在所述行业的产品链对象数据库中记录的行业对象中查找所述产品对象;a product object finding submodule, configured to search for the product object in an industry object recorded in a product chain object database of the industry;
产品对象记录子模块,用于在未查找到所述产品对象时,在所述行业的产品链对象数据库中记录所述产品对象;a product object record submodule, configured to record the product object in a product chain object database of the industry when the product object is not found;
关联对象查找子模块,用于在所述行业的产品链对象数据库中记录的行业对象中查找所述关联对象;An associated object search submodule, configured to search for the associated object in an industry object recorded in a product chain object database of the industry;
第一连接子模块,用于在查找到所述关联对象时,以所述行业关系连接所述产品对象与所述关联对象;a first connection submodule, configured to connect the product object and the associated object in the industry relationship when the associated object is found;
关联对象记录子模块,用于在未查找到所述关联对象时,在所述行业的产品链对象数据库中记录所述关联对象;An associated object record submodule, configured to record the associated object in a product chain object database of the industry when the associated object is not found;
第二连接子模块,用于以所述行业关系连接所述产品对象与所述关联对象。And a second connection submodule, configured to connect the product object and the associated object in the industry relationship.
在本申请的另一个实施例中,所述产品链对象数据库存储模块505还可以包括如下子模块:In another embodiment of the present application, the product chain object
忽略子模块,用于在查找到所述产品对象时,忽略所述产品对象、所述关联对象与所述行业关系。The sub-module is ignored for ignoring the product object, the associated object, and the industry relationship when the product object is found.
在本申请的另一个实施例中,所述产品链对象数据库存储模块505还可以包括如下子模块:In another embodiment of the present application, the product chain object
对象归一子模块,用于对所述产品对象和所述关联对象进行归一化处 理。An object is sub-module for normalizing the product object and the associated object Reason.
参照图6,示出了本申请的一种产品链对象数据库的查询装置实施例的结构框图,所述产品链对象数据库存储有行业对象和行业关系,所述行业对象包括产品对象和关联对象,所述行业关系为根据行业建立的所述产品对象与所述关联对象之间的关系;具体可以包括如下模块:Referring to FIG. 6, a structural block diagram of an embodiment of a query device for a product chain object database of the present application is shown. The product chain object database stores an industry object and an industry relationship, and the industry object includes a product object and an associated object. The industry relationship is a relationship between the product object and the associated object established according to the industry; specifically, the following modules may be included:
查询请求接收模块601,用于接收客户端发送的查询请求,所述查询请求中具有查询词;The query
查询词行业识别模块602,用于识别所述查询词所属的行业;The query word
行业对象匹配模块603,用于在所述行业的产品链对象数据库中查询与所述查询词匹配的行业对象;An industry
产品链对象数据库遍历模块604,用于在所述行业的产品链对象数据库中以所述行业对象为基点,逐级查询以行业关系相连的其它行业对象,获得产品链对象;a product chain
产品链对象返回模块605,用于将所述产品链对象返回所述客户端。The product chain
在具体实现中,所述行业关系包括产品组成关系和/或产品生产关系。In a specific implementation, the industry relationship includes a product composition relationship and/or a product production relationship.
在本申请的一个实施例中,所述产品链对象数据库遍历模块604可以包括如下子模块:In one embodiment of the present application, the product chain object
第一产品对象设置子模块,用于将所述行业对象设置为产品对象;a first product object setting submodule, configured to set the industry object as a product object;
目标行业关系查找子模块,用于查找所述行业中预设的目标行业关系;A target industry relationship lookup sub-module for finding a target industry relationship preset in the industry;
目标行业关系匹配子模块,用于判断所述产品对象连接的行业关系是否与所述目标行业关系匹配;若是,则关联对象提取子模块,若否,则执行对象连接子模块;a target industry relationship matching submodule, configured to determine whether an industry relationship of the product object connection matches the target industry relationship; if yes, the associated object extracts the submodule, and if not, executes the object connection submodule;
关联对象提取子模块,用于提取所述行业关系连接的关联对象;An association object extraction submodule, configured to extract an association object of the industry relationship connection;
第二产品对象设置子模块,用于将所述关联对象设置为新的产品对象,返回调用目标行业关系匹配子模块;a second product object setting submodule, configured to set the associated object as a new product object, and return a calling target industry relationship matching submodule;
对象连接子模块,用于以所述行业关系连接查询到的产品对象及关联 对象,生成产品链对象。An object connection submodule for connecting the queried product objects and associations in the industry relationship Object, generate product chain object.
在本申请的一个实施例中,所述查询请求中具有第一地理位置;In an embodiment of the present application, the query request has a first geographic location;
所述产品链对象返回模块605可以包括如下子模块:The product chain
第一生产对象提取子模块,用于在所述行业关系为产品生产关系时,提取所述行业对象表征的生产对象;a first production object extraction submodule, configured to extract a production object represented by the industry object when the industry relationship is a product production relationship;
地里位置查询子模块,用于查询所述生产对象的第二地理位置;a location location query sub-module, configured to query a second geographic location of the production object;
距离值排序子模块,用于按照所述第一地理位置与所述第二地理位置之间的距离值对所述生产对象进行排序;a distance sorting submodule, configured to sort the production objects according to a distance value between the first geographic location and the second geographic location;
排序返回子模块,用于将排序之后的产品链对象返回所述客户端。The sort returns a submodule for returning the sorted product chain object to the client.
在本申请的一个实施例中,所述查询请求中具有生产总成本;In an embodiment of the present application, the query request has a total cost of production;
所述产品链对象返回模块605可以包括如下子模块:The product chain
第二生产对象提取子模块,用于在所述行业关系为产品生产关系时,提取所述行业对象表征的生产对象;a second production object extraction submodule, configured to extract a production object represented by the industry object when the industry relationship is a product production relationship;
生产子成本查询子模块,用于查询所述生产对象的生产子成本;a production sub-cost query sub-module, configured to query a production sub-cost of the production object;
目标生产对象选择子模块,用于从所述生产对象中选择所述生产子成本之和小于或等于所述生产总成本的目标生产对象;a target production object selection submodule, configured to select, from the production objects, a target production object that has a sum of the production sub-costs less than or equal to the total production cost;
目标生产对象返回子模块,用于将包括所述目标生产对象的产品链对象返回所述客户端。The target production object returns a submodule for returning a product chain object including the target production object to the client.
在本申请的一个实施例中,该装置还可以包括如下模块:In an embodiment of the present application, the apparatus may further include the following modules:
查询词归一模块,用于对所述查询词进行归一化处理。The query word normalization module is used for normalizing the query words.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
本发明实施例还提供了一种产品链对象数据库的建立系统,该产品链对象数据库的建立系统可以包括:The embodiment of the present invention further provides a system for establishing a product chain object database, and the system for establishing a product chain object database may include:
一个或多个处理器;One or more processors;
存储器;和 Memory; and
一个或多个模块,该一个或多个模块存储于存储器中并被配置成由一个或多个处理器执行,其中,该一个或多个模块具有如下功能:One or more modules, the one or more modules being stored in the memory and configured to be executed by one or more processors, wherein the one or more modules have the following functions:
从网页信息中获取产品对象;Obtain product objects from web page information;
从网页信息中获取与所述产品对象相关的关联对象;Obtaining an associated object related to the product object from the webpage information;
识别所述产品对象所属的行业;Identifying the industry to which the product object belongs;
根据所述行业建立所述产品对象与所述关联对象之间的行业关系;Establishing an industry relationship between the product object and the associated object according to the industry;
将所述产品对象、所述关联对象作为行业对象,与所述行业关系存储至所述行业的产品链对象数据库中。The product object and the associated object are used as industry objects, and the relationship with the industry is stored in a product chain object database of the industry.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
提取预设的网址;Extract the default URL;
抓取所述网址对应的网页信息;Grab the webpage information corresponding to the webpage;
识别所述网页信息所属的网站;Identifying a website to which the webpage information belongs;
按照所述网站在所述网页信息中的第一位置提取产品对象。The product object is extracted according to the first location of the website in the webpage information.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
按照所述网站在所述网页信息中的第二位置提取与所述产品对象关联的关联对象。The associated object associated with the product object is extracted in accordance with the second location of the website in the web page information.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
提取预设的生产对象;Extracting preset production objects;
当所述生产对象生产所述产品对象时,将所述生产对象设置为关联对象。When the production object produces the product object, the production object is set as an associated object.
可选地,所述行业关系包括产品组成关系和/或产品生产关系。Optionally, the industry relationship includes a product composition relationship and/or a product production relationship.
可选地,所述行业的产品链对象数据库中记录所述行业中行业对象与行业对象之间的行业关系;Optionally, an industry relationship between an industry object and an industry object in the industry is recorded in a product chain object database of the industry;
该一个或多个模块可以具有如下功能:The one or more modules can have the following functions:
在所述行业的产品链对象数据库中记录的行业对象中查找所述产品对象;Finding the product object in an industry object recorded in a product chain object database of the industry;
当未查找到所述产品对象时,在所述行业的产品链对象数据库中记录所述产品对象; Recording the product object in a product chain object database of the industry when the product object is not found;
在所述行业的产品链对象数据库中记录的行业对象中查找所述关联对象;Finding the associated object in an industry object recorded in a product chain object database of the industry;
当查找到所述关联对象时,以所述行业关系连接所述产品对象与所述关联对象;When the associated object is found, the product object and the associated object are connected in the industry relationship;
当未查找到所述关联对象时,在所述行业的产品链对象数据库中记录所述关联对象;When the associated object is not found, the associated object is recorded in a product chain object database of the industry;
以所述行业关系连接所述产品对象与所述关联对象。The product object and the associated object are connected in the industry relationship.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
当查找到所述产品对象时,忽略所述产品对象、所述关联对象与所述行业关系。When the product object is found, the product object, the associated object, and the industry relationship are ignored.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
对所述产品对象和所述关联对象进行归一化处理。The product object and the associated object are normalized.
本发明实施例还提供了一种产品链对象数据库的查询系统,所述产品链对象数据库存储有行业对象和行业关系,所述行业对象包括产品对象和关联对象,所述行业关系为根据行业建立的所述产品对象与所述关联对象之间的关系;该产品链对象数据库的建立系统可以包括:An embodiment of the present invention further provides a query system for a product chain object database, where the product chain object database stores an industry object and an industry relationship, where the industry object includes a product object and an associated object, and the industry relationship is established according to an industry. The relationship between the product object and the associated object; the system for establishing the product chain object database may include:
一个或多个处理器;One or more processors;
存储器;和Memory; and
一个或多个模块,该一个或多个模块存储于存储器中并被配置成由一个或多个处理器执行,其中,该一个或多个模块具有如下功能:One or more modules, the one or more modules being stored in the memory and configured to be executed by one or more processors, wherein the one or more modules have the following functions:
接收客户端发送的查询请求,所述查询请求中具有查询词;Receiving a query request sent by the client, where the query request has a query word;
识别所述查询词所属的行业;Identifying the industry to which the query term belongs;
在所述行业的产品链对象数据库中查询与所述查询词匹配的行业对象;Querying an industry object matching the query term in a product chain object database of the industry;
在所述行业的产品链对象数据库中以所述行业对象为基点,逐级查询以行业关系相连的其它行业对象,获得产品链对象;In the product chain object database of the industry, based on the industry object, querying other industry objects connected by industry relations step by step to obtain a product chain object;
将所述产品链对象返回所述客户端。 Returning the product chain object to the client.
可选地,所述行业关系包括产品组成关系和/或产品生产关系。Optionally, the industry relationship includes a product composition relationship and/or a product production relationship.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
将所述行业对象设置为产品对象;Setting the industry object as a product object;
查找所述行业中预设的目标行业关系;Find the target industry relationships preset in the industry;
判断所述产品对象连接的行业关系是否与所述目标行业关系匹配;Determining whether the industry relationship of the product object connection matches the target industry relationship;
若是,则提取所述行业关系连接的关联对象;If yes, extract the associated object of the industry relationship connection;
将所述关联对象设置为新的产品对象,返回执行所述判断所述产品对象与关联对象连接的行业关系是否与所述目标行业关系匹配的步骤;Setting the associated object as a new product object, and returning to perform the step of determining whether the industry relationship of the product object and the associated object is matched with the target industry relationship;
若否,则以所述行业关系连接查询到的产品对象及关联对象,生成产品链对象。If not, the product object and the associated object that are queried are connected by the industry relationship to generate a product chain object.
可选地,所述查询请求中具有第一地理位置;该一个或多个模块可以具有如下功能:Optionally, the query request has a first geographic location; the one or more modules may have the following functions:
当所述行业关系为产品生产关系时,提取所述行业对象表征的生产对象;Extracting the production object represented by the industrial object when the industry relationship is a product production relationship;
查询所述生产对象的第二地理位置;Querying a second geographic location of the production object;
按照所述第一地理位置与所述第二地理位置之间的距离值对所述生产对象进行排序;Sorting the production objects according to a distance value between the first geographic location and the second geographic location;
将排序之后的产品链对象返回所述客户端。The sorted product chain object is returned to the client.
可选地,所述查询请求中具有生产总成本;该一个或多个模块可以具有如下功能:Optionally, the query request has a total production cost; the one or more modules may have the following functions:
当所述行业关系为产品生产关系时,提取所述行业对象表征的生产对象;Extracting the production object represented by the industrial object when the industry relationship is a product production relationship;
查询所述生产对象的生产子成本;Querying the production sub-cost of the production object;
从所述生产对象中选择所述生产子成本之和小于或等于所述生产总成本的目标生产对象;Selecting, from the production objects, a target production object whose sum of production sub-costs is less than or equal to the total production cost;
将包括所述目标生产对象的产品链对象返回所述客户端。A product chain object including the target production object is returned to the client.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
对所述查询词进行归一化处理。 The query words are normalized.
图7是本申请实施例提供的一种服务器结构示意图。该服务器700可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)722(例如,一个或一个以上处理器)和存储器732,一个或一个以上存储应用程序742或数据744的存储介质730(例如一个或一个以上海量存储设备)。其中,存储器732和存储介质730可以是短暂存储的或持久存储的。存储在存储介质730的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器722可以设置为与存储介质730通信,在服务器700上执行存储介质730中的一系列指令操作。FIG. 7 is a schematic structural diagram of a server provided by an embodiment of the present application. The
服务器700还可以包括一个或一个以上电源726,一个或一个以上有线或无线网络接口750,一个或一个以上输入输出接口758,一个或一个以上键盘756,和/或,一个或一个以上操作系统741,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。
一方面,中央处理器722可以在服务器700上执行以下操作的指令:In one aspect,
从网页信息中获取产品对象;Obtain product objects from web page information;
在所述网页信息中获取与所述产品对象相关的关联对象;Obtaining an association object related to the product object in the webpage information;
识别所述产品对象所属的行业;Identifying the industry to which the product object belongs;
根据所述行业建立所述产品对象与所述关联对象之间的行业关系;Establishing an industry relationship between the product object and the associated object according to the industry;
将所述产品对象、所述关联对象作为行业对象,与所述行业关系存储至所述行业的产品链对象数据库中。The product object and the associated object are used as industry objects, and the relationship with the industry is stored in a product chain object database of the industry.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
提取预设的网址;Extract the default URL;
抓取所述网址对应的网页信息;Grab the webpage information corresponding to the webpage;
识别所述网页信息所属的网站;Identifying a website to which the webpage information belongs;
按照所述网站在所述网页信息中的第一位置提取产品对象。 The product object is extracted according to the first location of the website in the webpage information.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
按照所述网站在所述网页信息中的第二位置提取与所述产品对象关联的关联对象。The associated object associated with the product object is extracted in accordance with the second location of the website in the web page information.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
提取预设的生产对象;Extracting preset production objects;
当所述生产对象生产所述产品对象时,将所述生产对象设置为关联对象。When the production object produces the product object, the production object is set as an associated object.
可选地,所述行业关系包括产品组成关系和/或产品生产关系。Optionally, the industry relationship includes a product composition relationship and/or a product production relationship.
可选地,所述行业的产品链对象数据库中记录所述行业中行业对象与行业对象之间的行业关系;Optionally, an industry relationship between an industry object and an industry object in the industry is recorded in a product chain object database of the industry;
该一个或多个模块可以具有如下功能:The one or more modules can have the following functions:
在所述行业的产品链对象数据库中记录的行业对象中查找所述产品对象;Finding the product object in an industry object recorded in a product chain object database of the industry;
当未查找到所述产品对象时,在所述行业的产品链对象数据库中记录所述产品对象;Recording the product object in a product chain object database of the industry when the product object is not found;
在所述行业的产品链对象数据库中记录的行业对象中查找所述关联对象;Finding the associated object in an industry object recorded in a product chain object database of the industry;
当查找到所述关联对象时,以所述行业关系连接所述产品对象与所述关联对象;When the associated object is found, the product object and the associated object are connected in the industry relationship;
当未查找到所述关联对象时,在所述行业的产品链对象数据库中记录所述关联对象;When the associated object is not found, the associated object is recorded in a product chain object database of the industry;
以所述行业关系连接所述产品对象与所述关联对象。The product object and the associated object are connected in the industry relationship.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
当查找到所述产品对象时,忽略所述产品对象、所述关联对象与所述行业关系。When the product object is found, the product object, the associated object, and the industry relationship are ignored.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
对所述产品对象和所述关联对象进行归一化处理。 The product object and the associated object are normalized.
另一方面,所述产品链对象数据库存储有行业对象和行业关系,所述行业对象包括产品对象和关联对象,所述行业关系为根据行业建立的所述产品对象与所述关联对象之间的关系;中央处理器722可以在服务器700上执行以下操作的指令:In another aspect, the product chain object database stores an industry object and an industry relationship, the industry object including a product object and an associated object, the industry relationship being between the product object and the associated object established according to an industry Relationship;
接收客户端发送的查询请求,所述查询请求中具有查询词;Receiving a query request sent by the client, where the query request has a query word;
识别所述查询词所属的行业;Identifying the industry to which the query term belongs;
在所述行业的产品链对象数据库中查询与所述查询词匹配的行业对象;Querying an industry object matching the query term in a product chain object database of the industry;
在所述行业的产品链对象数据库中以所述行业对象为基点,逐级查询以行业关系相连的其它行业对象,获得产品链对象;In the product chain object database of the industry, based on the industry object, querying other industry objects connected by industry relations step by step to obtain a product chain object;
将所述产品链对象返回所述客户端。Returning the product chain object to the client.
可选地,所述行业的产品链对象数据库中记录所述行业中行业对象与行业对象之间的行业关系,所述行业关系包括产品组成关系和/或产品生产关系。Optionally, an industry relationship between an industry object and an industry object in the industry is recorded in a product chain object database of the industry, and the industry relationship includes a product composition relationship and/or a product production relationship.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
将所述行业对象设置为产品对象;Setting the industry object as a product object;
查找所述行业中预设的目标行业关系;Find the target industry relationships preset in the industry;
判断所述产品对象连接的行业关系是否与所述目标行业关系匹配;Determining whether the industry relationship of the product object connection matches the target industry relationship;
若是,则提取所述行业关系连接的关联对象;If yes, extract the associated object of the industry relationship connection;
将所述关联对象设置为新的产品对象,返回执行所述判断所述产品对象与关联对象连接的行业关系是否与所述目标行业关系匹配的步骤;Setting the associated object as a new product object, and returning to perform the step of determining whether the industry relationship of the product object and the associated object is matched with the target industry relationship;
若否,则以所述行业关系连接查询到的产品对象及关联对象,生成产品链对象。If not, the product object and the associated object that are queried are connected by the industry relationship to generate a product chain object.
可选地,所述查询请求中具有第一地理位置;该一个或多个模块可以具有如下功能:Optionally, the query request has a first geographic location; the one or more modules may have the following functions:
当所述行业关系为产品生产关系时,提取所述行业对象表征的生产对象;Extracting the production object represented by the industrial object when the industry relationship is a product production relationship;
查询所述生产对象的第二地理位置; Querying a second geographic location of the production object;
按照所述第一地理位置与所述第二地理位置之间的距离值对所述生产对象进行排序;Sorting the production objects according to a distance value between the first geographic location and the second geographic location;
将排序之后的产品链对象返回所述客户端。The sorted product chain object is returned to the client.
可选地,所述查询请求中具有生产总成本;该一个或多个模块可以具有如下功能:Optionally, the query request has a total production cost; the one or more modules may have the following functions:
当所述行业关系为产品生产关系时,提取所述行业对象表征的生产对象;Extracting the production object represented by the industrial object when the industry relationship is a product production relationship;
查询所述生产对象的生产子成本;Querying the production sub-cost of the production object;
从所述生产对象中选择所述生产子成本之和小于或等于所述生产总成本的目标生产对象;Selecting, from the production objects, a target production object whose sum of production sub-costs is less than or equal to the total production cost;
将包括所述目标生产对象的产品链对象返回所述客户端。A product chain object including the target production object is returned to the client.
可选地,该一个或多个模块可以具有如下功能:Optionally, the one or more modules may have the following functions:
对所述查询词进行归一化处理。The query words are normalized.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in the present specification are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same similar parts between the various embodiments can be referred to each other.
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品对象。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品对象的形式。Those skilled in the art will appreciate that embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product object. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application may take the form of a computer program product object embodied on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer usable program code embodied therein. .
在一个典型的配置中,所述计算机设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的 示例。计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非持续性的电脑可读媒体(transitory media),如调制的数据信号和载波。In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is computer readable medium Example. Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media 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 disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品对象的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program product objects in accordance with embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The instruction device implements the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。 These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device such that a series of operational steps are performed on the computer or other programmable terminal device to produce computer-implemented processing, such that the computer or other programmable terminal device The instructions executed above provide steps for implementing the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。While a preferred embodiment of the embodiments of the present application has been described, those skilled in the art can make further changes and modifications to the embodiments once they are aware of the basic inventive concept. Therefore, the appended claims are intended to be interpreted as including all the modifications and the modifications
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体词或者操作与另一个实体词或操作区分开来,而不一定要求或者暗示这些实体词或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this context, relational terms such as first and second are used merely to distinguish one entity word or operation from another entity word or operation, without necessarily requiring or implying There is any such actual relationship or order between these entities or operations. Furthermore, the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, or terminal device that includes a plurality of elements includes not only those elements but also Other elements that are included, or include elements inherent to such a process, method, article, or terminal device. An element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that comprises the element, without further limitation.
以上对本申请所提供的一种产品链对象数据库的建立方法、一种产品链对象数据库的建立装置、一种产品链对象数据库的建立系统、一种产品链对象数据库的查询方法、一种产品链对象数据库的查询方法装置和一种产品链对象数据库的查询方法系统,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 The method for establishing a product chain object database provided by the present application, a device for establishing a product chain object database, a system for establishing a product chain object database, a method for querying a product chain object database, and a product chain The query method device of the object database and the query method system of the product chain object database are described in detail. The principle and implementation manner of the present application are described in the specific examples. The description of the above embodiment is only for helping. The method of the present application and its core idea are understood; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and the scope of application. It should be understood that the limitations of the application.
Claims (30)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610548269.2 | 2016-07-12 | ||
| CN201610548269.2A CN107608995A (en) | 2016-07-12 | 2016-07-12 | A kind of foundation of product chain object database, querying method, device and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018010569A1 true WO2018010569A1 (en) | 2018-01-18 |
Family
ID=60952797
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2017/091636 Ceased WO2018010569A1 (en) | 2016-07-12 | 2017-07-04 | Product chain object database establishment, and query methods, devices and systems therefor |
Country Status (3)
| Country | Link |
|---|---|
| CN (1) | CN107608995A (en) |
| TW (1) | TWI797081B (en) |
| WO (1) | WO2018010569A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112435051A (en) * | 2020-11-13 | 2021-03-02 | 北京创业光荣信息科技有限责任公司 | Obtaining method of associated enterprise, electronic equipment, computer readable storage medium and terminal |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110209914B (en) * | 2019-06-13 | 2024-04-12 | 腾讯科技(成都)有限公司 | Information query method and related device |
| CN110334939B (en) * | 2019-07-01 | 2022-03-15 | 济南大学 | Method, system, equipment and medium for quick configuration of material information for door and window customization |
| TWI852828B (en) * | 2023-11-09 | 2024-08-11 | 伊雲谷數位科技股份有限公司 | Method and system for establishing data, method and system for querying data, data structure product, computer program product and non-transitory computer-readable medium for multi-layer nodes system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103995847A (en) * | 2014-05-06 | 2014-08-20 | 百度在线网络技术(北京)有限公司 | Information search method and device |
| US20140351261A1 (en) * | 2013-05-24 | 2014-11-27 | Sap Ag | Representing enterprise data in a knowledge graph |
| CN105574089A (en) * | 2015-12-10 | 2016-05-11 | 百度在线网络技术(北京)有限公司 | Mapping knowledge domain generation method and device, and object comparison method and device |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101281525B (en) * | 2007-11-23 | 2010-06-02 | 北京九城网络软件有限公司 | System and method for searching based on knowledge base on internet |
| CN102402535A (en) * | 2010-09-13 | 2012-04-04 | 阿里巴巴集团控股有限公司 | Method and system for building product library |
| CN105138680A (en) * | 2015-09-14 | 2015-12-09 | 郑州悉知信息科技股份有限公司 | Keyword classification method and device and product search method and device |
-
2016
- 2016-07-12 CN CN201610548269.2A patent/CN107608995A/en active Pending
-
2017
- 2017-06-05 TW TW106118548A patent/TWI797081B/en active
- 2017-07-04 WO PCT/CN2017/091636 patent/WO2018010569A1/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140351261A1 (en) * | 2013-05-24 | 2014-11-27 | Sap Ag | Representing enterprise data in a knowledge graph |
| CN103995847A (en) * | 2014-05-06 | 2014-08-20 | 百度在线网络技术(北京)有限公司 | Information search method and device |
| CN105574089A (en) * | 2015-12-10 | 2016-05-11 | 百度在线网络技术(北京)有限公司 | Mapping knowledge domain generation method and device, and object comparison method and device |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112435051A (en) * | 2020-11-13 | 2021-03-02 | 北京创业光荣信息科技有限责任公司 | Obtaining method of associated enterprise, electronic equipment, computer readable storage medium and terminal |
| CN112435051B (en) * | 2020-11-13 | 2023-11-28 | 海创汇科技创业发展股份有限公司 | Acquisition method, electronic equipment, computer readable storage medium and terminal of associated enterprises |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107608995A (en) | 2018-01-19 |
| TW201804344A (en) | 2018-02-01 |
| TWI797081B (en) | 2023-04-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110162695B (en) | Information pushing method and equipment | |
| CN107145496B (en) | Method for matching image with content item based on keyword | |
| TWI522942B (en) | User favorites data processing method and device, user favorite data searching method and device, and user favorite system | |
| CN104794242B (en) | Searching method | |
| WO2018014759A1 (en) | Method, device and system for presenting clustering data table | |
| CN103823907B (en) | A kind of method, apparatus and engine for integrating online video resource address | |
| US11561988B2 (en) | Systems and methods for harvesting data associated with fraudulent content in a networked environment | |
| CN111224923B (en) | Detection method, device and system for counterfeit websites | |
| JP6728178B2 (en) | Method and apparatus for processing search data | |
| CN108256067A (en) | Calculate method, apparatus, equipment and the storage medium of source of houses similarity | |
| WO2018010569A1 (en) | Product chain object database establishment, and query methods, devices and systems therefor | |
| TW201426357A (en) | Method and apparatus of ordering search data, and data search method and apparatus | |
| CN110619559A (en) | Method for accurately recommending commodities in electronic commerce based on big data information | |
| TW201717067A (en) | System, method and computer readable recording media for issue display | |
| JP2018537768A (en) | Identifying users with social business characteristics | |
| CN114003799A (en) | Event recommendation method, apparatus and apparatus | |
| CN105159898A (en) | Searching method and searching device | |
| Al-Dhelaan et al. | Graph summarization for hashtag recommendation | |
| CN118796863A (en) | Data query method and device | |
| WO2016176932A1 (en) | Method for searching for keyword on information display page | |
| TWI484359B (en) | Method and system for providing article information | |
| CN103514237A (en) | A method and system for obtaining personalized features of users and documents | |
| WO2017036333A1 (en) | Interaction event-based webpage item recommendation method and device | |
| US20180091537A1 (en) | Trigger-Based Harvesting of Data Associated with Malignant Content in a Networked Environment | |
| CN108153857A (en) | A kind of method and system for being used to be associated network access data processing |
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: 17826906 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 17826906 Country of ref document: EP Kind code of ref document: A1 |