CN107608995A - A kind of foundation of product chain object database, querying method, device and system - Google Patents
A kind of foundation of product chain object database, querying method, device and system Download PDFInfo
- Publication number
- CN107608995A CN107608995A CN201610548269.2A CN201610548269A CN107608995A CN 107608995 A CN107608995 A CN 107608995A CN 201610548269 A CN201610548269 A CN 201610548269A CN 107608995 A CN107608995 A CN 107608995A
- Authority
- CN
- China
- Prior art keywords
- product
- industry
- relationship
- affiliated partner
- production
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
Abstract
The embodiment of the present application provides a kind of foundation of product chain object database, querying method, device and system, and the method for building up includes:Product object is obtained from info web;The affiliated partner related to the product object is obtained in the info web;Identify the industry belonging to the product object;The Relationship established according to the industry between the product object and the affiliated partner;Using the product object, the affiliated partner as industry object, stored with the Relationship into the product chain object database of the industry.The embodiment of the present application avoids passing through worker, expert etc. and manually accumulated, greatly reduce the consuming of time, and, data volume on network is very huge, the shortcomings that personal knowledge such as worker, expert is not complete is made up by the knowledge of colony, the phenomenon for make it that the information of product chain is incomplete is reduced, improves efficiency.
Description
Technical field
The application is related to the technical field of computer disposal, more particularly to a kind of foundation side of product chain object database
Method, a kind of product chain object database establish device, a kind of product chain object database establishes system, a kind of product chain pair
The querying method in image data storehouse, a kind of inquiry unit of product chain object database and a kind of inquiry of product chain object database
System.
Background technology
Product, until each link of consumption, is related to production, processing, distribution, the storage of product and its auxiliary material from Primary Production
And processing, form product chain.
Scope takes from the raw material producer, production manufacturer, transport and storage person, subcontractor to retailer and product
The tissue of link of being engaged in and correlation, such as equipment, the packaging material producer, cleaning industry, additive and ingredient producers.
Because product is in the information of the links of product chain, substantially manually accumulated by experienced operator, expert etc.
Tired, not only time-consuming, moreover, the knowledge of the individual such as worker, expert is not complete, causes the information of product chain more incomplete, efficiency is very
It is low.
Before a product is produced, user generally requires to take a long time and the product chain of the product is investigated,
Then just start from.
For example, for mobile phone, it is necessary to investigate circuit board, camera, sensor (such as Distance-sensing before production
Device, gyroscope etc.), battery, earphone, data wire, a series of parts such as screen, its product chain length, during the investigation spent
Between it is very long.
Certainly, final product may be released successfully, but it is excellent objective to have lost possessed when conceiving before this
Condition, efficiency are very low.
The content of the invention
In view of the above problems, it is proposed that the embodiment of the present application overcomes above mentioned problem or at least in part to provide one kind
The method for building up of the product chain object database to solve the above problems a kind of, a kind of product chain object database establish device,
A kind of product chain object database establishes system, a kind of querying method of product chain object database, a kind of product chain object
The inquiry unit of database and a kind of inquiry system of product chain object database.
On the one hand, the embodiment of the present application provides a kind of system of establishing of product chain object database, and the system includes:
One or more processors;
Memory;With
One or more modules, one or more of modules are stored in the memory and are configured to by described one
Individual or multiple computing devices, one or more of modules have following function:
Product object is obtained from info web;
The affiliated partner related to the product object is obtained in the info web;
Identify the industry belonging to the product object;
The Relationship established according to the industry between the product object and the affiliated partner;
Using the product object, the affiliated partner as industry object, stored with the Relationship to the industry
Product chain object database in.
On the other hand, the embodiment of the present application provides a kind of inquiry system of product chain object database, the product chain
Object database is stored with industry object and Relationship, and the industry object includes product object and affiliated partner, the row
Industry relation is the relation between the product object and the affiliated partner established according to industry;The system includes:
One or more processors;
Memory;With
One or more modules, one or more of modules are stored in the memory and are configured to by described one
Individual or multiple computing devices, one or more of modules have following function:
The inquiry request that client is sent is received, there is query word in the inquiry request;
Identify the industry belonging to the query word;
The industry object matched with the query word is inquired about in the product chain object database of the industry;
Using the industry object as basic point in the product chain object database of the industry, inquire about step by step with Relationship
Connected other industry objects, obtain product chain object;
The product chain object is returned into the client.
On the other hand, the embodiment of the present application provides a kind of method for building up of product chain object database, including:
Product object is obtained from info web;
The affiliated partner related to the product object is obtained in the info web;
Identify the industry belonging to the product object;
The Relationship established according to the industry between the product object and the affiliated partner;
Using the product object, the affiliated partner as industry object, stored with the Relationship to the industry
Product chain object database in.
On the other hand, the embodiment of the present application provides a kind of querying method of product chain object database, the product chain
Object database is stored with industry object and Relationship, and the industry object includes product object and affiliated partner, the row
Industry relation is the relation between the product object and the affiliated partner established according to industry;
Described method includes:
The inquiry request that client is sent is received, there is query word in the inquiry request;
Identify the industry belonging to the query word;
The industry object matched with the query word is inquired about in the product chain object database of the industry;
Using the industry object as basic point in the product chain object database of the industry, inquire about step by step with Relationship
Connected other industry objects, obtain product chain object;
The product chain object is returned into the client.
On the other hand, the embodiment of the present application provides a kind of device of establishing of product chain object database, including:
Product object acquisition module, for obtaining product object from info web;
Affiliated partner acquisition module, for obtaining the association pair related to the product object in the info web
As;
Object industry identification module, for identifying the industry belonging to the product object;
Relationship establishes module, for being established according to the industry between the product object and the affiliated partner
Relationship;
Product chain object database memory module, for using the product object, the affiliated partner as industry object,
Stored with the Relationship into the product chain object database of the industry.
On the other hand, the embodiment of the present application provides a kind of inquiry unit of product chain object database, the product chain
Object database is stored with industry object and Relationship, and the industry object includes product object and affiliated partner, the row
Industry relation is the relation between the product object and the affiliated partner established according to the industry;
Described device includes:
Inquiry request receiving module, for receiving the inquiry request of client transmission, there is inquiry in the inquiry request
Word;
Query word industry identification module, for identifying the industry belonging to the query word;
Industry object matching module, for the inquiry in the product chain object database of the industry and the query word
The industry object matched somebody with somebody;
Product chain object database spider module, in the product chain object database of the industry with the industry
Object is basic point, inquires about the other industry objects being connected with Relationship step by step, obtains product chain object;
Product chain object returns to module, for the product chain object to be returned into the client.
The embodiment of the present application includes advantages below:
The embodiment of the present application can obtain product object and its affiliated partner of correlation, identify the row belonging to product object
Industry, to establish the Relationship between product object and affiliated partner, using product object, affiliated partner as industry object, with
Relationship is stored into the product chain object database of industry, and the product chain object database of the sector is accumulated, more
Newly, with the data in gradual perfection product chain, the foundation of the product chain object database of the industry of automation is realized, avoids leading to
Cross worker, expert etc. manually to be accumulated, greatly reduce the consuming of time, also, the data volume on network is very huge, leads to
The knowledge for crossing colony makes up the shortcomings that personal knowledge such as worker, expert is not complete, reduces and causes the information of product chain is incomplete to show
As improving efficiency.
The embodiment of the present application receives the inquiry request that client is sent, then extracts query word, identification query word institute therefrom
The industry of category, the industry object matched with query word is inquired about in the product chain object database of industry, in the product chain of industry
Using the sector object as basic point in object database, the other industry objects being connected with Relationship are inquired about step by step, obtain product
Chain object simultaneously returns to client, quickly allows user to obtain the information of comprehensive product chain, avoids taking a long time to certain
The product chain of individual product is investigated, and reduces the time of investigation, improves efficiency.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of the method for building up embodiment of product chain object database of the application;
Fig. 2 is a kind of exemplary plot of info web of the embodiment of the present application;
Fig. 3 A to Fig. 3 C are a kind of exemplary plots of product chain object database of the embodiment of the present application;
Fig. 4 is a kind of step flow chart of the querying method embodiment of product chain object database of the application;
Fig. 5 is a kind of structured flowchart for establishing device embodiment of product chain object database of the application;
Fig. 6 is a kind of structured flowchart of the inquiry unit embodiment of product chain object database of the application;
Fig. 7 is a kind of server architecture schematic diagram of the embodiment of the present application.
Embodiment
It is below in conjunction with the accompanying drawings and specific real to enable the above-mentioned purpose of the application, feature and advantage more obvious understandable
Mode is applied to be described in further detail the application.
Reference picture 1, show a kind of step flow of the method for building up embodiment of product chain object database of the application
Figure, specifically may include steps of:
Step 101, product object is obtained from info web;
In embodiments of the present invention, product object, can be the data object for characterizing product, generally entity word.
It is also different in different industries, product object.
For example, for electronics industry, product object can refer to mobile phone, tablet personal computer, computer etc..
In another example for food service industry, product object can refer to Braised Duck with Shredded Konjak meat, shredded pork with green pepper, vinegar-pepper cooking shredded potato etc..
In another example for furniture industry, product object can refer to sofa, desk, bed etc..
In one embodiment of the application, step 101 can include following sub-step:
Sub-step S11, extract default network address;
In the embodiment of the present application, the site information of industry-by-industry can be gathered in advance, be stored in dot data storehouse.
These site informations can include web site name, the affiliated industry in website, network address, and its example can be with as shown in the table:
Web site name | The affiliated industry in website | Network address |
Menu net | Food | www.caipu.net |
Mobile phone screen net | Electronics | www.shoujipingmu.net |
During product chain object database is created, network address can be extracted from dot data storehouse.
Sub-step S12, capture info web corresponding to the network address;
In the specific implementation, the network address pair can be captured by web crawlers (also known as Web Spider, network robot etc.)
The info web answered.
Web crawlers accesses some webpage of website from the network address, reads the info web (such as title, text) of webpage,
Other chained addresses in webpage are found, then find next webpage by these chained addresses, under so circulating always
Go, typically untill all webpages in this website have all been captured.
Sub-step S13, identify the website belonging to the info web;
Sub-step S14, product object is extracted according to first position of the website in the info web.
In actual applications, the webpage of many websites is generally based on the generation of identical web page template, therefore, these nets
The structure of page generally there are certain rule.
For these websites, product object can be extracted in specified first position according to the rule of its structure.
For example, as shown in Fig. 2 in menu net, in a subregion (div) of web page body (body) part, typically
For recording the summary infos such as cuisine picture (Fig. 2 is not indicated), cuisine title, scoring.
For this website, cuisine name can be extracted in this subregion and be referred to as product object, i.e. Braised Duck with Shredded Konjak meat.
Step 102, the affiliated partner related to the product object is obtained in the info web;
Affiliated partner, related to product data object in product chain, generally entity word can be referred to.
For example, for the mobile phone of electronics industry, affiliated partner can refer to screen, circuit board, the first-class parts of shooting, also may be used
To refer to manufacturer of production etc..
In another example for food service industry, affiliated partner can also refer to the manufacturer for providing material, also with the material of cuisine
Manufacturer of production etc. can be referred to.
In one embodiment of the application, step 102 can include following sub-step:
Sub-step S21, closed according to second place extraction of the website in the info web with the product object
The affiliated partner of connection.
In actual applications, the webpage of many websites is generally based on the generation of identical web page template, therefore, these nets
The structure of page generally there are certain rule.
For these websites, product object can be extracted in the specified second place according to the rule of its structure.
For example, as shown in Fig. 2 in menu net, in a subregion (div) of web page body (body) part, typically
The content informations such as material, way for recording cuisine.
For this website, the material of cuisine can be extracted in this subregion as affiliated partner, i.e. duck half, evil spirit
Taro bean curd, the valve of garlic 3, bubble ginger 1 fritter, bubble green pepper 3 or so, oily 2 soupspoons, appropriate boiling water.
In another embodiment of the application, step 102 can include following sub-step:
Sub-step S22, extract default production object;
Sub-step S23, when the production object produces the product object, the production object is arranged to association pair
As.
Object is produced, the data object that (including make, sell) product is produced in product chain can be referred to, it is generally real
Pronouns, general term for nouns, numerals and measure words.
For example, for the mobile phone of electronics industry, production object can produce the producer of mobile phone, can also stylus pin sell mobile phone
Businessman etc..
In another example for the cuisine of food service industry, production object can make businessman of the cuisine etc..
In the embodiment of the present application, manufacturer's information can be gathered in advance, build the vendor database of structuring, this manufacturer
Database can also include the marketing number of manufacturer in addition to the scope of operation (including producible product) comprising production object
According to specific to the granularity of each product, user behavior data can also being included, such as click on, comment on, place an order, buy.
It should be noted that this production object, can be the manufacturer on line or the manufacturer under line, the application
Embodiment is not any limitation as to this.
If detect that some production object can generate the product object in vendor database, the production object is set
For relative to the affiliated partner of the product object.
Step 103, the industry belonging to the product object is identified;
In the specific implementation, industry due to have recorded website in dot data storehouse, and in many websites webpage it is interior
Hold the industry mostly with website to coincide, therefore, for these websites, the industry of website can be identified as belonging to product object
Industry.
For example, introducing cuisine substantially in menu net, the product object of cuisine is characterized, can be dish directly by its trade division
Compose the food service industry of net.
But some comprehensive websites, such as portal website, encyclopaedia class website, many industries can be covered, therefore, for
These websites, the industry belonging to product object can be identified by text classifier.
Before product object is inputted into text classifier, typically product object is pre-processed, for example, removal numeral,
Hyphen, punctuation mark, additional character, by capitalization lower, to go to stop word, filtering unworthy to classifying
Word, etc..
Text classifier, naive Bayesian can be based on, (k-Nearest Neighbor algorithm, K is most adjacent by KNN
Nearly Node Algorithm) scheduling algorithm realization.
By taking KNN as an example, if the k in feature space most like (i.e. feature spaces of a sample (such as product object)
In it is closest) sample in it is most of belong to some classification, then the sample falls within this classification.
In KNN, selected neighbours are the objects correctly classified, and this method is on class decision-making is determined only according to most
The classification of one or several neighbouring samples determines the classification belonging to sample to be divided.
Step 104, the Relationship established according to the industry between the product object and the affiliated partner;
For the entity sets (i.e. the set of product object, affiliated partner composition) of same industry, entity can be built
Between relation (i.e. between product object and affiliated partner).
It should be noted that in each industry, the Relationship between product object and affiliated partner is all different.
For example, for the braised duck with taro and mushroom meat of food service industry, its material includes konjaku, duck etc., can make the business of the cuisine
Family is A shops, and therefore, the Relationship of foundation is braised duck with taro and mushroom meat【Material】Konjaku, braised duck with taro and mushroom meat【Material】Duck, mushroom
Taro Roast duck meat【Make】A shops etc..
In the embodiment of the present application, Relationship can include product form relation and/or production relation mostly.
Wherein, product form relation can be the relation between product and other objects for producing the product, other
Object itself can be product, or raw material, the embodiment of the present application are not any limitation as to this.
For example, the Relationship that the material such as braised duck with taro and mushroom meat and konjaku, duck is established is product form relation.
In another example the Relationship that the parts such as mobile phone and circuit board, camera, sensor are established closes for product form
System.
Production relation thinks the relation between product and the manufacturer for producing the product.
For example, the Relationship that braised duck with taro and mushroom meat is established with A shops is production relation.
Certainly, above-mentioned Relationship is intended only as example, when implementing the embodiment of the present application, can be set according to actual conditions
Other industry relation is put, for example, the storage of Product transport relation (relation between product and the manufacturer for transporting the product), product is closed
It is (relation between product and the manufacturer for storing the product) etc., the embodiment of the present application is not any limitation as to this.In addition, except
Outside above-mentioned Relationship, those skilled in the art can also use other Relationships, the embodiment of the present invention according to being actually needed
This is not also any limitation as.
Step 105, using the product object, the affiliated partner as industry object, with the Relationship store to
In the product chain object database of the industry.
In the embodiment of the present application, each industry at least has a product chain object database, also known as knowledge mapping
(Knowledge Graph), substantially it is a kind of semantic network, its node general proxy entity (entity) or concept
(concept), the various semantic relations between side general proxy entity/concept.
In the embodiment of the present application, the node on behalf industry object of product chain object database, i.e. number in this industry
According to object, while representing Relationship, i.e., industry object and row in the sector are recorded in the product chain object database of some industry
Relationship between industry object.
Wherein, industry object can divide into product object, affiliated partner, and certain product object and affiliated partner are relative
For, some industry object both can be relative to the product object of some industry objects or relative to some rows
The affiliated partner of industry object.
For example, screen is the affiliated partner relative to mobile phone, and relative to display screen, the product object of touch-screen, etc.
Deng.
If identifying product object, affiliated partner and its Relationship, industry belonging to product object can be extracted
Product chain object database, storage product object, affiliated partner and its Relationship.
Because the name in industry to industry-by-industry object is not completely unified, it is understood that there may be difference, therefore, in storage
Before, product object and affiliated partner can be normalized, obtain the name of standard.
In the specific implementation, the title of industry object in industry-by-industry and each can also be stored in vendor database
The non-standard title being likely to occur corresponding to title.
According to the corresponding relation between title and non-standard title, if being named as product object and affiliated partner is non-
Title, then it can be converted to standardized name.
For example, duck is normalized to duck, konjaku is normalized to taro etc..
In one embodiment of the application, step 105 can include following sub-step:
Sub-step S31, the product is searched in the industry object recorded in the product chain object database of the industry
Object.
In the embodiment of the present application, the product pair can be searched in the industry object that product chain object database records
As to confirm whether recorded the product object in product chain object database.
It should be noted that product object is the independent attribute of industry object, when the title of product object and industry object
When the same, it is product object to be not meant to the sector object.
For example, the product object currently obtained is screen, affiliated partner is display screen and touch-screen, extracts electricity belonging to screen
The product chain object database of sub-industry, in this product chain object database, mobile phone has been recorded as product object, screen
It is the affiliated partner relative to mobile phone, even if having recorded screen, still, screen is not product object, it is thus identified that not finding
Screen as product object.
Sub-step S32, when not finding the product object, recorded in the product chain object database of the industry
The product object.
In oneainstance, some industry object is as the title of product object, still, the attribute as affiliated partner
And record.
In this case, product object directly can be set to the sector object.
In another scenario, and in the absence of the industry object as the title of product object.
In this case, an industry object can be increased newly with the title of product object, is set to product object.
Sub-step S33, the association is searched in the industry object recorded in the product chain object database of the industry
Object.
If do not find the product object, you can with further product chain object database record industry object in
Search affiliated partner.
It should be noted that affiliated partner is for product object, it is not the independent attribute of itself, because
This, no matter the attribute of industry object is product object or affiliated partner, can turn into the affiliated partner of current production object,
I.e. when affiliated partner is as the title of industry object, it is believed that the sector object is product object.
For example, the product object currently obtained is screen, affiliated partner is display screen and touch-screen, extracts electricity belonging to screen
The product chain object database of sub-industry, in this product chain object database, touch-screen has been recorded as product object, has been shown
Display screen is the affiliated partner relative to TV, it is thus identified that finding the display screen and touch-screen as affiliated partner.
Sub-step S34, when finding the affiliated partner, with the Relationship connect the product object with it is described
Affiliated partner.
If finding affiliated partner, the node as product object can be connected with being used as pass by side of Relationship
Join the node of object.
Sub-step S35, when not finding the affiliated partner, recorded in the product chain object database of the industry
The affiliated partner.
If not finding affiliated partner, that is, the industry object as the title of affiliated partner is not present.
In this case, an industry object can be increased newly with the title of affiliated partner, is set to affiliated partner
Sub-step S36, the product object and the affiliated partner are connected with the Relationship.
Sub-step S37, when finding the product object, ignore the product object, the affiliated partner with it is described
Relationship.
If finding the product object, that is, represent formerly to have have recorded product object, affiliated partner and its Relationship,
Ignore current product object, affiliated partner and its Relationship.
The embodiment of the present application can obtain product object and its affiliated partner of correlation, identify the row belonging to product object
Industry, to establish the Relationship between product object and affiliated partner, using product object, affiliated partner as industry object, with
Relationship is stored into the product chain object database of industry, and the product chain object database of the sector is accumulated, more
Newly, with the data in gradual perfection product chain, the foundation of the product chain object database of the industry of automation is realized, avoids leading to
Cross worker, expert etc. manually to be accumulated, greatly reduce the consuming of time, also, the data volume on network is very huge, leads to
The knowledge for crossing colony makes up the shortcomings that personal knowledge such as worker, expert is not complete, reduces and causes the information of product chain is incomplete to show
As improving efficiency.
To make those skilled in the art more fully understand the embodiment of the present application, illustrate this Shen below by way of specific example
Please in embodiment the product chain object database of industry method for building up.
If product object screen and its affiliated partner display screen, touch-screen and fourth work are currently extracted in mobile phone website
Factory, the industry for identifying screen are electronics industry, and the Relationship established between screen and display screen is parts, is screen
The Relationship established between touch-screen is parts, is that the Relationship established between screen and fourth factory is making.
The product chain object database of electronics industry is extracted, as shown in Figure 3A, in the product chain number of objects of the electronics industry
It is TV, display, mobile phone, first factory, second factory, the third factory, screen, camera, electricity according to the industry object in storehouse, recorded
Road plate etc..
TV and mobile phone are product object, display, first factory, second factory, the third factory, screen, camera, circuit board etc.
For affiliated partner.
As shown in Figure 3 B, in the product chain object database of the electronics industry, the screen as product object is not recorded
Curtain, still, has recorded the screen as affiliated partner, then can set the screen as product object.
In the product chain object database of the electronics industry, display screen has been recorded, then during such as Fig. 3 C lawsuits, can have been set aobvious
Display screen is affiliated partner, and screen and display screen are connected by side of parts, then can be with addition, do not record touch-screen and fourth factory
Newly-increased touch-screen and fourth factory are simultaneously set to affiliated partner, and screen and touch-screen are connected by side of parts, to be made as side connection
Screen and fourth factory.
Reference picture 4, show a kind of step flow of the querying method embodiment of product chain object database of the application
Figure, specifically may include steps of:
Step 401, the inquiry request that client is sent is received.
In the embodiment of the present application, user, such as browser or independent application, can be sent by client to server
Inquiry request.
Wherein, there is query word in inquiry request.
Step 402, the industry belonging to the query word is identified.
Because the name in industry to industry-by-industry object is not completely unified, it is understood that there may be difference, therefore, in inquiry
Before, query word can be normalized, obtain the name of standard.
In the specific implementation, the title of industry object in industry-by-industry can be stored in preset vendor database
And the other non-standard titles being likely to occur corresponding to each title.
According to the corresponding relation between title and non-standard title, if query word is non-standard title, can turn
It is changed to standardized name.
For example, duck is normalized to duck, konjaku is normalized to taro etc..
In inquiry, query word can be indexed, search the industry belonging to the query word.
For example, if query word is Braised Duck with Shredded Konjak meat, the industry belonging to it is food service industry;If query word is mobile phone,
Industry belonging to it is electronics industry.
Step 403, the industry object matched with the query word is inquired about in the product chain object database of the industry.
In the embodiment of the present application, each industry at least has a product chain object database, also known as knowledge mapping
(Knowledge Graph), substantially it is a kind of semantic network, its node general proxy entity (entity) or concept
(concept), the various semantic relations between side general proxy entity/concept.
In the embodiment of the present application, product chain object database is stored with industry object and Relationship, product chain object
The node on behalf industry object of database, i.e. data object in this industry, while represent Relationship, i.e. the production of some industry
The Relationship in the sector between industry object and industry object is recorded in product chain object database.
Furthermore, industry object includes product object and affiliated partner, and Relationship is the institute that is established according to industry
State the relation between product object and affiliated partner.
In the embodiment of the present application, Relationship can include product form relation and/or production relation mostly.
Wherein, product form relation can be the relation between product and other objects for producing the product, other
Object itself can be product, or raw material, the embodiment of the present application are not any limitation as to this.
For example, the Relationship that the material such as braised duck with taro and mushroom meat and konjaku, duck is established is product form relation.
In another example the Relationship that the parts such as mobile phone and circuit board, camera, sensor are established closes for product form
System.
Production relation thinks the relation between product and the manufacturer for producing the product.
For example, the Relationship that braised duck with taro and mushroom meat is established with A shops is production relation.
Certainly, above-mentioned Relationship is intended only as example, when implementing the embodiment of the present application, can be set according to actual conditions
Other industry relation is put, for example, the storage of Product transport relation (relation between product and the manufacturer for transporting the product), product is closed
It is (relation between product and the manufacturer for storing the product) etc., the embodiment of the present application is not any limitation as to this.In addition, except
Outside above-mentioned Relationship, those skilled in the art can also use other Relationships, the embodiment of the present invention according to being actually needed
This is not also any limitation as.
Step 404, using the industry object as basic point in the product chain object database of the industry, inquire about step by step with
The connected other industry objects of Relationship, obtain product chain object.
In the specific implementation, can be traveled through based on the industry object matched with query word along side, connected its is being searched
His industry object, obtain product chain object, i.e. all or part of data object in the product chain of some product.
In one embodiment of the application, step 404 can include following sub-step:
Sub-step S41, the industry object is arranged to product object;
In general, what user inquired about in many cases is product, and therefore, the query word inputted may be considered
Product object.
Sub-step S42, search default target Relationship in the industry;
Sub-step S43, judge product object connection Relationship whether with the target industry relationship match;If
It is then to perform sub-step S44, if it is not, then performing sub-step S46;
In the embodiment of the present application, different industries can be directed to, target is set in the Relationship possessed from the sector
Relationship, to control the trend and depth of product chain object.
For example, in the product chain object database of electronics industry, to control the direction of product chain object toward parts to prolong
Stretch, it is target Relationship that can set parts, if other industry object is the parts of some industry object, its industry
Relation meets target line industry relation, if conversely, when the sector object is the parts of other industry object, its Relationship is not inconsistent
Close target Relationship.
Sub-step S44, extract the affiliated partner of the Relationship connection;
Sub-step S45, the affiliated partner is arranged to new product object, returns and performs sub-step S43;
If identifying affiliated partner, can using the affiliated partner as new product object, i.e., as new product,
Continue to travel through.
Sub-step S46, the product object and affiliated partner arrived with the Relationship Connection inquiring, generate product chain pair
As.
If do not meet target Relationship again, traversal terminates, and product object, affiliated partner are carried out with Relationship
Series connection, obtain product chain object.
Step 405, the product chain object is returned into the client.
When obtaining product chain object, product chain object can be sent to client and be shown.
, can be according to certain rule in product chain object in the specific implementation, in order to improve the acquisition efficiency of information
Information is ranked up.
In one embodiment of the application, there is the first geographical position, i.e. geography residing for client in inquiry request
Position.
When food and drink in food service industry, when Relationship is production relation, industry Object table is extracted
The production object of sign, i.e., the data object of (including make, sell) product is produced in product chain.
Second geographical position of inquiry production object, and according to first geographical position and second geographical position it
Between distance value to it is described production object be ranked up, by after sequence product chain object return client.
In general, distance value is smaller, sequence is more forward, conversely, distance value is bigger, sequence is more rearward.
Certainly, in addition to being ranked up according to distance, can also be ranked up according to factors such as scoring, the qualities of production,
The embodiment of the present application is not any limitation as to this.
In actual applications, in order to improve the acquisition efficiency of information, user can set certain query argument to inquire about production
Information in product chain object.
In one embodiment of the application, there is total production cost in inquiry request.
When Relationship is production relation, extract the production object of industry object characterization, i.e., it is raw in product chain
Produce the data object of (including make, sell) product.
The sub- cost of production of inquiry production object.
Selection produces the target production object that sub- cost sum is less than or equal to total production cost from production object, will wrap
The product chain object for including target production object returns to client.
For example, it is 500 yuan, 900 yuan that if user, which sets production cost, production cost can be returned respectively and is less than or equal to
500 yuan, 900 yuan of production object.
In the embodiment of the present application, the product chain object database of industry can be with the method for building up of product chain object database
Mode in embodiment generates, and its application is substantially similar, so description is fairly simple, related part is referring to product chain number of objects
Part according to the method for building up embodiment in storehouse illustrates that the embodiment of the present application is not described in detail herein.
The embodiment of the present application receives the inquiry request that client is sent, then extracts query word, identification query word institute therefrom
The industry of category, the industry object matched with query word is inquired about in the product chain object database of industry, in the product chain of industry
Using the sector object as basic point in object database, the other industry objects being connected with Relationship are inquired about step by step, obtain product
Chain object simultaneously returns to client, quickly allows user to obtain the information of comprehensive product chain, avoids taking a long time to certain
The product chain of individual product is investigated, and reduces the time of investigation, improves efficiency.
To make those skilled in the art more fully understand the embodiment of the present application, illustrate this Shen below by way of specific example
Please in embodiment the product chain object database of industry querying method.
If the query word of user's input is mobile phone, it is electronics industry to identify the industry belonging to it.
Assuming that in electronics industry, target Relationship is parts, making, sale.
The product chain object database of electronics industry is extracted, as shown in Figure 3 C, in the product chain number of objects of the electronics industry
According in storehouse, the industry object (i.e. mobile phone) matched with query word (i.e. mobile phone) is inquired about.
It is that product object is traveled through with the sector object (i.e. mobile phone).
Relationship between mobile phone and first factory, second factory meets target Relationship to make, extraction first factory,
Second factory.
Relationship between mobile phone and the third shop is sale, meets target Relationship, extracts the third shop.
Relationship between mobile phone and screen, camera, circuit board etc. is parts, meets target Relationship, carries
Take screen, camera, circuit board etc..
Mobile phone does not have other connected Relationships, and this node traverses finishes.
Due to first factory, second factory, the third shop, camera, circuit board etc. and do not have other connected Relationships, because
This, these nodes, which also travel through, to be finished.
Continue to travel through using screen as new product object.
Relationship between screen and fourth factory meets target Relationship, extraction fourth factory to make.
Relationship between mobile phone and display screen and touch-screen is parts, meets target Relationship, extraction display
Screen and touch-screen.
Screen does not have other connected Relationships, and this node traverses finishes.
Continue to travel through using display screen as product object.
Due to the parts that display screen is TV, target Relationship is not met, does not extract TV.
Display screen does not have other connected Relationships, and this node traverses finishes.
So far, all node traverses finish.
With Relationship series connection mobile phone and first factory, second factory, the third shop, screen, camera, circuit board etc., with industry
Relation series connection fourth factory, screen and display screen and touch-screen, obtain product chain object:
Mobile phone
【Make】First factory
Second factory
【Sale】Third shop
【Parts】Screen
【Make】Fourth factory
【Parts】Display screen
Touch-screen
Camera
Circuit board
……
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group
Close, but those skilled in the art should know, the embodiment of the present application is not limited by described sequence of movement, because according to
According to the embodiment of the present application, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and involved action not necessarily the application is implemented
Necessary to example.
Reference picture 5, a kind of structured flowchart for establishing device embodiment of product chain object database of the application is shown,
Following module can specifically be included:
Product object acquisition module 501, for obtaining product object from info web;
Affiliated partner acquisition module 502, for obtaining the association related to the product object in the info web
Object;
Object industry identification module 503, for identifying the industry belonging to the product object;
Relationship establishes module 504, for according to the industry establish the product object and the affiliated partner it
Between Relationship;
Product chain object database memory module 505, for using the product object, the affiliated partner as industry pair
As being stored with the Relationship into the product chain object database of the industry.
In one embodiment of the application, the product object acquisition module 501 can include following submodule:
Network address extracting sub-module, for extracting default network address;
Info web captures submodule, for capturing info web corresponding to the network address;
Website identifies submodule, for identifying the website belonging to the info web;
Product object extracting sub-module, for extracting product according to first position of the website in the info web
Object.
In one embodiment of the application, the affiliated partner acquisition module 502 can include following submodule:
Affiliated partner extracting sub-module, for according to the website in the info web the second place extraction and institute
State the affiliated partner of product object association.
In another embodiment of the application, the affiliated partner acquisition module 502 can include following submodule:
Object extraction submodule is produced, for extracting default production object;
Affiliated partner set submodule, for it is described production object produce the product object when, by it is described production pair
As being arranged to affiliated partner.
In the specific implementation, the Relationship includes product form relation and/or production relation.
In one embodiment of the application, industry in the industry is recorded in the product chain object database of the industry
Relationship between object and industry object;
The product chain object database memory module 505 can include following submodule:
Product object searches submodule, in the industry object that is recorded in the product chain object database of the industry
Search the product object;
Product object record sub module, for when not finding the product object, in the product chain pair of the industry
The product object is recorded in image data storehouse;
Affiliated partner searches submodule, in the industry object that is recorded in the product chain object database of the industry
Search the affiliated partner;
First connection submodule, for when finding the affiliated partner, the product to be connected with the Relationship
Object and the affiliated partner;
Affiliated partner record sub module, for when not finding the affiliated partner, in the product chain pair of the industry
The affiliated partner is recorded in image data storehouse;
Second connection submodule, for connecting the product object and the affiliated partner with the Relationship.
In another embodiment of the application, the product chain object database memory module 505 can also be included such as
Lower submodule:
Ignore submodule, for when finding the product object, ignore the product object, the affiliated partner with
The Relationship.
In another embodiment of the application, the product chain object database memory module 505 can also be included such as
Lower submodule:
Object normalizing submodule, for the product object and the affiliated partner to be normalized.
Reference picture 6, a kind of structured flowchart of the inquiry unit embodiment of product chain object database of the application is shown,
The product chain object database is stored with industry object and Relationship, and the industry object includes product object and associated pair
As the Relationship is the relation between the product object and the affiliated partner established according to industry;Specifically can be with
Including following module:
Inquiry request receiving module 601, for receiving the inquiry request of client transmission, have in the inquiry request and look into
Ask word;
Query word industry identification module 602, for identifying the industry belonging to the query word;
Industry object matching module 603, for the inquiry in the product chain object database of the industry and the inquiry
The industry object of word matching;
Product chain object database spider module 604, in the product chain object database of the industry with described
Industry object is basic point, inquires about the other industry objects being connected with Relationship step by step, obtains product chain object;
Product chain object returns to module 605, for the product chain object to be returned into the client.
In the specific implementation, the Relationship includes product form relation and/or production relation.
In one embodiment of the application, the product chain object database spider module 604 can include following son
Module:
First product object sets submodule, for the industry object to be arranged into product object;
Target Relationship searches submodule, for searching default target Relationship in the industry;
Target industry relationship match submodule, for judge product object connection Relationship whether with the mesh
Mark Relationship matching;If so, then affiliated partner extracting sub-module, if it is not, then performing object connection submodule;
Affiliated partner extracting sub-module, for extracting the affiliated partner of the Relationship connection;
Second product object sets submodule, for the affiliated partner to be arranged into new product object, returns and calls
Target industry relationship match submodule;
Object connects submodule, for the product object and affiliated partner arrived with the Relationship Connection inquiring, generation
Product chain object.
In one embodiment of the application, there is the first geographical position in the inquiry request;
The product chain object, which returns to module 605, can include following submodule:
First production object extraction submodule, for when the Relationship is production relation, extracting the row
The production object of industry object characterization;
Position enquiring submodule in ground, for inquiring about the second geographical position of the production object;
Distance value sorting sub-module, for according to the distance between first geographical position and second geographical position
Value is ranked up to the production object;
Sequence returns to submodule, for the product chain object after sequence to be returned into the client.
In one embodiment of the application, there is total production cost in the inquiry request;
The product chain object, which returns to module 605, can include following submodule:
Second production object extraction submodule, for when the Relationship is production relation, extracting the row
The production object of industry object characterization;
Sub- cost inquiry submodule is produced, for inquiring about the sub- cost of production of the production object;
Target produces Object Selection submodule, for selecting the sub- cost sum of production to be less than from the production object
Or produce object equal to the target of the total production cost;
Target production object returns to submodule, described in the product chain object that object is produced including the target is returned
Client.
In one embodiment of the application, the device can also include following module:
Query word normalizing module, for the query word to be normalized.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
What the embodiment of the present invention additionally provided a kind of product chain object database establishes system, the product chain object database
Establish system and can include:
One or more processors;
Memory;With
One or more modules, one or more modules are stored in memory and are configured to by one or more
Device is managed to perform, wherein, one or more modules have following function:
Product object is obtained from info web;
The affiliated partner related to the product object is obtained from info web;
Identify the industry belonging to the product object;
The Relationship established according to the industry between the product object and the affiliated partner;
Using the product object, the affiliated partner as industry object, stored with the Relationship to the industry
Product chain object database in.
Alternatively, one or more modules can have following function:
Extract default network address;
Capture info web corresponding to the network address;
Identify the website belonging to the info web;
Product object is extracted according to first position of the website in the info web.
Alternatively, one or more modules can have following function:
The association pair associated according to second place extraction of the website in the info web with the product object
As.
Alternatively, one or more modules can have following function:
Extract default production object;
When the production object produces the product object, the production object is arranged to affiliated partner.
Alternatively, the Relationship includes product form relation and/or production relation.
Alternatively, recorded in the product chain object database of the industry in the industry industry object and industry object it
Between Relationship;
One or more modules can have following function:
The product object is searched in the industry object recorded in the product chain object database of the industry;
When not finding the product object, the product pair is recorded in the product chain object database of the industry
As;
The affiliated partner is searched in the industry object recorded in the product chain object database of the industry;
When finding the affiliated partner, the product object and the affiliated partner are connected with the Relationship;
When not finding the affiliated partner, the association pair is recorded in the product chain object database of the industry
As;
The product object and the affiliated partner are connected with the Relationship.
Alternatively, one or more modules can have following function:
When finding the product object, ignore the product object, the affiliated partner and the Relationship.
Alternatively, one or more modules can have following function:
The product object and the affiliated partner are normalized.
The embodiment of the present invention additionally provides a kind of inquiry system of product chain object database, the product chain object data
Stock contains industry object and Relationship, and the industry object includes product object and affiliated partner, and the Relationship is
Relation between the product object and the affiliated partner established according to industry;The foundation system of the product chain object database
System can include:
One or more processors;
Memory;With
One or more modules, one or more modules are stored in memory and are configured to by one or more
Device is managed to perform, wherein, one or more modules have following function:
The inquiry request that client is sent is received, there is query word in the inquiry request;
Identify the industry belonging to the query word;
The industry object matched with the query word is inquired about in the product chain object database of the industry;
Using the industry object as basic point in the product chain object database of the industry, inquire about step by step with Relationship
Connected other industry objects, obtain product chain object;
The product chain object is returned into the client.
Alternatively, the Relationship includes product form relation and/or production relation.
Alternatively, one or more modules can have following function:
The industry object is arranged to product object;
Search default target Relationship in the industry;
Judge product object connection Relationship whether with the target industry relationship match;
If so, then extract the affiliated partner of the Relationship connection;
The affiliated partner is arranged to new product object, returns to perform and described judge the product object and associate pair
As connection Relationship whether with the target industry relationship match the step of;
If it is not, the product object and affiliated partner that are then arrived with the Relationship Connection inquiring, generate product chain object.
Alternatively, there is the first geographical position in the inquiry request;One or more modules can have following work(
Energy:
When the Relationship is production relation, the production object of the industry object characterization is extracted;
Inquire about the second geographical position of the production object;
The production object is carried out according to the distance between first geographical position and second geographical position value
Sequence;
Product chain object after sequence is returned into the client.
Alternatively, there is total production cost in the inquiry request;One or more modules can have following function:
When the Relationship is production relation, the production object of the industry object characterization is extracted;
Inquire about the sub- cost of production of the production object;
The sub- cost sum of production is selected to be less than or equal to the target of the total production cost from the production object
Produce object;
Product chain object including target production object is returned into the client.
Alternatively, one or more modules can have following function:
The query word is normalized.
Fig. 7 is a kind of server architecture schematic diagram that the embodiment of the present application provides.The server 700 can be because of configuration or performance
It is different and produce bigger difference, one or more central processing units (central processing can be included
Units, CPU) 722 (for example, one or more processors) and memory 732, one or more storages apply journey
The storage medium 730 of sequence 742 or data 744 (such as one or more mass memory units).Wherein, the He of memory 732
Storage medium 730 can be of short duration storage or lasting storage.Be stored in storage medium 730 program can include one or
More than one module (diagram does not mark), each module can include operating the series of instructions in server.Further
Ground, central processing unit 722 could be arranged to communicate with storage medium 730, be performed on server 700 in storage medium 730
Series of instructions operates.
Server 700 can also include one or more power supplys 726, one or more wired or wireless networks
Interface 750, one or more input/output interfaces 758, one or more keyboards 756, and/or, one or one
Above operating system 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
On the one hand, central processing unit 722 can perform the instruction of following operation on server 700:
Product object is obtained from info web;
The affiliated partner related to the product object is obtained in the info web;
Identify the industry belonging to the product object;
The Relationship established according to the industry between the product object and the affiliated partner;
Using the product object, the affiliated partner as industry object, stored with the Relationship to the industry
Product chain object database in.
Alternatively, one or more modules can have following function:
Extract default network address;
Capture info web corresponding to the network address;
Identify the website belonging to the info web;
Product object is extracted according to first position of the website in the info web.
Alternatively, one or more modules can have following function:
The association pair associated according to second place extraction of the website in the info web with the product object
As.
Alternatively, one or more modules can have following function:
Extract default production object;
When the production object produces the product object, the production object is arranged to affiliated partner.
Alternatively, the Relationship includes product form relation and/or production relation.
Alternatively, recorded in the product chain object database of the industry in the industry industry object and industry object it
Between Relationship;
One or more modules can have following function:
The product object is searched in the industry object recorded in the product chain object database of the industry;
When not finding the product object, the product pair is recorded in the product chain object database of the industry
As;
The affiliated partner is searched in the industry object recorded in the product chain object database of the industry;
When finding the affiliated partner, the product object and the affiliated partner are connected with the Relationship;
When not finding the affiliated partner, the association pair is recorded in the product chain object database of the industry
As;
The product object and the affiliated partner are connected with the Relationship.
Alternatively, one or more modules can have following function:
When finding the product object, ignore the product object, the affiliated partner and the Relationship.
Alternatively, one or more modules can have following function:
The product object and the affiliated partner are normalized.
On the other hand, the product chain object database is stored with industry object and Relationship, the industry object bag
Include product object and affiliated partner, the Relationship be according to the product object that industry is established and the affiliated partner it
Between relation;Central processing unit 722 can perform the instruction of following operation on server 700:
The inquiry request that client is sent is received, there is query word in the inquiry request;
Identify the industry belonging to the query word;
The industry object matched with the query word is inquired about in the product chain object database of the industry;
Using the industry object as basic point in the product chain object database of the industry, inquire about step by step with Relationship
Connected other industry objects, obtain product chain object;
The product chain object is returned into the client.
Alternatively, recorded in the product chain object database of the industry in the industry industry object and industry object it
Between Relationship, the Relationship includes product form relation and/or production relation.
Alternatively, one or more modules can have following function:
The industry object is arranged to product object;
Search default target Relationship in the industry;
Judge product object connection Relationship whether with the target industry relationship match;
If so, then extract the affiliated partner of the Relationship connection;
The affiliated partner is arranged to new product object, returns to perform and described judge the product object and associate pair
As connection Relationship whether with the target industry relationship match the step of;
If it is not, the product object and affiliated partner that are then arrived with the Relationship Connection inquiring, generate product chain object.
Alternatively, there is the first geographical position in the inquiry request;One or more modules can have following work(
Energy:
When the Relationship is production relation, the production object of the industry object characterization is extracted;
Inquire about the second geographical position of the production object;
The production object is carried out according to the distance between first geographical position and second geographical position value
Sequence;
Product chain object after sequence is returned into the client.
Alternatively, there is total production cost in the inquiry request;One or more modules can have following function:
When the Relationship is production relation, the production object of the industry object characterization is extracted;
Inquire about the sub- cost of production of the production object;
The sub- cost sum of production is selected to be less than or equal to the target of the total production cost from the production object
Produce object;
Product chain object including target production object is returned into the client.
Alternatively, one or more modules can have following function:
The query word is normalized.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present application can be provided as method, apparatus or calculate
Machine program product object.Therefore, the embodiment of the present application can use complete hardware embodiment, complete software embodiment or combine soft
The form of the embodiment of part and hardware aspect.Moreover, the embodiment of the present application can use wherein includes calculating in one or more
The computer-usable storage medium of machine usable program code (includes but is not limited to magnetic disk storage, CD-ROM, optical memory
Deng) on the form of computer program product object implemented.
In a typical configuration, the computer equipment includes one or more processors (CPU), input/output
Interface, network interface and internal memory.Internal memory may include the volatile memory in computer-readable medium, random access memory
The form such as device (RAM) and/or Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is to calculate
The example of machine computer-readable recording medium.Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be with
Realize that information stores by any method or technique.Information can be computer-readable instruction, data structure, the module of program or
Other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM
(SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only storage
(ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc are read-only
Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk storage or
Other magnetic storage apparatus or any other non-transmission medium, the information that can be accessed by a computing device available for storage.According to
Herein defines, and computer-readable medium does not include the computer readable media (transitory media) of non-standing, such as
The data-signal and carrier wave of modulation.
The embodiment of the present application is with reference to according to the method for the embodiment of the present application, terminal device (system) and computer program
The flow chart and/or block diagram of product object describes.It should be understood that can be by computer program instructions implementation process figure and/or side
Each flow and/or square frame in block diagram and the flow in flow chart and/or block diagram and/or the combination of square frame.It can provide
These computer program instructions are whole to the processing of all-purpose computer, special-purpose computer, Embedded Processor or other programmable datas
The processor of end equipment is to produce a machine so that passes through the processing of computer or other programmable data processing terminal equipments
The instruction that device performs is produced for realizing in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple sides
The device for the function of being specified in frame.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory produces bag
The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that
The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present application, those skilled in the art once know base
This creative concept, then other change and modification can be made to these embodiments.So appended claims are intended to be construed to
Including preferred embodiment and fall into having altered and changing for the embodiment of the present application scope.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by
One entity word or operation make a distinction with another entity word or operation, and not necessarily require or imply these entity words
Or any this actual relation or order be present between operation.Moreover, term " comprising ", "comprising" or its any other
Variant is intended to including for nonexcludability, so that process, method, article or terminal device including a series of elements
Not only include those key elements, but also the other element including being not expressly set out, or also include for this process, side
Method, article or the intrinsic key element of terminal device.In the absence of more restrictions, limited by sentence "including a ..."
Fixed key element, it is not excluded that in addition identical in the process including the key element, method, article or terminal device also be present
Key element.
Method for building up to a kind of product chain object database provided herein, a kind of product chain object data above
Storehouse establish device, a kind of product chain object database establishes system, a kind of querying method of product chain object database, one
The querying method device of kind product chain object database and a kind of querying method system of product chain object database, have been carried out in detail
Thin to introduce, specific case used herein is set forth to the principle and embodiment of the application, and above example is said
It is bright to be only intended to help and understand the present processes and its core concept;Meanwhile for those of ordinary skill in the art, foundation
The thought of the application, there will be changes in specific embodiments and applications, in summary, this specification content is not
It is interpreted as the limitation to the application.
Claims (30)
1. a kind of product chain object database establishes system, it is characterised in that the system includes:
One or more processors;
Memory;With
One or more modules, one or more of modules be stored in the memory and be configured to by one or
Multiple computing devices, one or more of modules have following function:
Product object is obtained from info web;
The affiliated partner related to the product object is obtained in the info web;
Identify the industry belonging to the product object;
The Relationship established according to the industry between the product object and the affiliated partner;
Using the product object, the affiliated partner as industry object, stored with the Relationship to the production of the industry
In product chain object database.
2. a kind of inquiry system of product chain object database, it is characterised in that the product chain object database is stored with row
Industry object and Relationship, the industry object include product object and affiliated partner, and the Relationship is to be built according to industry
Relation between the vertical product object and the affiliated partner;The system includes:
One or more processors;
Memory;With
One or more modules, one or more of modules be stored in the memory and be configured to by one or
Multiple computing devices, one or more of modules have following function:
The inquiry request that client is sent is received, there is query word in the inquiry request;
Identify the industry belonging to the query word;
The industry object matched with the query word is inquired about in the product chain object database of the industry;
Using the industry object as basic point in the product chain object database of the industry, inquire about be connected with Relationship step by step
Other industry objects, obtain product chain object;
The product chain object is returned into the client.
A kind of 3. method for building up of product chain object database, it is characterised in that including:
Product object is obtained from info web;
The affiliated partner related to the product object is obtained in the info web;
Identify the industry belonging to the product object;
The Relationship established according to the industry between the product object and the affiliated partner;
Using the product object, the affiliated partner as industry object, stored with the Relationship to the production of the industry
In product chain object database.
4. according to the method for claim 3, it is characterised in that described the step of product object is obtained from info web wraps
Include:
Extract default network address;
Capture info web corresponding to the network address;
Identify the website belonging to the info web;
Product object is extracted according to first position of the website in the info web.
5. according to the method for claim 4, it is characterised in that described to be obtained and the product pair in the info web
As the step of related affiliated partner includes:
The affiliated partner associated according to second place extraction of the website in the info web with the product object.
6. according to the method for claim 3, it is characterised in that described to obtain the affiliated partner related to the product object
The step of include:
Extract default production object;
When the production object produces the product object, the production object is arranged to affiliated partner.
7. according to the method described in claim 3 or 4 or 5 or 6, it is characterised in that the Relationship closes including product form
System and/or production relation.
8. according to the method described in claim 3 or 4 or 5 or 6, it is characterised in that the product chain object database of the industry
The middle Relationship recorded in the industry between industry object and industry object;
It is described using the product object, the affiliated partner as industry object, stored with the Relationship to the industry
Product chain object database in step include:
The product object is searched in the industry object recorded in the product chain object database of the industry;
When not finding the product object, the product object is recorded in the product chain object database of the industry;
The affiliated partner is searched in the industry object recorded in the product chain object database of the industry;
When finding the affiliated partner, the product object and the affiliated partner are connected with the Relationship;
When not finding the affiliated partner, the affiliated partner is recorded in the product chain object database of the industry;
The product object and the affiliated partner are connected with the Relationship.
9. according to the method for claim 8, it is characterised in that it is described using the product object, the affiliated partner as
Industry object, being stored with the Relationship to the step in the product chain object database of the industry also includes:
When finding the product object, ignore the product object, the affiliated partner and the Relationship.
10. according to the method for claim 8, it is characterised in that it is described using the product object, the affiliated partner as
Industry object, being stored with the Relationship to the step in the product chain object database of the industry also includes:
The product object and the affiliated partner are normalized.
11. a kind of querying method of product chain object database, it is characterised in that the product chain object database is stored with row
Industry object and Relationship, the industry object include product object and affiliated partner, and the Relationship is to be built according to industry
Relation between the vertical product object and the affiliated partner;
Described method includes:
The inquiry request that client is sent is received, there is query word in the inquiry request;
Identify the industry belonging to the query word;
The industry object matched with the query word is inquired about in the product chain object database of the industry;
Using the industry object as basic point in the product chain object database of the industry, inquire about be connected with Relationship step by step
Other industry objects, obtain product chain object;
The product chain object is returned into the client.
12. according to the method for claim 11, it is characterised in that the Relationship include product form relation and/or
Production relation.
13. the method according to claim 11 or 12, it is characterised in that the product chain object data in the industry
Using the industry object as basic point in storehouse, the other industry objects being connected with Relationship are inquired about step by step, obtain product chain object
The step of include:
The industry object is arranged to product object;
Search default target Relationship in the industry;
Judge product object connection Relationship whether with the target industry relationship match;
If so, then extract the affiliated partner of the Relationship connection;
The affiliated partner is arranged to new product object, returns and performs the judgement product object and affiliated partner company
The step of whether Relationship connect is with the target industry relationship match;
If it is not, the product object and affiliated partner that are then arrived with the Relationship Connection inquiring, generate product chain object.
14. according to the method described in claim 11 or 12 or 13, it is characterised in that have the first geography in the inquiry request
Position;
The described the step of product chain object is returned into the client, includes:
When the Relationship is production relation, the production object of the industry object characterization is extracted;
Inquire about the second geographical position of the production object;
The production object is ranked up according to first geographical position and the distance between second geographical position value;
Product chain object after sequence is returned into the client.
15. according to the method described in claim 11 or 12 or 13, it is characterised in that have production assembly in the inquiry request
This;
The described the step of product chain object is returned into the client, includes:
When the Relationship is production relation, the production object of the industry object characterization is extracted;
Inquire about the sub- cost of production of the production object;
The target for selecting the sub- cost sum of production to be less than or equal to the total production cost from the production object produces
Object;
Product chain object including target production object is returned into the client.
16. according to the method described in claim 11 or 12 or 13, it is characterised in that belonging to the identification query word
Before the step of industry, methods described also includes:
The query word is normalized.
17. a kind of product chain object database establishes device, it is characterised in that including:
Product object acquisition module, for obtaining product object from info web;
Affiliated partner acquisition module, for obtaining the affiliated partner related to the product object in the info web;
Object industry identification module, for identifying the industry belonging to the product object;
Relationship establishes module, for the industry established according to the industry between the product object and the affiliated partner
Relation;
Product chain object database memory module, for using the product object, the affiliated partner as industry object, with institute
Relationship is stated to store into the product chain object database of the industry.
18. device according to claim 17, it is characterised in that the product object acquisition module includes:
Network address extracting sub-module, for extracting default network address;
Info web captures submodule, for capturing info web corresponding to the network address;
Website identifies submodule, for identifying the website belonging to the info web;
Product object extracting sub-module, for extracting product pair according to first position of the website in the info web
As.
19. device according to claim 18, it is characterised in that the affiliated partner acquisition module includes:
Affiliated partner extracting sub-module, for being extracted and the production according to the second place of the website in the info web
The affiliated partner of product object association.
20. device according to claim 17, it is characterised in that the affiliated partner acquisition module includes:
Object extraction submodule is produced, for extracting default production object;
Affiliated partner sets submodule, for when the production object produces the product object, the production object to be set
It is set to affiliated partner.
21. according to the device described in claim 7 or 18 or 19 or 20, it is characterised in that the Relationship includes product group
Into relation and/or production relation.
22. according to the device described in claim 17 or 18 or 19 or 20, it is characterised in that the product chain number of objects of the industry
According to the Relationship recorded in storehouse in the industry between industry object and industry object;
The product chain object database memory module includes:
Product object searches submodule, for being searched in the industry object that is recorded in the product chain object database of the industry
The product object;
Product object record sub module, for when not finding the product object, in the product chain number of objects of the industry
According to recording the product object in storehouse;
Affiliated partner searches submodule, for being searched in the industry object that is recorded in the product chain object database of the industry
The affiliated partner;
First connection submodule, for when finding the affiliated partner, the product object to be connected with the Relationship
With the affiliated partner;
Affiliated partner record sub module, for when not finding the affiliated partner, in the product chain number of objects of the industry
According to recording the affiliated partner in storehouse;
Second connection submodule, for connecting the product object and the affiliated partner with the Relationship.
23. device according to claim 22, it is characterised in that the product chain object database memory module is also wrapped
Include:
Ignore submodule, for when finding the product object, ignore the product object, the affiliated partner with it is described
Relationship.
24. device according to claim 22, it is characterised in that the product chain object database memory module is also wrapped
Include:
Object normalizing submodule, for the product object and the affiliated partner to be normalized.
25. a kind of inquiry unit of product chain object database, it is characterised in that the product chain object database is stored with row
Industry object and Relationship, the industry object include product object and affiliated partner, and the Relationship is according to the row
Relation between the product object and the affiliated partner that industry is established;
Described device includes:
Inquiry request receiving module, for receiving the inquiry request of client transmission, there is query word in the inquiry request;
Query word industry identification module, for identifying the industry belonging to the query word;
Industry object matching module, for inquiring about what is matched with the query word in the product chain object database of the industry
Industry object;
Product chain object database spider module, in the product chain object database of the industry with the industry object
For basic point, the other industry objects being connected with Relationship are inquired about step by step, obtain product chain object;
Product chain object returns to module, for the product chain object to be returned into the client.
26. device according to claim 25, it is characterised in that the Relationship include product form relation and/or
Production relation.
27. the device according to claim 25 or 26, it is characterised in that the product chain object database spider module bag
Include:
First product object sets submodule, for the industry object to be arranged into product object;
Target Relationship searches submodule, for searching default target Relationship in the industry;
Target industry relationship match submodule, for judge product object connection Relationship whether with the target line
Industry relationship match;If so, then affiliated partner extracting sub-module, if it is not, then performing object connection submodule;
Affiliated partner extracting sub-module, for extracting the affiliated partner of the Relationship connection;
Second product object sets submodule, for the affiliated partner to be arranged into new product object, returns to invocation target
Relationship matched sub-block;
Object connects submodule, for the product object and affiliated partner arrived with the Relationship Connection inquiring, generates product
Chain object.
28. according to the device described in claim 25 or 26 or 27, it is characterised in that have the first geography in the inquiry request
Position;
The product chain object, which returns to module, to be included:
First production object extraction submodule, for when the Relationship is production relation, extracting the industry pair
As the production object of sign;
Position enquiring submodule in ground, for inquiring about the second geographical position of the production object;
Distance value sorting sub-module, for according to the distance between first geographical position and second geographical position value pair
The production object is ranked up;
Sequence returns to submodule, for the product chain object after sequence to be returned into the client.
29. according to the device described in claim 25 or 26 or 27, it is characterised in that have production assembly in the inquiry request
This;
The product chain object, which returns to module, to be included:
Second production object extraction submodule, for when the Relationship is production relation, extracting the industry pair
As the production object of sign;
Sub- cost inquiry submodule is produced, for inquiring about the sub- cost of production of the production object;
Target produces Object Selection submodule, for selecting the sub- cost sum of production to be less than from the production object or waiting
Object is produced in the target of the total production cost;
Target production object returns to submodule, for the product chain object that object is produced including the target to be returned into the client
End.
30. according to the device described in claim 25 or 26 or 27, it is characterised in that also include:
Query word normalizing module, for the query word to be normalized.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610548269.2A CN107608995A (en) | 2016-07-12 | 2016-07-12 | A kind of foundation of product chain object database, querying method, device and system |
TW106118548A TWI797081B (en) | 2016-07-12 | 2017-06-05 | Establishment and query method, device and system of product chain object database |
PCT/CN2017/091636 WO2018010569A1 (en) | 2016-07-12 | 2017-07-04 | Product chain object database establishment, and query methods, devices and systems therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
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 |
---|---|
CN107608995A true CN107608995A (en) | 2018-01-19 |
Family
ID=60952797
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610548269.2A Pending CN107608995A (en) | 2016-07-12 | 2016-07-12 | A kind of foundation of product chain object database, querying method, device and system |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN107608995A (en) |
TW (1) | TWI797081B (en) |
WO (1) | WO2018010569A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110209914A (en) * | 2019-06-13 | 2019-09-06 | 腾讯科技(成都)有限公司 | A kind of information query method and relevant apparatus |
CN110334939A (en) * | 2019-07-01 | 2019-10-15 | 济南大学 | Door and window customizes material information quickly configuration method, system, equipment and medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112435051B (en) * | 2020-11-13 | 2023-11-28 | 海创汇科技创业发展股份有限公司 | Acquisition method, electronic equipment, computer readable storage medium and terminal of associated enterprises |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101281525A (en) * | 2007-11-23 | 2008-10-08 | 北京九城网络软件有限公司 | System and method for searching based on knowledge base on internet |
CN102402535A (en) * | 2010-09-13 | 2012-04-04 | 阿里巴巴集团控股有限公司 | Method and system for constructing product library |
US20140351261A1 (en) * | 2013-05-24 | 2014-11-27 | Sap Ag | Representing enterprise data in a knowledge graph |
US20150324464A1 (en) * | 2014-05-06 | 2015-11-12 | Baidu Online Network Technology (Beijing) Co., Ltd | Searching method and apparatus |
CN105138680A (en) * | 2015-09-14 | 2015-12-09 | 郑州悉知信息科技股份有限公司 | Keyword classification method and device and product 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 |
-
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 active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101281525A (en) * | 2007-11-23 | 2008-10-08 | 北京九城网络软件有限公司 | System and method for searching based on knowledge base on internet |
CN102402535A (en) * | 2010-09-13 | 2012-04-04 | 阿里巴巴集团控股有限公司 | Method and system for constructing product library |
US20140351261A1 (en) * | 2013-05-24 | 2014-11-27 | Sap Ag | Representing enterprise data in a knowledge graph |
US20150324464A1 (en) * | 2014-05-06 | 2015-11-12 | Baidu Online Network Technology (Beijing) Co., Ltd | Searching method and apparatus |
CN105138680A (en) * | 2015-09-14 | 2015-12-09 | 郑州悉知信息科技股份有限公司 | Keyword classification method and device and product 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 (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110209914A (en) * | 2019-06-13 | 2019-09-06 | 腾讯科技(成都)有限公司 | A kind of information query method and relevant apparatus |
CN110209914B (en) * | 2019-06-13 | 2024-04-12 | 腾讯科技(成都)有限公司 | Information query method and related device |
CN110334939A (en) * | 2019-07-01 | 2019-10-15 | 济南大学 | Door and window customizes material information quickly configuration method, system, equipment and medium |
CN110334939B (en) * | 2019-07-01 | 2022-03-15 | 济南大学 | Door and window customized material information rapid configuration method, system, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
WO2018010569A1 (en) | 2018-01-18 |
TW201804344A (en) | 2018-02-01 |
TWI797081B (en) | 2023-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10572565B2 (en) | User behavior models based on source domain | |
KR102375224B1 (en) | Search based on combining user relationship data | |
KR101457284B1 (en) | Methods and apparatuses for facilitating content-based image retrieval | |
CN102117321B (en) | The automatic discovery that subject areas is discussed is assembled and tissue | |
US20200226133A1 (en) | Knowledge map building system and method | |
US9805022B2 (en) | Generation of topic-based language models for an app search engine | |
CN105224554A (en) | Search word is recommended to carry out method, system, server and the intelligent terminal searched for | |
CN104123332A (en) | Search result display method and device | |
CN108230113A (en) | User's portrait generation method, device, equipment and readable storage medium storing program for executing | |
CN103177066B (en) | Analysis and expression interpersonal relationships | |
JP2015204105A (en) | Method and device for providing recommendation information | |
CN104462430A (en) | Relational database data processing method and device | |
CN103164423A (en) | Method and device for confirming browser inner core type rendering web pages | |
CN107608995A (en) | A kind of foundation of product chain object database, querying method, device and system | |
CN104765767B (en) | For the knowledge store system and its knowledge searching method of intelligence learning | |
JP2015537286A (en) | Method and apparatus for graphic code database update and retrieval | |
CN105159898A (en) | Searching method and searching device | |
CN102930016B (en) | A kind of method and apparatus for providing Search Results on mobile terminals | |
KR101621735B1 (en) | Recommended search word providing method and system | |
CN103678312B (en) | A kind of method and client for recommending network address | |
KR101761177B1 (en) | Method for mining important pattern of high rank k, apparatus performing the same and storage medium storing the same | |
CN108319606A (en) | The construction method and device of specialized database | |
KR101937987B1 (en) | Apparatus and method for matching user with similar preferences | |
KR102170535B1 (en) | Apparatus and method for searching based on user preference using sentiment analysis | |
CN105095404A (en) | Method and apparatus for processing and recommending webpage information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180119 |