How do I go about adding a music album duration in schema.org?
What's the rationale for the lack of duration in type MusicAlbum? If something defines an album is its length, but no duration is available unless an album is tagged as MusicRelease.
There is timeRequired, but it is also described as "approximate or typical time it usually takes to work with or through the content", but music album are anything but approximates.
How do you tag duration in music album without having to markup a MusicRelease?
the type
MusicAlbumhas the propertyalbumReleasethat can be extended with the embedded typeMusicReleasewhich in turn has the propertydurationthat you need. Markup example:In addition to the response from LizardKG dated January 13, 2024.
Your structured data has markup for two separate top-level types
MusicReleaseand the separate typeMusicAlbum. Each document, including an HTML document such as a web page, can have only one content subject. It is a good idea to create the most appropriate top-level type in your structured data to represent the subject of the content. Of course, there can only be one top-level type, because the content has only one subject. Thus, structured data should represent the structure of the HTML document and this is probably reflected in the name STRUCTURED data.Your main content represents the subject such as the music album. But your structured data represents 20 separate top-level types that share the juice among themselves.
In addition, your SD is created in the microdate format, which is highly dependent on the validity of the HTML source code in which the microdate is installed. But your source code has invalid HTML, including critical errors like Duplicate ID and microdata errors, e.g.: