Description with HTML Microdata¶
Some sources present a large number of different types of description. In this case, we combine them into one description property, formatting it using the Microdata (HTML) pattern.
Formatted HTML also contains classes
- ds_description
- ds_additionaldescription
- ds_title
- ds_text
With this classes you can style the HTML however you want.
If you want to get each type of description separately, you can use the descriptionMode=splitToAdditionalProperty query parameter, which will extract additional information from the formatted description into additional properties.
Formatted description example:
<div class="ds_description">
<div class="ds_text" itemprop="description">
<p>Main description</p>
</div>
</div>
<div class="ds_additionaldescription" itemprop="additionalProperty" itemid="22714" itemscope itemtype="https://schema.org/PropertyValue">
<div class="ds_title" itemprop="name">Konditionen / Extras</div>
<div class="ds_text" itemprop="value">
<p>Additional Konditionen / Extras description</p>
</div>
</div>
<div class="ds_additionaldescription" itemprop="additionalProperty" itemid="53952" itemscope itemtype="https://schema.org/PropertyValue">
<div class="ds_title" itemprop="name">Sprache</div>
<div class="ds_text" itemprop="value">
<p>Additional Sprache description</p>
</div>
</div>
Part of response with extracted additional information:
{
"description": "<p>Main description</p>",
"additionalProperty": [
{
"value": "<p>Additional Konditionen / Extras description</p>",
"propertyId": "22714",
"audience": [
"description"
],
"name": "Konditionen / Extras"
},
{
"value": "<p>Additional Sprache description</p>",
"propertyId": "53952",
"audience": [
"description"
],
"name": "Sprache"
}
]
}
Last update:
April 21, 2022 13:06:13