Mobile app version of vmapp.org
Login or Join
Bethany197

: Schema.org property for track number (music album) I'm in the process of creating a album-based webpage and now in the process of providing Schema.org annotations (using Microdata) for element

@Bethany197

Posted in: #Music #SchemaOrg

I'm in the process of creating a album-based webpage and now in the process of providing Schema.org annotations (using Microdata) for element as needed. The only element I'm having trouble labeling are the numeric representations of tracks, or track number.

I've searched through Schema.org's array of options for music records but had no luck finding anything. Is there a property that I'm overlooking that is best suited for numeric list values?

<div itemscope itemtype="http://schema.org/MusicRecording">
<div itemprop="track">
<span>01</span> <!--Here's an example of what I'm referring to -->
<span itemprop="name"">Track 1</span>
<time datetime="PT2M30S">2:30</time>
</div>

<div itemprop="track">
<span>02</span>
<span itemprop="name"">Track 2</span>
<time datetime="PT3M0S">3:00</time>
</div>
...
</div>

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Bethany197

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

The MusicRecording type does not define a suitable property for the track number. I think this makes sense, because a recording could be released on different records, possibly with a different track number.

The MusicAlbum type allows to reference an ItemList in the track property. An ItemList can reference ListItem items (itemListElement property), and each ListItem can have a position property, giving the position "of an item in a series or sequence of items". I guess this could be used for the track numbers in an album.

However, the description of MusicAlbum’s track property says:


If an ItemList is given, the list should contain items of type MusicRecording.


So they recommend to use MusicRecording, which can’t have the position property.

You could use both types, MusicRecording and ListItem, and provide the position property. This works fine with the syntaxes RDFa and JSON-LD, but it’s not allowed in the Microdata syntax (where you may provide multiple types, but you may not use properties that are not defined for all of these types; but many users seem to ignore this restriction).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme