Method for independently adding position comments for web webpage articles

A technology for articles and webpages, which is applied in the field of independently adding position comments to webpage articles, which can solve problems such as the inability to add comments, and achieve the effects of enhancing communication interaction, reasonable judgment, and pertinence enhancement

Inactive Publication Date: 2018-08-28
钱慧敏
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In particular, through 标签以及结合javascript代码虽然我们可以做出类似"错误内容标记”这样的上标标记,并且通过点击标记可以打开内容,但是注意

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for independently adding position comments for web webpage articles
  • Method for independently adding position comments for web webpage articles
  • Method for independently adding position comments for web webpage articles

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0012]假设有一篇web网页文章,其HTML代码为" 这是一篇web网页文章,这是第一个段落。 这是文章的第二个段落。 ”,我们以在紧邻b字符后的位置添加评论为例,详细说明实现方式。

[0013]紧邻"b”后的位置,我们也可以称这个位置是紧邻"网页”之前的位置,还可以称这个位置是b位置以及其他更多的称呼方式,不论我们如何称呼或者描述这个位置,在逻辑上,这个位置和评论是相关联的,所以我们统一称其为被评论位置或者评论位置(称其为被评论位置是描述文章中被评论的位置,称其为评论位置是为了描述评论关联到的那个位置),从这个位置或者其某些方面的特征数据要能访问添加到这个位置的评论,为了表现评论和位置间的关联性,我们特称评论为位置评论,通过分析我们可以发现,在本质上,添加位置评论就是要实现被评论位置到评论的对应关系,所以我们只要能对被评论位置加以标识形成标识该位置的特征数据,也就是为每个位置给出位置标识符,同时从这个特征数据(位置标识符)可以访问到位置评论,我们也就实现了为web网页文章独立添加位置评论的方法。

[0014]现在的问题就是如何标识文章中的位置?HTML代码为" 这是一篇web网页文章,这是第一个段落。 这是文章的第二个段落。 ”的文章,举例来说,我们标识"web”中的"b”这个位置,我们的方法是由DOM树上到被评论位置路径上各个节点的索引复合构成,其中,element和文本节点的索引是其在父节点的childNodes属性中的索引位置,对文本节点中的某一个字符索引则是该字符在文本内容中的索引位置,那么这个位置的标识符就是0_6,其中0是第一个p标签的节点在article标签节点的childNodes属性中的索引位置,6是字符b在文本节点的内容字符串中的索引位置。这样当我们说在b字符上添加一条评论时就是指在标识符为0_6的位置上添加评论,为了表示b上有评论我们在紧邻b字符后做一个上标标记,形式是"b标记”,我们也可以说,在紧邻b字符后面的位置添加评论而且这个位置标识符可以使用b字符的位置标识符,对应的html代码则为" 这是一篇web标记网页文章,这是第一个段落。 这是文章的第二个段落。 ”。但是标识符0_6并不能完全标识该篇文章的b位置,它只是在该篇文章内能够标识b位置,其他文章中也可以有0_6的位置标识符。为了解决这个问题,我们为每篇文章指...

Embodiment 2

[0020]文章HTML代码做格式化处理为类似如下形式并存储到服务器端。

[0021]

[0022]

[0023]我们格式化的规则是对img标签为其分配一个唯一编号,编号由num属性保存,并设置一个c属性用以标识该位置是否有评论,文本内容均由span标签直接包括起来,比如"一个演示,另外的内容”,为了满足文本内容由span标签直接包括起来,处理为"一个演示,另外的内容”,之所以不直接替换p标签为span是因为p标签可能带有特殊的格式比如首行缩进2字符,如果直接替换,那么文章的html代码在页面上的显示效果也就被破坏了,然后为每个span标签分配唯一编号,编号由num属性保存并设置一个c属性用以标识该位置是否有评论;如果span标签的文本内容中含有",”、"。”、"、”、";”等,则用这些符号作为拆分符对文本内容做进一步拆分并用span标签将拆分后各个部分包括起来,例如"一个演示,另外的内容”拆分处理后就是"一个演示,另外的内容”。

[0024]根据需要,格式化处理的原则可以进行修改,比如对文本内容的每个字我们都用span标签包括起来并编号。我们之所以要将文本内容用",”、"。”、"、”、";”作为拆分符进行拆分,是因为文章由若干用",”、"。”、"、”、";”分隔的句子构成,这每句话具有各自的完整含义,我们也更可能针对某一句话发表评论,虽然偶尔可能针对某个词发表评论,但这可以用针对这个词所在的那个句子发表评论来代替,评论的针对性并不会明显下降,举例来说,就是我们要评论"这是一篇web网页文章,”中的web,针对性最强的组织评论的方式是"这是一篇web标注1网页文章,”,评论组织到"标注1”的位置上,另一种组织评论的方式是"这是一篇web网页文章,标注2”,针对web的评论被组织到"标注2”的位置上,第二种方式相比第一种针对性并没有显著下降,但第二种方式也就是我们针对每句话设置评论位置而不是每个字设置评论位置却会显著降低我们处理问题的复杂度。

[0025]对HTML代码做了格式化处理之后,被评论位置的位置标识符就可以由标识文章的全局唯一标识符+num属性值(编号)的方式构成,比如"这是一篇web网页文章,”,它的位置标识就可以表示为xxxxxx_1,这种方式相当于对"这是一篇web网页文章,”中每个字符的位置都用同一个位置标识符xxxxxx_1标识,也因此在其中"b”字符...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for independently adding position comments for web webpage articles. The method is characterized in that an identifier formed by one or several parts, called as a position identifier can be directly or indirectly given to each commented position in a web webpage article, the position identifier is used for identifying comments organized onto the position, and the comments identified by the position identifier can be directly or indirectly accessed according to the position identifier. The comments associated with a certain position are called as position comments. Through the method, the comments of certain content in the web webpage article can be organized onto a position wherein the commented contents are located or to which the commented contents are close, and access is carried out on the position rather than listing the comment contents after the web webpage article; and through the comment organization manner, the contents are organized more orderly, the comments are more targeted and the communication interactivity of comment systems is remarkably strengthened.

Description

technical field [0001] The invention relates to a method for commenting on web page articles, in particular to a method for independently adding position comments to web page articles. Background technique [0002] Putting articles on web pages and disseminating them through the Internet is an efficient way to share knowledge, such as news websites and self-media platforms, and through the comment system, readers can express their own opinions on the content of the articles and communicate and interact better. However, in the existing comment system or a system like a forum program, the comments published are displayed sequentially after the commented articles, the comments are not targeted, interactive, and the content organization is also very confusing. For example, there is an article on the webpage, and readers find that there is an error in a section of the content. In order to point out the error, the reader writes a comment in the comment area and publishes it. The e...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
CPCG06F16/9577G06F16/972
Inventor 钱慧敏
Owner 钱慧敏
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products