CN101373478A - Method and apparatus for displaying data - Google Patents
Method and apparatus for displaying data Download PDFInfo
- Publication number
- CN101373478A CN101373478A CNA2008101716193A CN200810171619A CN101373478A CN 101373478 A CN101373478 A CN 101373478A CN A2008101716193 A CNA2008101716193 A CN A2008101716193A CN 200810171619 A CN200810171619 A CN 200810171619A CN 101373478 A CN101373478 A CN 101373478A
- Authority
- CN
- China
- Prior art keywords
- data object
- information content
- pictures
- data
- title
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a method for displaying data and a device thereof. When a first data object and a second data object requiring displaying currently are acquired from a data source RSS Feed, the method comprises the following steps: the second data object is processed according to the preset rules; the first data object and the processed second data object are displayed. By adopting the method, the data objects which are needed currently and acquired from the data source RSS Feed are prevented from being displayed directly; instead, the second data object is processed according to the preset rules; subsequently, the first data object and the second data object are displayed, thereby ensuring data display to be normalized and significantly improving the reading experience of users.
Description
Technical Field
The present invention relates to internet technologies, and in particular, to a method and an apparatus for displaying data.
Background
Generally, if a user needs to search for updated information in a certain website, the user directly logs in the website and searches for the information to be searched in the website. However, the user does not know when the website releases new information, if the website has no updated information for the user to find temporarily at the current visit, the user may visit the website many times in a day, the efficiency of acquiring information is greatly reduced by adopting the visiting mode, and the mode is relatively random and is not easy to control. Therefore, with the development of internet technology, a completely new information dissemination method, namely RSS (Simple Syndication), is emerging.
RSS is an easy way to share content (also called syndication content) between web sites, and is commonly used for news and other sequenced web sites, such as blogs (blogs). RSS builds a technical platform for rapid information dissemination, and makes everyone a potential information provider.
The mode of obtaining information through RSS has certain similarity with the mode of obtaining information through adding mail lists (such as electronic magazines and news mails), that is, the client can directly read the contents through a client browsing mode (called RSS reader) or an RSS online reading mode without logging in various websites providing information, for example, news of news in new waves, search for foxes, hundredths and the like can be simultaneously browsed through one RSS reader.
In the specific implementation, the information publishing website integrates all or part of the information of the website into an RSS file, the file is called a data source (RSS Feed), the information contained in the RSS Feed can be directly called by other sites, and the data is in a standard XML format, so that the data can be used in other terminal services, such as PDAs, mobile phones and the like. In this way, the RSS reader reads the data source information of the blog or the news from the RSS Feed, wherein the data source information may be text or picture, and then directly displays the data object corresponding to the read data source information.
However, the sizes of the data source information in the RSS feeds corresponding to different websites are different, for example, if the RSS reader reads the blob or news data source information from the RSS feeds as pictures and titles, where the number of the pictures is at least 10, when the pictures and the titles are directly displayed according to the method in the prior art, the RSS reader may display such many pictures as wrong, for example, the displayed pictures and titles are disordered and even some messy codes may occur, so that the reading experience of the user is greatly reduced.
Disclosure of Invention
The invention provides a data display method and device, which are used for improving the accuracy of data display.
The invention provides a data display method, which comprises the following steps:
acquiring a first data object and a second data object which need to be displayed currently from a data source RSS Feed;
processing the second data object according to a preset rule;
and displaying the first data object and the processed second data object.
The invention provides a data display device, which comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring data; wherein,
the acquisition unit is used for acquiring a first data object and a second data object which need to be displayed currently from a data source RSS Feed;
the processing unit is used for processing the second data object acquired by the acquisition unit according to a preset rule;
the display unit is used for displaying the first data object acquired by the acquisition unit and the second data object processed by the processing unit.
As can be seen from the above, in the method and apparatus for data display provided in the embodiments of the present invention, when a first data object mainly embodying a title and a second data object mainly embodying a picture and/or a text, which need to be displayed at present, are acquired from a data source RSS Feed, the method includes performing processing including the number of pictures and/or the number of text words on the second data object according to a preset rule; the first data object and the processed second data object are displayed, so that the data object corresponding to the data source information acquired from the data source RSSFeed can be prevented from being directly displayed, the second data object is processed according to a preset rule, namely the second data object is subjected to standard processing, and then the first data object and the processed second data object are displayed, so that the standardization of data display is ensured, and the reading experience of a user is greatly improved.
Drawings
FIG. 1 is a basic workflow diagram of a method of data display in an embodiment of the invention;
FIG. 2 is a flowchart illustrating an exemplary application of a method for displaying data in accordance with an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating display of data objects according to an embodiment of the present invention;
fig. 4 is a structural diagram of a data display device according to an embodiment of the present invention.
Detailed Description
In the method for displaying data provided by the embodiment of the invention, the second data object mainly embodying pictures and/or characters is processed according to the preset rule, namely the second data object is subjected to standard processing, so that the data object corresponding to the data source information acquired from the data source RSS Feed can be prevented from being directly displayed, the standardization of data display is ensured, and the reading experience of a user is greatly improved; and displaying the first data object and the processed second data object. .
In order to make the objects, technical solutions and advantages of the present invention more apparent, a method for displaying data provided by an embodiment of the present invention is described below.
Referring to fig. 1, fig. 1 is a basic work flow diagram of a data display method according to an embodiment of the present invention. As shown in fig. 1, the process includes the following steps:
step 101, acquiring a first data object and a second data object which need to be displayed currently from a data source RSS Feed.
The obtained first data object may be a data object which exists in each RSS Feed data source and whose attribute does not need to be changed, and the obtained second data object may be a data object which exists on demand and whose attribute can be changed when displayed. Specifically, if the method for displaying data provided by the embodiment of the present invention is applied to a method for automatically generating an RSS summary, the first data object may be a title, and the second data object may have various forms, such as a picture, or information content, or a picture and information content, which is not limited in this embodiment of the present invention.
And 102, processing the second data object according to a preset rule.
Here, if the currently required second data object is a picture; the preset rule is that when the number of the pictures is more than 3, the pictures with the number less than or equal to 3 are selected at will in the pictures, that is, 1 picture or 2 pictures or 3 pictures are selected at will in the pictures. Of course, if the number of pictures in the second data object is less than or equal to 3, the pictures may be directly displayed according to the method in the prior art, which is not described herein again.
And 103, displaying the first data object and the processed second data object.
Here, if the first data object is a title and the second data object is a picture, the title and the selected picture may be directly displayed in step 102.
Therefore, the flow of the data display method is realized.
It should be noted that the rule preset in step 101 is related to the acquired second data object that needs to be displayed currently. For example, if the second data object that needs to be displayed currently is information content; when the number of the character words of the information content is more than 200, selecting the information content with the number of the character words less than or equal to 200 in the information content according to a preset selection sequence; if the second data object needing to be displayed currently is a picture and information content; the preset rule is that when the number of the pictures is more than 3, the pictures with the number less than or equal to 3 are randomly selected from the pictures, and when the number of the character words of the information content is more than 200, the information content with the number of the character words less than or equal to 200 is selected from the information content according to a preset selection sequence. Of course, if the number of words of the information content in the second data object is less than or equal to 200, or the number of pictures in the second data object is less than or equal to 3, the information content or the pictures may be directly displayed according to the method in the prior art, and details are not repeated here.
In order to make the embodiments of the present invention more clearly understood, the following describes an application of the method for displaying data provided by the embodiments of the present invention.
Referring to fig. 2, fig. 2 is an application workflow diagram of a data display method according to an embodiment of the present invention. As shown in fig. 2, the process includes the following steps:
Here, the method for displaying data provided by the embodiment of the present invention may specifically be a method for automatically generating an RSS summary, and thus, the obtained first data object that needs to be displayed currently may be a title; the second data object may have various forms, such as picture, or information content, or both. In this embodiment, the first data object that is acquired as described above and is currently required is taken as a title, and the second data object is taken as an example of a picture and information content.
Specifically, step 202 may be to determine whether the number of pictures in the second data object that needs to be displayed currently is greater than 3, and in the case of yes, arbitrarily select the number of pictures that is less than or equal to 3 from the pictures.
Here, step 203 may specifically be to determine whether the number of words in the information content in the second data object that needs to be displayed currently is greater than 200, and if so, select the information content with the number of words less than or equal to 200 in the information content according to a preset selection order.
Here, the preset selection sequence may have various forms, for example, the selection may be from front to back, or a certain section is selected first, and then the selection is performed in the selected certain section from front to back, and specific analysis is required in specific situations, which is not limited in the embodiment of the present invention.
It should be noted that step 202 and step 203 are not in a fixed chronological order.
It should be noted that, in order to make the contents displayed subsequently more coherent and not make the reader feel obtrusive, this step 203 may further perform an operation of optimizing the subsequent display, that is, if there are characters remaining after selecting the information contents with the character number less than or equal to 200 in the information contents according to the preset selection sequence, an ellipsis is added after and/or before the selected information contents, and the added ellipsis is carried in the selected information contents. For example, if the last characters in the information content with the character word number less than or equal to 200 selected in the information content according to the preset selection sequence are "you eat today", and the remaining characters are "how much dinner? "in this way, an ellipsis may be added after the selected information content, and the added ellipsis may be carried in the selected information content.
Of course, if there is a text content before or before and after the information content with the number of text words less than or equal to 200 selected from the information content according to the preset selection sequence, an ellipsis is added before or before and after the selected information content, and the added ellipsis is carried in the selected information content.
And 204, displaying the title, the selected picture and the selected information content according to a preset display rule.
Here, the preset display rule may have various forms, and preferably, in consideration of the reading habit of the reader, a title is generally set on the selected picture and the selected information content. The selected picture and the selected information content may be arranged in parallel, as shown in fig. 3, or may be in a vertical structure, which is not limited specifically.
As can be seen, in the embodiment of the present invention, when a first data object and a second data object which are currently required are obtained from a data source RSS Feed, the second data object is processed according to a preset rule; displaying the first data object and the processed second data object; the data object to be displayed at present can have a fixed upper limit, so that disordered information or even disordered codes caused by excessive pictures or information contents to be displayed can be avoided, and the reading experience of a user is greatly improved.
The embodiment of the invention also provides a structure diagram of a data display device, which is detailed below.
Referring to fig. 4, fig. 4 is a structural diagram of a data display device according to an embodiment of the present invention. As shown in fig. 4, the apparatus includes an acquisition unit 401, a processing unit 402, and a display unit 403.
The obtaining unit 404 is configured to obtain, from a data source RSS Feed, a first data object and a second data object that need to be displayed currently.
The processing unit 402 is configured to process the second data object acquired by the acquiring unit 401 according to a preset rule.
The display unit 403 is configured to display the first data object acquired by the acquisition unit 401 and the second data object processed by the processing unit 402.
The first data object currently required to be displayed and acquired by the acquiring unit 401 may be a title, and the second data object may have multiple structural forms, and preferably, if the first data object acquired by the acquiring unit 401 is a title, the second data object is a picture.
The processing unit 402 selects arbitrarily the number of pictures smaller than or equal to 3 from the pictures when the number of pictures in the second data object is larger than 3.
The display unit 403 displays the title and the selected picture.
Preferably, if the first data object acquired by the acquiring unit 401 is a title, the second data object is an information content.
The processing unit 402 selects information content with the number of words less than or equal to 200 from the information content according to a preset selection order when the number of words of the information content is greater than 200.
The display unit 403 displays the title and the selected information content.
Preferably, if the first data object acquired by the acquiring unit 401 is a title, the second data object is a picture and information content.
The processing unit 402 selects arbitrarily the pictures with the number less than or equal to 3 from the pictures when the number of the pictures is more than 3, and selects the information content with the number of the words less than or equal to 200 from the information content according to the preset selection sequence when the number of the words of the information content is more than 200.
The display unit 403 displays the title, the selected picture and the selected information content according to a preset display rule.
Wherein the preset display rule may include that the title is on top of the selected picture and the selected information content.
Preferably, if the processing unit 402 selects the information content with the number of words less than or equal to 200 in the information content according to the preset selection sequence and then the remaining characters, an ellipsis is added after and/or before the selected information content, and the added ellipsis is carried in the selected information content.
It should be noted that, in the embodiment of the present invention, each unit inside the data display device may be a physical functional unit or a software functional unit, and each unit may also be subdivided or combined, and when the data display device is specifically implemented, a person skilled in the art may perform processing according to actual situations, which is not listed here.
It can be seen that, in the method and the device for displaying data provided in the embodiments of the present invention, when a first data object and a second data object which are currently required are obtained from a data source RSSFeed, the method includes processing the second data object according to a preset rule; and displaying the first data object and the processed second data object. Therefore, the currently required data object acquired from the data source RSS Feed is not directly displayed, the second data object is processed according to a preset rule, and then the first data object and the processed second data object are displayed, so that the standardization of data display is ensured, and the reading experience of a user is improved.
The above-mentioned embodiments are intended to illustrate the objects, aspects and advantages of the present invention, and it should be understood that the above-mentioned embodiments are merely preferred embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method of data display, the method comprising:
acquiring a first data object and a second data object which need to be displayed currently from a data source RSS Feed;
processing the second data object according to a preset rule;
and displaying the first data object and the processed second data object.
2. The method of claim 1, wherein the first data object is a title and the second data object is a picture;
the processing of the second data object according to the preset rule is as follows:
when the number of the pictures is more than 3, randomly selecting the pictures with the number less than or equal to 3 from the pictures;
the displaying the first data object and the processed second data object includes:
and displaying the title and the selected picture.
3. The method of claim 1, wherein the first data object is a title and the second data object is information content;
the processing of the second data object according to the preset rule is as follows:
when the number of the character words of the information content is more than 200, selecting the information content with the number of the character words less than or equal to 200 in the information content according to a preset selection sequence;
the displaying the first data object and the processed second data object includes:
and displaying the title and the selected information content.
4. The method of claim 1, wherein the first data object is a title and the second data object is a picture and information content;
the processing of the second data object according to the preset rule is as follows:
when the number of the pictures is more than 3, randomly selecting the pictures with the number less than or equal to 3 from the pictures, and when the number of the character words of the information content is more than 200, selecting the information content with the number of the character words less than or equal to 200 from the information content according to a preset selection sequence;
the displaying the first data object and the processed second data object includes:
and displaying the title, the selected picture and the selected information content according to a preset display rule.
5. The method of claim 4, wherein the preset display rule comprises:
the title is displayed over the selected picture and the selected information content.
6. The method according to claim 3 or 4, wherein if the information content is selected according to the preset selection sequence and the characters remain after the information content with the character number less than or equal to 200, then an ellipsis is further added after and/or before the selected information content, and the ellipsis is carried in the selected information content.
7. The device for displaying data is characterized by comprising an acquisition unit, a processing unit and a display unit; wherein,
the acquisition unit is used for acquiring a first data object and a second data object which need to be displayed currently from a data source RSS Feed;
the processing unit is used for processing the second data object acquired by the acquisition unit according to a preset rule;
the display unit is used for displaying the first data object acquired by the acquisition unit and the second data object processed by the processing unit.
8. The apparatus according to claim 7, wherein if the first data object obtained by the obtaining unit is a title and the second data object is a picture, the processing unit arbitrarily selects, when the number of the pictures is greater than 3, pictures with a number less than or equal to 3 from the pictures; and the display unit displays the title and the selected picture.
9. The apparatus according to claim 7, wherein if the first data object obtained by the obtaining unit is a title, the second data object is an information content; the processing unit selects the information content with the character number less than or equal to 200 from the information content according to a preset selection sequence when the character number of the information content is more than 200; the display unit displays the title and the selected information content.
10. The apparatus according to claim 7, wherein if the first data object obtained by the obtaining unit is a title, the second data object is a picture and information content; the processing unit randomly selects pictures with the number less than or equal to 3 from the pictures when the number of the pictures is more than 3, and selects information contents with the number of words less than or equal to 200 from the information contents according to a preset selection sequence when the number of words of the information contents is more than 200; and the display unit displays the title, the selected picture and the selected information content according to a preset display rule.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200810171619A CN100592300C (en) | 2008-10-21 | 2008-10-21 | Method and device for displaying data |
| PCT/CN2009/074420 WO2010045848A1 (en) | 2008-10-21 | 2009-10-13 | Method for displaying data and device thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200810171619A CN100592300C (en) | 2008-10-21 | 2008-10-21 | Method and device for displaying data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101373478A true CN101373478A (en) | 2009-02-25 |
| CN100592300C CN100592300C (en) | 2010-02-24 |
Family
ID=40447644
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200810171619A Active CN100592300C (en) | 2008-10-21 | 2008-10-21 | Method and device for displaying data |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN100592300C (en) |
| WO (1) | WO2010045848A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2010045848A1 (en) * | 2008-10-21 | 2010-04-29 | 腾讯科技(深圳)有限公司 | Method for displaying data and device thereof |
| CN102982181A (en) * | 2012-12-18 | 2013-03-20 | 北京奇虎科技有限公司 | Method and device for showing webpage data on browser side |
| CN103020246A (en) * | 2012-12-18 | 2013-04-03 | 北京奇虎科技有限公司 | Webpage data presentation method and device for browser |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4281017B2 (en) * | 2007-01-05 | 2009-06-17 | ソニー株式会社 | Information processing apparatus, display control method, and program |
| CN100592300C (en) * | 2008-10-21 | 2010-02-24 | 腾讯科技(深圳)有限公司 | Method and device for displaying data |
-
2008
- 2008-10-21 CN CN200810171619A patent/CN100592300C/en active Active
-
2009
- 2009-10-13 WO PCT/CN2009/074420 patent/WO2010045848A1/en not_active Ceased
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2010045848A1 (en) * | 2008-10-21 | 2010-04-29 | 腾讯科技(深圳)有限公司 | Method for displaying data and device thereof |
| CN102982181A (en) * | 2012-12-18 | 2013-03-20 | 北京奇虎科技有限公司 | Method and device for showing webpage data on browser side |
| CN103020246A (en) * | 2012-12-18 | 2013-04-03 | 北京奇虎科技有限公司 | Webpage data presentation method and device for browser |
| CN102982181B (en) * | 2012-12-18 | 2016-09-28 | 北京奇虎科技有限公司 | A kind of method and device in browser side displaying web page data |
| CN103020246B (en) * | 2012-12-18 | 2018-01-05 | 北京奇虎科技有限公司 | Webpage data presentation method and device for browser |
Also Published As
| Publication number | Publication date |
|---|---|
| CN100592300C (en) | 2010-02-24 |
| WO2010045848A1 (en) | 2010-04-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8332763B2 (en) | Aggregating dynamic visual content | |
| US7373606B2 (en) | Method for visualizing weblog social network communities | |
| AU2012216321B2 (en) | Share box for endorsements | |
| US9183316B2 (en) | Providing action links to share web content | |
| CN102317936B (en) | Identifying comments to show in connection with a document | |
| US20150067476A1 (en) | Title and body extraction from web page | |
| US9781071B2 (en) | Method, apparatus and computer program product for providing automatic delivery of information to a terminal | |
| CN101782911B (en) | A kind of prompting network resource content method and system | |
| US9443014B2 (en) | Custom web page themes | |
| US20100131455A1 (en) | Cross-website management information system | |
| US20140222800A1 (en) | Personalization of news articles based on news sources | |
| WO2018177251A1 (en) | Application program processing method, computer device and storage medium | |
| CN101427229A (en) | Techniques for modifying the presentation of information displayed to an end user of a computer system | |
| JP2012529688A (en) | Update notification method and system | |
| CN101751462A (en) | Network information storage and access methods, equipment and terminals | |
| CN103544150A (en) | Method and system for providing recommendation information for mobile terminal browser | |
| US20140207770A1 (en) | System and Method for Identifying Documents | |
| CN105824951A (en) | Retrieval method and retrieval device | |
| CN101373478A (en) | Method and apparatus for displaying data | |
| US20140108619A1 (en) | Information providing system and method for providing information | |
| US9092409B2 (en) | Smart scoring and filtering of user-annotated geocoded datasets | |
| KR20150011026A (en) | Method and device for pushing media information in real time | |
| US9959256B1 (en) | Web asset modification based on a user context | |
| CN104794165B (en) | A kind of webpage representation method, apparatus and system | |
| US9430447B1 (en) | Presenting media content based on parsed text |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant |