A kind of dynamic multidimensional internet web page systemTechnical field the present invention relates to a kind of technology relevant with the internet, particularly a kind of can be dynamically to the Web page system of user's transmission and demonstration and webpage relevant information.
Background technology is present, the internet has become the part of people's daily life, rich knowledge has attracted a large amount of users on the internet, but specialty channel to some professional websites or portal website, because webpage normally shows with the form of two-dimensional textual, may not know the meaning of some word when the netizen reads these webpages or do not understand the implication of some word, such as: when common netizen reads the webpage of medical treatment ﹠ health knowledge in visit, have a lot of diseases, technical terms such as medicine are failed to understand, bother very much by search engine retrieving, also be difficult to find the answer of complete and accurate sometimes.
The method that also has at present some to solve accessed web page the problems referred to above, but still have following limitation:
1, the content of webpage is general fixing dead, when one piece of article of readers ' reading runs into difficulty, must turn over book at once or searches in search engine, very trouble.
2, some website by a small amount of keyword is carried out index, is clicked this keyword and just this keyword is submitted to general search engine when making webpage, retrieves.
3, some website is when the page shows, dynamically carries out relatedly with certain class article by keyword, but for professional website, its Practical significance is little.
Summary of the invention the purpose of this invention is to provide a kind of the problems referred to above and need not any specific software be installed in client of effectively overcoming, as long as the user opens webpage, just can demonstrate difficult knowledge point in this webpage, also can user oneself as required, dynamically submit difficult knowledge point to, explain back back page and the dynamic multidimensional internet web page system that shows by relevant rendering engine.
The present invention is achieved in that it is made of web page analysis engine, dynamic rendering engine, online dynamic expansion rendering engine three parts, the web page analysis engine is meant when making webpage or during web displaying, analyze by theme, title, keyword and text etc., find out by the core knowledge storehouse and find out the knowledge point in the text and it is carried out automatic indexing webpage; Dynamically rendering engine is meant webpage when showing, when user's mouse rested on the word that index comes out, system submitted this word to automatically and it is made an explanation, and finds out the various attributes of knowledge point and returning client, dynamically shows on the page; Online dynamic expansion rendering engine is meant the knowledge beyond the ABC point, this knowledge base can be added, revise by certain requirement by the netizen, after network manager's audit, come into force, as user during at browsing page, can select arbitrary word with mouse, the page ejects submit button automatically, and the back page as a result after the word after the submission will be explained by the expansion rendering engine also dynamically shows.
The web page analysis engine mainly comprises following main contents: when making webpage or web displaying, webpage is carried out theme, title, keyword, text etc. to be analyzed, find out body part, submit text to server, server serves as that participle is carried out to it in the basis with the controlled keyword in core knowledge storehouse, find out the word consistent, and use methods such as changing color, font, underscore to carry out index, give the user with prompting to some word with the core knowledge storehouse.
Dynamically rendering engine mainly comprises following content: user's mouse is placed on by above the speech of index the time, procedure script is submitted this word to the backstage rendering engine automatically, rendering engine is retrieved in the core knowledge storehouse, find out this word reasonable dismissal, and with the result with the form of link or directly the attribute of knowledge point is turned back on the page, dynamically pop-up window shows on the page, and the user can obtain as required and want the content seen.
Online dynamic expansion rendering engine mainly comprises following content: at first this expansion knowledge base adopts open architecture, allows the netizen dynamically to add, revise according to the requirement of system's defined, through coming into force after network manager's audit.Secondly, the user when browsing page, selected certain word, system ejects submit button automatically, the user clicks that system is submitted to the backstage rendering engine with this word when submitting to, by the backstage rendering engine to word explanation after back page again.If knowledge base can't explain that the user can file an application, and asks a question, the keeper answers by webmaster, and this method can make system many more with content more, and knowledge is also just comprehensive more.
Before setting up this system, at first to need set up the knowledge base or the expansion knowledge base of specialty at server end, knowledge base mainly comprises: the keyword of knowledge point, the attribute description of knowledge point or explanation.For guaranteeing the authority of knowledge, the expansion knowledge base needs the professional that the content that the user adds is voluntarily examined.
The present invention has and need not any specific software be installed in client, adding some JS codes on common webpage just can realize, as long as domestic consumer opens webpage, just can demonstrate the relevant knowledge point of article in this webpage, the user can be as required, click the attribute of correlated knowledge point or select vague vocabulary and be submitted on the server, the just explanation that can obtain being correlated with, advantage such as easy to use.
For ejecting dynamic window on the webpage, can adopt the AJAX technology to realize.
Description of drawings principle of compositionality block scheme of the present invention
The present invention will be further described with enforcement below in conjunction with accompanying drawing for embodiment.
As shown in drawings, the present invention is made of web page analysis engine, dynamic rendering engine, online dynamic expansion rendering engine three parts, and implementation step and principle of work thereof are as follows:
S0: at first set up knowledge base in database, adopt artificial mode logging data, class formation corresponding in the program is as follows:
KnowledgeCore=class//core knowledge storehouse
public
Function Select:integer; // search knowledge base, return ID number
Function Check:string; // coupling knowledge base, the return attribute value
private
ID:integer; //ID number uniquely tagged as knowledge
Name:string; The name of // keyword
Property1:string; //attribute 1
Property2:str ing; // attribute 2
……
PropertyN:string; // attribute n
End
S1: pre-service: check the page and its title, text, pattern etc. are analyzed that the sign according to the page provides extracts body matter, the JS code is as follows:
window.onload=function(){
MatchTags (" name ") //name is the zone that need find TAG
}
S2: whether produced keyword during webpage design, webpage will produce a sign in webpage when generating, and when webpage loads, judges the state of this sign.
S3:, then submit the content of text to server if the sign state among the S2 is not for producing key word.
S4: server carries out participle coupling to text, finds out to meet the key word that exists in the knowledge base and these key words are turned back to client in text.
S5: rewrite page cache, the key word on the webpage is identified, denotation approach comprises: revise methods such as font, modification color, increase underscore
S6: judge the behavior of mouse: comprise whether mouse is chosen certain vocabulary or do not rested on certain above the vocabulary that has indicated.
S7: if mouse is chosen certain vocabulary, then show a little button on webpage, whether the inquiry user submits to.
S8:, then the vocabulary of choosing is submitted to server end if the user presses this button.
S9: server is received this key word, carries out vector matching with the keyword of expanding in the knowledge base, if exist, then the property value with the knowledge point returns to the page.
S10: if mouse rests on above the vocabulary that has indicated, then submit key word to server, server carries out vector matching in the core knowledge storehouse, with the property value back page.
S11: pop-up window on the page, produce the link of property value or directly explanation results is shown, if the user is dissatisfied to the result of prompting, can also add some other operations, as submit that the search engine of specialty is retrieved to etc.
S12: user clicks on links, then enter next window, otherwise mouse removes, window is closed automatically.