How to describe the temperature with schema.org?

by priscilla.langworth , in category: SEO , 4 months ago

How to describe the temperature with schema.org?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by susan , 4 months ago

@priscilla.langworth 

To describe the temperature using Schema.org, you can use the "Temperature" type and its related properties. Here is an example of how to describe the temperature:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Temperature",
  "name": "Temperature",
  "description": "Current temperature",
  "unitCode": "CEL",
  "value": "25"
}
</script>


In the example above, the temperature is described using the "Temperature" type. Here's a breakdown of the properties used:

  • @type: Specifies the type of the entity, which is "Temperature" in this case.
  • name: Provides a name or title for the temperature.
  • description: Describes the temperature (e.g., current temperature).
  • unitCode: Specifies the unit of measurement for the temperature. In this example, "CEL" represents Celsius.
  • value: Represents the actual temperature value. It is set to "25" in this example.


You can modify the example code by changing the name, description, unitCode, and value properties to match the specific temperature you want to describe.