Frage

<div itemscope="" itemtype="http://schema.org/ItemList" >
  <span itemprop="???"><a href="feed.rss">RSS of this section</a></span>

  <ul>
    <li itemprop="itemListElement" itemscope itemtype="http://example.net/Item">
    <a href="" itemprop="url">title</a>
    </li>
    <li></li>
    <li></li>
    <li></li>
  </ul> 
</div>

What about feed in span tag? Is there any Schema.org type for that?

War es hilfreich?

Lösung

Update 2019: Schema.org will likely have a webFeed property for podcasts soon (see pull request), and its definition will probably be extended so that it can be used in non-podcast contexts, too, but I’d doubt that it will be possible to add it to ItemList.


The Schema.org vocabulary doesn’t define a class or a property for feeds.

But HTML5 defines a way to link feeds: use the alternate link type together with the type attribute set to application/rss+xml resp. application/atom+xml.

<a href="feed.rss" rel="alternate" type="application/rss+xml">RSS of this section</a>

(The first feed linked that way is treated as the default feed for autodiscovery; so when you have several section feeds linked on the same page, you should probably make sure that the first feed is a general one and not specific to only one section.)

Andere Tipps

Like a PDF or AMP page RSS is simply an output format, or encoding, of a document or resource. Here's what schema.org has to say about encoding:

In cases where a CreativeWork has several media type representations, encoding can be used to indicate each MediaObject alongside particular encodingFormat information.

Applied to your example using microdata:

<div itemscope itemtype="http://schema.org/MediaObject">
  <meta itemprop="encodingFormat" content="application/rss+xml">
  <a itemprop="contentUrl" href="feed.rss">
    <span itemprop="description">RSS of this section</span>
  </a>
</div>

And tested with Yandex results in the following:

mediaobject
  itemType = http://schema.org/MediaObject
  encodingformat = application/rss+xml
  contenturl
    href = feed.rss
    text = RSS of this section
  description = RSS of this section

You can also use JSON-LD or RDFa instead of microdata if you prefer.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top