Language

Natural languages such as Spanish, Tamil, Hindi, English, etc. Formal language code tags expressed in BCP 47 can be used via the alternateName property. The Language type previously also covered programming languages such as Scheme and Lisp, which are now best represented using ComputerLanguage.

Example eg-0169

Without Markup (source lint)

This example shows a JSON-LD description of services that do not necessarily have a direct
human-oriented HTML description. It describes a GovernmentService named "Veterans Affairs Emergency Mental Health",
its operator, service area and service details, such as its Veterans Crisis Line (including  phone contact line
hours of operation, language and other details).

RDFa

No example in this format

microdata

No example in this format

JSON-LD (source lint)

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "GovernmentService",
  "name": "Veterans Affairs Emergency Mental Health",
  "serviceType": "Psychiatric Emergency Services",
  "serviceOperator": {
    "@type": "GovernmentOrganization",
    "name": "US Department of Veterans Affairs"
  },
  "areaServed": {
    "@type": "AdministrativeArea",
    "name": "Massachusetts"
  },
  "audience": {
    "@type": "Audience",
    "name": "Veterans"
  },
  "availableChannel": {
    "@type": "ServiceChannel",
    "name": "Urgent Care Clinic",
    "availableLanguage": {
      "@type": "Language",
      "name": "Spanish",
      "alternateName": "es"
    },
    "serviceLocation": {
      "@type": "Hospital",
      "name": "VA Boston -- West Roxbury",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "1400 VFW Parkway",
        "addressLocality": "West Roxbury",
        "addressRegion": "MA",
        "postalCode": "02132"
      }
    }
  }
}
</script>

structured

rdf:type schema:GovernmentService
schema:areaServed
rdf:type schema:AdministrativeArea
schema:name Massachusetts
schema:audience
rdf:type schema:Audience
schema:name Veterans
schema:availableChannel
rdf:type schema:ServiceChannel
schema:availableLanguage
rdf:type schema:Language
schema:alternateName es
schema:name Spanish
schema:name Urgent Care Clinic
schema:serviceLocation
rdf:type schema:Hospital
schema:address
rdf:type schema:PostalAddress
schema:addressLocality West Roxbury
schema:addressRegion MA
schema:postalCode 02132
schema:streetAddress 1400 VFW Parkway
schema:name VA Boston -- West Roxbury
schema:name Veterans Affairs Emergency Mental Health
schema:serviceOperator
rdf:type schema:GovernmentOrganization
schema:name US Department of Veterans Affairs
schema:serviceType Psychiatric Emergency Services

Example eg-0369

Without Markup (source lint)

This example is in microdata only.

RDFa (source lint)

This example is in microdata only.

microdata (source lint)

<div itemscope itemtype="https://schema.org/Hotel">
  <h1><span itemprop="name">ACME Hotel Innsbruck</span></h1>
  <span itemprop="description">A beautifully located business hotel right in the
heart of the alps. Watch the sun rise over the scenic Inn valley while
enjoying your morning coffee.</span>
  We speak:
  <ul>
    <li itemprop="availableLanguage" itemscope itemtype="https://schema.org/Language">
      <span itemprop="name">English</span>
    </li>
    <li itemprop="availableLanguage" itemscope itemtype="https://schema.org/Language">
      <span itemprop="name">German</span>
    </li>
  </ul>
</div>

JSON-LD (source lint)

This example is in microdata only.

structured