CN103841121B - A kind of comment and interaction systems and method based on local file - Google Patents
A kind of comment and interaction systems and method based on local file Download PDFInfo
- Publication number
- CN103841121B CN103841121B CN201410126606.XA CN201410126606A CN103841121B CN 103841121 B CN103841121 B CN 103841121B CN 201410126606 A CN201410126606 A CN 201410126606A CN 103841121 B CN103841121 B CN 103841121B
- Authority
- CN
- China
- Prior art keywords
- user
- data
- client
- module
- file
- 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.)
- Active
Links
Abstract
A kind of comment and interaction systems and method based on local file, the system include two, client and server end part;The client part is deployed in user terminal, including:Data resolution module, client comment operation module, client user's information module, user client communication module, data combination module and user interface module;The server end includes:Server communication module, server end comment operation module, server-side user information module and DBM.The present invention has processed that file amount in the Internet is big and to produce speed fast and be difficult to find the problem of file related commentary well.
Description
Technical field
The present invention relates to a kind of be based on local file(Including document, picture, audio frequency, video, local webpage opened etc.)
Comment and interaction systems and method, it is adaptable to PC and mobile terminal device, belong to field of computer technology.
Background technology
With flourishing for information technology and the Internet, PC and mobile intelligent terminal user's rapid development.Intelligence
, more than 1,000,000,000, Chinese personal computer recoverable amount is up to 2.2 hundred million within 2009 for energy cellphone subscriber.At the same time, the resource on network
Also it is in explosive growth.Vast as the open sea various multimedia documents, both facilitated user search it is various needed for files, also allow use
" ocean " that comment of the family to specific file is buried in network is inner.
It was found that the probability distribution of user's browsing content is in long-tail feature.I.e. small part hot content is clear by many users
Look at, with the reduction of content popular degree, the pageview of user is also reduced.But still remain certain pageview.This
User is illustrated because interest, field and other subjective, differences of objective condition, the content for browsing also differs greatly.And for heat
The not high content of door degree(Such as highly professional technical paper content), the user for equally reading the content is difficult phase each other
Know, it is more difficult to find related review information, therefore effective interaction can not be formed.
The prevalence of social networkies(Such as microblogging, the types of facial makeup in Beijing operas and all kinds of forums), increased degree interactive between user.User can
By content interested is shared on the net, to be commented on and be formed interaction by good friend or other social network users.But
In this kind of network, the contact between user is mainly formed by good friend or acquaintance.Contact due to being not based on interest, obtains
To the often most popular content of sharing of wide-scale distribution, and the current file of concern of user(Due to the inadequate reason such as hot topic)
But there is the people of same interest it is difficult to find.
At the same time, the Web Community based on interest also constantly rises, and such as Semen Sojae Preparatum is online, and user can be according to book, film
Or music content is exchanged.Although the data type that this kind of Web Community collects is many and content coverage is very wide,
It is that, relative to substantial amounts of existing content and the rapid new content for producing, the properties collection handled by this kind of community still has very much
Limit.And user needs the content according to interested to oneself(The book such as read, the film seen)Actively find phase in community
The page of pass can just be commented on and interactive.For the local file of oneself current concern, if the content of non-hot discussion(Example
Such as the documents and materials in field, technical paper), user is still difficult to find other users interested in the content, Yi Jixiang
The review information of pass.
The content of the invention
The technology of the present invention solve problem:Overcome the deficiencies in the prior art, there is provided a kind of comment based on local file and mutually
Dynamic system and method, allow user using described system open local file when, it is possible to it is convenient and swift in system form
The other users information for equally liking this document is seen on ground, and these users are to the comment of this document and can carry out efficiently
Interaction, has processed that file amount in the Internet is big and to produce speed fast and be difficult to find the problem of file related commentary well.
The technology of the present invention solution:A kind of comment and interaction systems based on local file, the system include client
End and two parts of server end;The client part is deployed in user terminal, including:Data resolution module, client are commented
By operation module, client user's information module, user client communication module, data combination module and user interface module;
The server end includes:Server communication module, server end comment operation module, server-side user information module sum
According to library module;
In client:
Data resolution module:According to the local file binary sequence that user opens, the file of the binary sequence is calculated
Identifier the extension name type resolution file according to file, draw the file data after parsing, and the output data are transmitted
Subsequent treatment is carried out to matched moulds block to data;File data after the parsing includes file identifier and file content data;
The file identifier refers to the feature string of binary sequence, meets following feature:Identical binary sequence tool
The binary sequence for have identical file identifier, differing has different file identifiers;
User client communication module:The instruction that client comments on operation module is received, is sent to server end communication module and is grasped
Instruct and data, the returned data of the reception server end communication module, and result data is sent back into client comment operation
Module;The instruction of client user's information module is received, operational order and data is sent to server end communication module, receive clothes
The returned data of business device end communication module, and result data is sent back into client user's information module;
Client comments on operation module:Increase that receiving data composite module is recorded to comment data, delete, change, looking into
Operational order is ask, teledata record operation is carried out to user client communication module according to instructing and commenting on content transmission;Connect simultaneously
When receiving the returned data of user client communication module, client data composite module is transferred data to;
Client user's information module:When receiving the User logs in instruction of client data composite module, by data transfer
Give user client communication module;When receiving the User logs in result data of user client communication module simultaneously, User logs in letter is preserved
Cease and transfer data to client data composite module;
Data combination module:Preserve current file content-data, file identifier, user profile, comment data;Response is used
The comment operational order of family interface module and user's exchange instruction, will be comprehensive according to the file current file offset that user browses
Good data are transferred to user interface and show;File is transferred to into client data parsing module when new file is opened, and is obtained
Take the file data that the parsing of client data parsing module is obtained;Send comment operational order operation module is commented on to client,
And receive the returning result that client comments on operation module;Send user operation commands and give client user's information module, and connect
Receive the returning result of client user's information module;
User interface module:The open file operation of receive user is instructed, user profile operational order and comment are grasped
Instruct, instruction is transferred to into the execution of client data composite module, and by the returning result exhibition of client data composite module
Show to terminal use;
In server end:
Server communication module:The comment operational order of user client communication module is received, to server end comment operation mould
Block sends operational order and data, and the returned data of operation module is commented at the reception server end, and result data is sent back visitor
Family end communication module;The user profile instruction of user client communication module is received, is sent to server-side user information module and is operated
Instruction and data, the reception server user profile interrogate the returned data of module, and result data is sent back user client communication mould
Block;
Service end comments on operation module:The review information that response is obtained by server communication module is operated, and these are operated
Database operating instruction is converted to, and calls DBM to complete the response for operating, finally will comment list and mode of operation
Return to server communication module;
Service end subscriber information module:The user profile that response is obtained by server communication module is operated, and these are operated
Database operating instruction is converted to, and calls DBM to complete the response for operating, operating result is returned to into service finally
Device communication module;
DBM:The User logs in instruction of the reception server end subscriber information module and user name, user cipher, clothes
Business device client database module performs database authentication operation, and operating result is returned to server-side user information module;Receive
The incoming increase of server end comment operation module, deletion, modification, inquiry comment operational order, comment content, current file mark
Know symbol and user profile, perform comment action statement and comment list and mode of operation are returned to into server end comment operation mould
Block.
One comment and interactive approach based on local file, realizes that step is as follows:
Client is realized as follows:
Step S101:User is logged in using particular account number or visitor logs in the system, and system is user according to landing approach
Generate a user identifier;The user identifier that the step is generated is for used in step S105~S202;The step occurs
Before follow-up all steps;
Step S102:After user completes step S101, local file is opened using the system;The data that the step is obtained are supplied
Used in step S105~S202;
Step S103:Client obtains file binary sequence, and is calculated file identifier;The text that the step is generated
Part identifier is for used in step S104~S202;The step is carried out first when each user opens new file;
Step S104:Client is sent out to server the step of according to obtained by step S103, file identifier uses communication process
Send request of data, obtain the other users information of browsed this document and all to the comment data with this document;The step
Suddenly the comment data for obtaining is for used in step S105~S108;The step will trigger server end step S201;
Step S105:According to the user browse data that step 104 is obtained, displaying is browsed to produce phase with step S103
The user list of same file identifier;Active user can carry out instant messaging with user in resulting list, implement
Cheng Wei:Client user's information module of the system send information to server end, and server end is returned logical by step S202
News data, the step trigger server end S202;
Step S106:The position of file is browsed according to user, shows the breviary information of comment, Yong Huke in form is browsed
Clicked on according to oneself demand and check detailed review information;The comment that the file data and step 104 obtained according to step 102 is obtained
Data, overview display file data and comment data, specific implementation is:According to the correspondence of comment data, cheaply this is commented by amount
It is placed on the corresponding deviation post of file by information;System because user browses change current file offset when, will be current
The corresponding all comment data information of document misregistration amount show;
Step S107:A range content in user's filesselected, adds oneself review information to the part.Client
According to file identifier and chosen content side-play amount in this document, service is sent to by content is commented on using communication process
Device end;The step triggers server end step S203;
Step S108:User selects to refresh comment, client execution step S104 again;The step triggers client step
S104;
Step S109:User closes file;
The server end is realized as follows:
Step S201:Server end receives the request of data that client is sent by communication process in step S104, clothes
Business device end the user profile related to file identifier in request of data and comment data are replied into client by communication process;
Step customer in response end step S104, and return result to client step S104 and do subsequent treatment;
Step S202:Server end receives the request of data that client is sent by communication process in step S105, clothes
Business device end according to the file identifier in root received data, user profile, by the user's chat interactive data in received data,
Comment data is stored in server end storage, while related user's chat interactive data is replied to client by communication process
End;Step customer in response end step S105, and return result to client step S105 and do subsequent treatment;
Step S203:Server end receives the request of data that client is sent by communication process in step S107, clothes
Device end be engaged according to file identifier, document misregistration amount and user profile in root received data, by comment data in received data
It is stored in server end storage.
Present invention advantage compared with prior art is:
(1)The present invention centered on file, for the local file that user currently browses, realizes using in most direct mode
Comment and interaction between family based on browsing content, without the need for again by search engine or Web community, greatly facilitating use
The information searching process at family;
(2)The information that browses of present invention record user checks that for other users user can conveniently and automatically find tool
There is the people of same interest, as the local file for browsing directly represent the interest of user, the local file of end user becomes
The medium of user's communication and the instrument of aggregation same interest user, the process is greatly improved finds same interest user's
Accuracy.
(3)The present invention can process any local file, realize and can realize comment and interaction for any file, grab
The interest long-tail of user is lived, due to the file that the system is specifically opened for user so that the user of the interest of minority is again
Can fully exchange in the case where disturbing without other information, in information " mighty torrent ", allow different interest and information to obtain fully thin
Point.
(4)The present invention is not related to the copyright problem of document works for the binary storage sequence of local file.In system
In realization, server need not preserve original document and be capable of achieving comment and interaction function.The present invention has separated comment data with original
Beginning file data, original document will not be changed, copied, disseminated, and make described system that institute is invaded while function is realized, not
Open the copyright of file.
Description of the drawings
Composition frame charts of the Fig. 1 for present system;
Fig. 2 is the flowchart of client data parsing module in Fig. 1;
Fig. 3 is the flowchart of user client communication module in Fig. 1;
Fig. 4 is the flowchart of client comment operation module in Fig. 1;
Fig. 5 is the flowchart of client user's information module in Fig. 1;
Fig. 6 is the flowchart of client data composite module in Fig. 1;
Fig. 7 is the flowchart of server end communication module in Fig. 1;
Fig. 8 is the flowchart of server end comment operation module in Fig. 1;
Fig. 9 is the flowchart of server-side user information operation module in Fig. 1;
Figure 10 is the client flow chart in the present invention;
Figure 11 is the server end flow chart in the present invention.
Specific embodiment
In order to allow user easily to find the other users of browsed identical content and the file to currently browsing enters
Row comment and interaction, and without considering the content of file or going to other websites actively, arduously to find the corresponding page, design
Comment interaction systems based on local file.
As shown in figure 1, the present invention is divided into two parts of client and server.Wherein be arranged on client personal computer or
Part on mobile electronic device is client, be erected on background server for server end.Client is used for user's account
Family logs in, local file is browsed, finds other users, check comment, add the function such as chat interaction between comment and user;
Server end browses data, comment data, processes comment data and currently browses transmitting/receiving file phase according to user for storage
The comment data answered.Client and server enters row data communication by wired or wireless network.
Client part is deployed in user terminal, including:Data resolution module, client comment operation module, client
Subscriber information module, user client communication module, data combination module and user interface module;The server end includes:
Server communication module, server end comment operation module, server-side user information module and DBM;
As shown in Fig. 2 the data resolution module of client is implemented as follows in the present invention:
(1)According to the local file that the needs that user specifies are opened, the binary sequence of input file;
(2)Judge whether this document can parse, user's parsing error in data can not be pointed out if parsing if file and is exited
The process, can enter if parsing if file(3)Do subsequent treatment;The file can be parsed and refer to that file meets existing storage lattice
Formula, such as txt, pdf storage formats;
(3)The identifier of file content and file is obtained according to file format process, then by the file content for having parsed
And identifier is transferred to data combination module and does subsequent treatment;The file identifier is designated as DocID.
As shown in figure 3, user client communication module is implemented as follows in the present invention:
(1)The incoming comment operational order of comment operation module is received, and the instruction is converted to into telecommunication message, sent out
Server end communication module is given, and waiting for server end communication module returns operating result;
(2)Receive server end communication module to respond by step(1)When calling the result for obtaining, result data is returned
Make subsequent treatment to comment operation module;
(3)The incoming comment operational order of receive user information module, and the instruction is converted to into telecommunication message, send out
Server end communication module is given, and waiting for server end communication module returns operating result;
(4)Receive server end communication module to respond by step(3)When calling the result for obtaining, result data is returned
Make subsequent treatment to subscriber information module.
As shown in figure 4, client comment operation module is implemented as follows in the present invention:
(1)The instruction of data combination module inquiry file comment is received, according to the instruction input parameter<File identifier>
Generate corresponding communication instruction and pass to user client communication module;
(2)User client communication module is received by step(1)During the returning result called, data combination die is returned result to
Block;
(3)The instruction of data combination module addition comment is received, according to the instruction input parameter<User identifier, file
Identifier, side-play amount comment on content>Generate corresponding communication instruction and pass to user client communication module;
(4)User client communication module is received by step(3)During the returning result called, data combination die is returned result to
Block;
(5)The instruction that data combination module deletes comment is received, according to the instruction input parameter<File identifier, comment
Identifier>Generate corresponding communication instruction and pass to user client communication module;
(6)User client communication module is received by step(5)During the returning result called, data combination die is returned result to
Block.
As shown in figure 5, the subscriber information module of client is implemented as follows in the present invention:
(1)The User logs in instruction of data combination module is received, it is right to generate according to the user authentication information in order parameter
The communication instruction answered passes to user client communication module;
(2)User client communication module is received by step(1)During the returning result called, data combination die is returned result to
Block;
(3)User's alternating current operation instruction of data combination module is received, is given birth to according to the user's exchange of information in order parameter
User client communication module is passed to into corresponding communication instruction;
(4)User client communication module is received by step(3)During the returning result called, data combination die is returned result to
Block.
As shown in fig. 6, the data combination module of client is implemented as follows in the present invention:
(1)Corresponding 5 variate-values of file that storage user opens are respectively:File content data, file identifier are commented
By data, file current offset, user profile;
(2)When receiving user's open file operation:Data resolution module is called to obtain file content and file identifier, and
The two data are saved in relevant variable;According to file identifier, comment operation module is called to inquire about this document identifier
Corresponding comment data, and returning result is stored in local variable;File current offset is set to 0, i.e. file and starts portion
Point;
(3)When receiving user and browsing file operation:Modification file current offset variable in position is browsed according to user;According to text
Part current offset will be flux matched with this document current offset in the data and comment data of correspondence side-play amount in file content
Comment data is combined into display data, and display data is returned to user interface shows.
As shown in fig. 7, server communication module is implemented as follows in the present invention:
(1)The comment operational order that user client communication module is passed is received, the local comment operation calls of instruction conversion are referred to
Make and call client comment operation module to process;
(2)Receive server end comment operation module to respond by step(1)During the result that the invocation of procedure is obtained, by result
Data return to user client communication module and make subsequent treatment;
(3)The incoming user profile instruction of client modules is received, the instruction is converted to into local user manipulation and is instructed simultaneously
The process of invoking server end subscriber information module;
(4)Receive server-side user information module to respond by step(3)When calling the result for obtaining, by result data
Return to user client communication module and make subsequent treatment.
As shown in figure 8, the comment operation module of server end is implemented as follows in the present invention:
(1)The incoming comment operational order of server end communication module is received, the instruction is converted to into database manipulation
Sentence simultaneously calls data base management system to process;
(2)Receive data base management system to respond by step(1)When calling the result for obtaining, result data is returned to
Server end communication module makees subsequent treatment.
As shown in figure 9, the subscriber information module of server end is implemented as follows in the present invention
(1)The incoming user profile instruction of server end communication module is received, the instruction is converted to into database manipulation
Sentence simultaneously calls data base management system to process;
(2)Receive data base management system to respond by step(1)When calling the result for obtaining, result data is returned to
Server end communication module makees subsequent treatment.
As shown in Figure 10, in the present invention client to implement flow process as follows:
(1)User opens local file, carries out step(2);
(2)System according to(1)The file that process is opened obtains file content and calculation document identifier, sends comment inquiry
Request(File identifier is included in request);
(3)The step of system receives communication process and obtains(2)Return comment data;
(4)System shows step according to local file current offset(2)The file content for obtaining and step(3)Obtain
Comment data;
(5)File identifier, file current offset and comment content are sent to and were communicated by user's addition comment, system
Journey;
(6)User changes current file offset, invocation step(4);
(7)User closes file.
As shown in figure 11, in the present invention server end to implement flow process as follows
(1)Server receives the comment inquiry request of data of communication process transmission, carries out step(2);
(2)Server is according to step(1)In request of data file identifier inquiry related commentary data;
(3)Server is by step(2)Resulting comment data is transferred to communication process;
(4)Server receives the comment interpolation data request of communication process transmission, carries out step(5);
(5)Server is according to step(4)The file identifier and document misregistration amount of middle request of data, comment data is added
Enter in server database.
The inventive method is described below and implements process.
The system defines D101(Local file):Described local file, refers to PC or mobile electronic device
With information aggregate of the persistent storage device as carrier storage in PC or mobile electronic device, such as document, picture, sound
Frequently, video, local webpage opened etc..The form of its storage is specific order of binary logic sequence.
Define D102(File identifier):File identifier is referred to, according to the binary logic sequence of identical local file
It is identical principle, using the calculated identifier of definitiveness hash algorithm.Client and server end in the system is just
It is recognizing same file using the identifier.The identifier length can be with fixed length or elongated.The identifier is relative to file
It is less, it is easy to communication and the data storage of server and client.
Define D103(Document misregistration amount):Refer to relative position of the file certain content in file entirety binary sequence
Put.The position that user adds and the review information checked can be deposited and shows is the document misregistration amount of corresponding content.
In the inventive method, client step is as follows:
Step S101:User is logged in using particular account number or visitor logs in the system, and system is user according to landing approach
Generate an ID;
Step S102:User opens local file using the software client based on the system;
Step S103:If user closes client and checks comment option, client skips this step;Client obtains text
Part binary sequence, and it is calculated file identifier;
Step S104:If user closes client and checks comment option, client skips this step;Client is according to step
The step of file identifier obtained by rapid S103 uses communication process sends request of data to server, obtains browsed this document
Other users information and all to the comment data with this document;
Step S105:According to the file browsed by user, in form is browsed(Such as file sidebar)Show clear at no distant date
Look at this document other users breviary information(Such as user account names), user can according to oneself demand click on check other use
The more detailed information in family, the such as review information to this document.If user double-clicks a certain user of the position, can be chatted
It is interactive.If user concentrates closing, client checks other users option, no longer shows the category information in client window;
Step S106:The position of file is browsed according to user, in form is browsed(Such as file sidebar)Show comment
Breviary information, user can be clicked on according to oneself demand and check detailed review information.If user closes client and checks comment option,
Then only show file original contents in client window, do not show review information;
Step S107:A range content in user's filesselected, adds oneself review information to the part.Client
According to file identifier and chosen content side-play amount in this document, service is sent to by content is commented on using communication process
Device end;
Step S108:User selects to refresh comment, client execution step S104 again;
Step S109:User closes file.
Server end step is as follows:
Step S201:Server end receives the request of data that client is sent by communication process in step S104, clothes
Business device end the user profile related to file identifier in request of data and comment data are replied into client by communication process;
Step S202:Server end receives the request of data that client is sent by communication process in step S106, clothes
Business device end according to the file identifier in root received data, user profile, by the user's chat interactive data in received data,
Comment data is stored in server end storage, while related user's chat interactive data etc. is replied to visitor by communication process
Family end;
Step S202:Server end receives the request of data that client is sent by communication process in step S107, clothes
Device end be engaged according to file identifier, document misregistration amount and user profile in root received data, by comment data in received data
It is stored in server end storage.
Using the wired or wireless transport services device end of computer and the data of client, communication process realizes that both are logical
News.
The specific embodiment of the present invention of citing description below.With PC client, browsing content as PDF text
As a example by shelves(It is noted that the present invention is applied to but is not limited only to the realization).
Client is embodied as citing:
Step S101:User opens described PDF reading tool softwares(The described client of correspondence), register account number steps on
Land or visitor log in the system, and system is register account number user name or is that user generates a user identifier according to NIC address
(UserID used below represents the user identifier);
Step S102:The PDF reading tools that user is realized based on the system used in PC open one locally
PDF document(The described local file of correspondence);
Step S103:If user checks comment option in being not turned off the software, described PDF ocr softwares are according to this
The binary sequence of PDF document is calculated a file identifier(DocID used below represents this document identifier);
Step S104:If user closes described PDF ocr softwares and checks comment option, described PDF ocr softwares
Skip this step;Described PDF ocr softwares are sent out to server the step of according to obtained by step S103, DocID uses communication process
Request of data is sent, the other users information related to the DocID is obtained and all to the comment data with the DocID;
Step S105:According to the pdf document browsed by user, in form is browsed(Such as file sidebar)Show at no distant date
The account name of the other users of the browsed pdf document, user can be clicked on according to oneself demand and check that other users are more detailed
Information, such as affiliated unit, to review information of the pdf document etc..If user is with a certain user of the double mouse click position, bullet
Go out chat window, carry out interaction, using communication process and server end interactive chat content.Interaction terminates, and user can close and work as
Front pop-up window.If user concentrates and closes client and check other users option, continue to browse PDF document;
Step S106:The position of pdf document is browsed according to user, is had with band color line segment labelling herein in file sidebar
Review information, when mouse moves to the mark, in breviary information shown in mouse information frame;The mark if user clicks here
With big window form, note, shows that all comments or split screen show comment;User can close the labelling pop-up window of current click simultaneously
Continue to browse PDF document;
Step S107:User chooses passage in PDF document, adds oneself review information to the part.It is described
Relative position of the PDF ocr softwares according to DocID and chosen content in the PDF document(The phase is identified with offset herein
To position), server end is sent to by content is commented on using communication process;
Step S108:User selects to refresh comment, described PDF ocr softwares execution step S104 again;
Step S109:User closes PDF document.
Server end is embodied as citing:
Server end using relational database technology store user account information and<DocID,UserID,Comment>Unit
Group data.
Wherein user account information is used for user log-in authentication,<DocID,offset,UserID,Comment>Number of tuples
According to for storing and inquire about comment data.Easy to understand, DocID is that client step S103 calculates gained file identifier,
Offset is the document misregistration amount produced by client step S107, and UserID is ID obtained by client step S101
Symbol, Comment is comment data.
Step S201:Server end receives the request of data that client is sent by communication process in step S104, its
Middle file identification parameters are DocID, and server end will be related to the DocID<DocID,offset,UserID,Comment
>Tuple data is sent to client using communication process;
Step S202:Server end receives the addition chat content that client is sent by communication process in step S105
Request of data, server end is stored in received data in server-side database, while sending the data to another use
Client corresponding to family.
Step S203:Server end receives the number of the addition comment that client is sent by communication process in step S107
According to request, data request parameter is<DocID,offset,UserID,Comment>Tuple, server end is by received number of tuples
According to being stored in server-side database.
In a word, the present invention is applied to PC and mobile terminal device simultaneously, and breaching user needs according in file
Appearance is gone to search for related commentary on network and carries out the conventional thought of interaction, browsing active user and other users, commenting on letter
Breath is attached in the local file form opened using the system(Original is not changed), user directly basis currently can beat
The file opened, finds the user for having similar hobby to which, and is commented on and interaction.
Non-elaborated part of the present invention belongs to techniques well known.
The above, part specific embodiment only of the present invention, but protection scope of the present invention is not limited thereto, and appoints
What those skilled in the art the invention discloses technical scope in, the change or replacement that can be readily occurred in should all be covered
Within protection scope of the present invention.
Claims (2)
1. a kind of comment and interaction systems based on local file, it is characterised in that:The system includes client and server
Two parts in end;The client part is deployed in user terminal, including:Data resolution module, client comment operation module,
Client user's information module, user client communication module, data combination module and user interface module;The server end
Including:Server end communication module, server end comment operation module, server-side user information module and DBM;
In client:
Data resolution module:According to the local file binary sequence that user opens, the file identification of the binary sequence is calculated
Accord with and according to the extension name type resolution file of file, draw the file data after parsing, and by this document data transfer to number
Subsequent treatment is carried out according to composite module;File data after the parsing includes file identifier and file content data;It is described
File identifier refers to the feature string of binary sequence, meets following feature:Identical binary sequence has phase
File identifier together, the binary sequence for differing have different file identifiers;
User client communication module:The instruction that client comments on operation module is received, and operation is sent to server end communication module and is referred to
Order and data, the returned data of the reception server end communication module, and result data is sent back into client comment operation module;
The instruction of client user's information module is received, and operational order and data, the reception server is sent to server end communication module
The returned data of end communication module, and result data is sent back into client user's information module;
Client comments on operation module:Increase that receiving data composite module is recorded to comment data, deletion, modification, inquiry behaviour
Instruct, carry out teledata record operation to user client communication module according to instructing and commenting on content transmission;Receive simultaneously
During the returned data of user client communication module, client data composite module is transferred data to;
Client user's information module:When receiving the User logs in instruction of client data composite module, visitor is transferred data to
Family end communication module;When receiving the User logs in result data of user client communication module simultaneously, user login information is preserved simultaneously
Transfer data to client data composite module;
Data combination module:Preserve current file content-data, file identifier, user profile, comment data;Response user behaviour
Make the comment operational order and user profile operational order of interface module, will according to the file current file offset that user browses
Comprehensive good data are transferred to user interface and show;File is transferred to into client data parsing module when new file is opened,
And obtain the file data that the parsing of client data parsing module is obtained;Send comment operational order and give client comment operation mould
Block, and receive the returning result that client comments on operation module;Send user operation commands and give client user's information module, and
Receive the returning result of client user's information module;The document misregistration amount refers to that file certain content enters in file overall two
Relative position in sequence processed, the text that user adds and the review information checked can be deposited and the position that shows is corresponding content
Part side-play amount;
User interface module:The open file operation of receive user is instructed, user profile operational order and comment operation refer to
Instruction is transferred to the execution of client data composite module, and the returning result of client data composite module is showed by order
Terminal use;
In server end:
Server end communication module:The comment operational order of user client communication module is received, and operation module is commented on to server end
Operational order and data are sent, the returned data of operation module is commented at the reception server end, and result data is sent back client
End communication module;The user profile operational order of user client communication module is received, is sent to server-side user information module and is grasped
Instruct and data, receive the returned data of service end subscriber information module, and result data is sent back into user client communication mould
Block;
Service end comments on operation module:The review information operational order that response is obtained by server end communication module, these are grasped
Database operating instruction is converted to as instruction, and calls DBM to complete the response for operating, finally will comment list and behaviour
Server end communication module is returned to as state;
Service end subscriber information module:The user profile that response is obtained by server end communication module is operated, and these operations are turned
Database operating instruction is changed to, and calls DBM to complete the response for operating, operating result is returned to into server finally
End communication module;
DBM:The user profile operational order and user name, user cipher of the reception server end subscriber information module, clothes
Business device client database module performs database authentication operation, and operating result is returned to server-side user information module;Receive
The incoming increase of server end comment operation module, deletion, modification, inquiry comment operational order, comment content, current file mark
Know symbol and user profile, perform comment operational order and comment list and mode of operation are returned to into server end comment operation mould
Block.
2. a comment and interactive approach based on local file, it is characterised in that realize that step is as follows:
Client is realized as follows:
Step S101:User is logged in using particular account number or visitor logs in, and system is that user generates a use according to landing approach
Family identifier;The user identifier that the step is generated is for used in step S105~S202;The step occurs in follow-up all steps
Before rapid;
Step S102:After user completes step S101, local file is opened;The data that the step is obtained supply step S103~S202
Used in;
Step S103:Client obtains file binary sequence, and is calculated file identifier;The files-designated that the step is generated
Symbol is known for used in step S104~S202;The step is carried out first when each user opens new file;
Step S104:Client sends number to server the step of file identifier uses communication process according to obtained by step S103
According to request, the other users information of browsed this document and all to the comment data with this document is obtained;The step is obtained
The comment data for arriving is for used in step S105~S108;The step will trigger server end step S201;
Step S105:According to the user browse data that step 104 is obtained, displaying is browsed to produce identical with step S103
The user list of file identifier;Active user can carry out instant messaging with user in resulting list, and the process of implementing is:
Client user's information module send information to server end, and server end is by step S202 Returning communication data, the step
Triggering server end S202;
Step S106:The position of file is browsed according to user, shows the breviary information of comment in form is browsed, user can basis
Oneself demand is clicked on and checks detailed review information;The comment number that the file data and step 104 obtained according to step 102 is obtained
According to, overview display file data and comment data, specific implementation is:This is commented on according to the corresponding side-play amount of comment data
Information is placed on the corresponding deviation post of file;System because user browses change current file offset when, ought be above
The corresponding all comment data information of part side-play amount show;The document misregistration amount refers to that file certain content is whole in file
Relative position in body binary sequence, user adds and the review information checked can be deposited and the position that shows is corresponding interior
The document misregistration amount of appearance;
Step S107:A range content in user's filesselected, adds oneself review information to the part, client according to
File identifier and chosen content side-play amount in this document, is sent to server by content is commented on using communication process
End;The step triggers server end step S203;
Step S108:User selects to refresh comment, client execution step S104 again;The step triggers client step
S104;
Step S109:User closes file;
The server end is realized as follows:
Step S201:Server end receives the request of data that client is sent by communication process in step S104, server
End the user profile related to file identifier in request of data and comment data are replied into client by communication process;The step
Rapid customer in response end step S104, and return result to client step S104 and do subsequent treatment;
Step S202:Server end receives the request of data that client is sent by communication process in step S105, server
, comment on the user's chat interactive data in received data according to the file identifier in root received data, user profile at end
Data are stored in server end storage, while related user's chat interactive data is replied to client by communication process;
Step customer in response end step S105, and return result to client step S105 and do subsequent treatment;
Step S203:Server end receives the request of data that client is sent by communication process in step S107, server
Comment data in received data is stored in by end according to file identifier, document misregistration amount and user profile in received data
In server-side database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410126606.XA CN103841121B (en) | 2014-03-28 | 2014-03-28 | A kind of comment and interaction systems and method based on local file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410126606.XA CN103841121B (en) | 2014-03-28 | 2014-03-28 | A kind of comment and interaction systems and method based on local file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103841121A CN103841121A (en) | 2014-06-04 |
CN103841121B true CN103841121B (en) | 2017-03-29 |
Family
ID=50804253
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410126606.XA Active CN103841121B (en) | 2014-03-28 | 2014-03-28 | A kind of comment and interaction systems and method based on local file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103841121B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104615668A (en) * | 2015-01-15 | 2015-05-13 | 珠海金山网络游戏科技有限公司 | Game manager instruction management platform |
CN104811816B (en) * | 2015-04-29 | 2018-04-13 | 北京奇艺世纪科技有限公司 | A kind of is the method, apparatus and system that the object in video pictures plays barrage label |
CN111031400B (en) | 2019-11-25 | 2021-04-27 | 上海哔哩哔哩科技有限公司 | Barrage presenting method and system |
CN111325004B (en) * | 2020-02-21 | 2021-08-31 | 腾讯科技(深圳)有限公司 | File commenting and viewing method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102044009A (en) * | 2009-10-23 | 2011-05-04 | 华为技术有限公司 | Group recommending method and system |
CN102508699A (en) * | 2011-09-30 | 2012-06-20 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and data processing method |
CN103116644A (en) * | 2013-02-26 | 2013-05-22 | 华南理工大学 | Method for mining orientation of Web themes and supporting decisions |
-
2014
- 2014-03-28 CN CN201410126606.XA patent/CN103841121B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102044009A (en) * | 2009-10-23 | 2011-05-04 | 华为技术有限公司 | Group recommending method and system |
CN102508699A (en) * | 2011-09-30 | 2012-06-20 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and data processing method |
CN103116644A (en) * | 2013-02-26 | 2013-05-22 | 华南理工大学 | Method for mining orientation of Web themes and supporting decisions |
Also Published As
Publication number | Publication date |
---|---|
CN103841121A (en) | 2014-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103997507B (en) | A kind of method for pushing and device of information | |
CN102955781B (en) | A kind of personage's searching method and device | |
US10873553B2 (en) | System and method for triaging in a message system on send flow | |
US20080016091A1 (en) | Method and apparatus for highlighting a portion of an internet document for collaboration and subsequent retrieval | |
US20120310926A1 (en) | System and method for evaluating results of a search query in a network environment | |
US10652187B2 (en) | System and method for relevance-based electronic message presentation | |
US9203792B2 (en) | Integration system providing conversation messages and social network posts by conversation message authors to client | |
CN101794291A (en) | Method and device for associating search and instant communication | |
CN103841121B (en) | A kind of comment and interaction systems and method based on local file | |
US20210117492A1 (en) | Highlighting content portions of search results without a client add-on | |
CN102571971A (en) | Method and system for shafting commodity information on mobile terminal | |
US20240031466A1 (en) | Techniques to manage contact records | |
US20210173875A1 (en) | Computerized system and method for extracting entity information from text communications and displaying content based therefrom | |
WO2014029314A1 (en) | Information aggregation, classification and display method and system | |
CN101216829B (en) | Content search system, apparatus and method | |
CN103412913B (en) | A kind of association search method and system | |
US20160246789A1 (en) | Searching content of prominent users in social networks | |
CN102959539A (en) | Method and system for item recommendation in service crossing situation | |
CN103678624A (en) | Searching method, searching server, and searching request executing method and terminal | |
US11301532B2 (en) | Searching for user selected portions of content | |
CN102810103A (en) | Search result sharing method and system | |
CN102724168A (en) | A method and a device for pushing user information | |
CN103312592B (en) | A kind of method that batch sends information to instant communication client on webpage | |
CN108228773A (en) | A kind of method and device realized information and preserved | |
US20210011969A1 (en) | In situ highlighting of portions of content |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |