English 中文(简体)
我应该用什么微观数据做博客?
原标题:What microdata should I use for a blog?

The blog is basically a page that lists the summary of like 10 articles, each item title linking to the full article page.

我看到:

我在什么地方使用这些工具?

现在,在单条页上,我有:

  <article itemscope itemtype="http://schema.org/Article">       

    <h1 itemprop="name"> <a href="..."> A title...  </a> </h1>    

    <div itemprop="articleBody">
       bla bla
    </div>

    ...

  </article>

什么是我猜想的,但我怎么做? 我是否在每个条款中添加这些内容,并在所有条款的集装箱部分添加<条码>项目范围类别=”http://schema.org/Blog” 项目prop=“blogPosts”? 因为,在《刑法》中,该条似乎不是log子。

最佳回答

我同意其他人的说法,即这个主题非常模糊。 我永远不会试图就这一问题表达我的想法,并告诉你,我怎么做。

我使用WebPageBlog,在同一文件中标有不同东西的项目类型。

Web page

I use WebPage。 标签上的物品类型(但也可以使用面包umb的其他任何父母)。 通过这样做,我可以打上我的面包.。

<body itemscope itemtype="http://schema.org/WebPage">
  <ul itemprop="breadcrumb">
    <li>
      <a href="foo">foo</a> 
    </li>

    <li>
      <a href="foo/bar">bar</a>
    </li>

    <li>
      <a href="foo/bar/baz">baz</a>
    </li>
  </ul>
    
    ...
    
</body>

Blog posts

当我选择博客时,我使用Blog 包含所有博客文章的包装上的项目类型。 我将每一条都标有以下财产:<条码>blogPosts,课程的使用BlogPosting作为项目类型。

<section itemscope itemtype="http://schema.org/Blog">
  <article itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting">
    ...
  </article>
    
  <article itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting">
    ...
  </article>
    
  ...
    
</section>

Article page

<><>><><><><><>><><>><>>关于本意见的增订见以下编辑>。

在文章的上页上,don t使用Blog 。 但是,我确实把这个职位作为BlogPosting项目。

<article itemscope itemtype="http://schema.org/BlogPosting">
  ...
</article>

The only reason I can see that you would wanna mark something with a Blog item type is because of the blogPosts properties and the fact to say that it is a blog. I think you fulfill saying that it s a blog by marking the article as a BlogPosting. I also don t think it s correct using the property in this context since this is used in a plural form. To me that reflect a different area of use.


Edit

I m not sure if the schema has extended or if I missed it the first time around, but the Blog item has a property called blogPost now, that is the singular form blogPosts. So then I would say that it makes more sense to mark up the main element as the Blog item and use the blogPost property for the article and mark it up as a BlogPosting item

问题回答

我将使用,http://schema.org/WebPage,供您所有上页使用,因为这样,你就可以界定像Breadcrumbs/navigation这样的东西,这对于描述一个网站无论内容如何。

微观数据表仍有许多工作需要,你指出似乎存在差距——《公约》与我所能看到的任何东西(例如,《公约》条款或条款)之间没有父母/子女关系。

我真的看不到任何表明父母子女等级关系的重要途径,除非父母是必须表达的权宜之计,因此我认为你可以放弃。

然而,你没有提及“物品”的哪类内容。 如果他们是更多的记者或官员(如新闻文章、研究论文等),则我使用http://schema.org/Article,供每一条使用,而不担心本条索引页。 否则,使用http://schema.org/Blog。 http://schema.org/BlogPosting for each.

该条款和Blog的化学描述目前相当模糊,将来可能改变某个时间,但认为Blog的化学物对 a、 well(在下文的“下,在下文各条图表描述页中甚至暗含)来说没有什么意义。 更具体的类别:

因此,你可以先用高层次的公式确定你的主博客页:

<!DOCTYPE html itemscope itemtype="http://schema.org/Blog">
<meta itemprop="creator" content="Creator of the blog">
<meta itemprop="name" content="Title of your Blog">
<meta itemprop="description" content="Description of your blog">
<meta itemprop="image" content="http://www.yourblog.com/main/image/pic.gif">

并且,你可以用第二级博客 s,,界定适当的项目性质,如:

<!DOCTYPE html itemscope itemtype="http://schema.org/BlogPosting">
<meta itemprop="author" content="Author of your blog">
<meta itemprop="name" content="Title of your content">
<meta itemprop="description" content="Description of your post">
<meta itemprop="image" content="http://www.yourblog.com/post/image/pic.gif">

Urghh, complicated :P, there are a million properties you can employ, but just focus on the most important ones.

Oops! this code is error!

<!DOCTYPE html itemscope itemtype="http://schema.org/Blog">

您应使用该守则:

<!DOCTYPE html>

而不是:

<!DOCTYPE html itemscope itemtype="http://schema.org/Blog">

当我们宣布博客的类型时,我们可以在标签上添加:

<body itemscope=   itemtype= http://schema.org/Blog >

Inside of this section, we can use "Itemprop" as the property of the itemtype.
We re talking about the type of a site, not a basic language of a site.

其他重要项目

表格

<div itemscope itemtype="http://schema.org/Person">
     <span itemprop="name">Mahdi Maghrooni</span>
     <img src="http://maghrooni.ir/img/users/FCwNdpWQKGQqiZphN6rj2YuHY3bXrF.jpg" itemprop="image" alt="Maghrooni" />
</div>




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!