大网数据广告活动
网站运营与故障问答

Can dateModified be unset on a Schema.org Article, if so when should it be set for the first time?

· 52CE 我爱测

I am trying to understand what the various dates mean in Article from Schema.org . From what I can understand is the following: dateCreated is when the writer first starting with the article. Nothing has been made public yet for …

问题原文

原帖链接 · Brendan Vogt · CC BY-SA 3.0

I am trying to understand what the various dates mean in Article from Schema.org.

From what I can understand is the following:

  • dateCreated is when the writer first starting with the article. Nothing has been made public yet for reading. dateCreated can be earlier or the same as datePublished, but not later.
  • datePublished is when the writer is finished with the article and has made it available online for reading.
  • dateModified is when the article is modified.

The above is my opinion. What is the general opinion regarding this?

If an article has not be edited will it then contain nothing/null for dateModified? The reason why I ask is because when you run your code through the structured data testing tool it says that dateModified is not required but recommended. How can it be recommended for articles that have not been edited from their original source? Should dateModified then be the same as datePublished just so that the red error message can go away? Or shouldn't I worry about it and treat it as a warning?

When is dateModified set for the first time? After dateCreated or after datePublished?

社区高分解答

原帖链接 · grg · CC BY-SA 3.0

dateModified always has a potential value (there's always something you could set) and can be equal to or later than dateCreated. ‘Creating is modifying’ and a good example of this is the filesystem on whatever OS you're using — creating a file sets the dateCreated and the dateModified together, then subsequent edits change the dateModified.

Whether or not you count publishing as a modification or not is up to you, but I encourage you to be consistent with this. In my case, I do count publishing as a modification, so when publishing I set datePublished and update dateModified.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-03-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。