Note: You are viewing the development version of Schema.org. See how we work for more details.

inCodeSet

A Schema.org Property

This term is in the "new" area - implementation feedback and adoption from applications and websites can help improve our definitions.
A CategoryCodeSet that contains this category code.

Values expected to be one of these types

Used on these types

Source

https://github.com/schemaorg/schemaorg/issues/894


Examples

Example 1
Copied
Example notes or example HTML without markup.
  1. <div>
  2.          <h1 >Defined Values in The Mammal Classification List</h1>
  3.          <ul>
  4.                 <li>Carnivore - A mammal that feeds on other animals</li>
  5.          </ul>
  6. </div>
Example encoded as Microdata embedded in HTML.
  1. <div itemscope itemtype="https://schema.org/CategoryCodeSet" id="C1">
  2.          <h1>Defined Values in <span itemprop="name">The Mammal Classification List</span></h1>
  3.          <ul>
  4.                 <li itemprop="hasCategoryCode" itemscope itemtype="https://schema.org/CategoryCode">
  5.                         <span itemprop="name">Carnivore</span> - <span itemprop="description">A mammal that feeds on other animals</span>
  6.                         <link itemprop="inCodeSet" href="#C1"/>
  7.                 </li>
  8.          </ul>
  9. </div>
Example encoded as RDFa embedded in HTML.
  1. <div vocab="https://schema.org/" typeof="CategoryCodeSet" id="C1">
  2.          <h1>Defined Values in <span property="name">The Mammal Classification List</span></h1>
  3.          <ul>
  4.                 <li property="hasCategoryCode" typeof="CategoryCode">
  5.                         <span property="name">Carnivore</span> - <span property="description">A mammal that feeds on other animals</span>
  6.                         <link property="inCodeSet" href="#C1"/>
  7.                 </li>
  8.          </ul>
  9. </div>
Example encoded as JSON-LD in a HTML script tag.
  1. {
  2.  "@context": "https://schema.org/",
  3.  "@type": "CategoryCodeSet",
  4.  "@id": "_C1",
  5.  "name": "The Mammal Classification List",
  6.  "hasCategoryCode": {
  7.         "@type": "CategoryCode",
  8.         "name": "Carnivore",
  9.         "description": "A mammal that feeds on other animals",
  10.         "inCodeSet": "_C1"
  11.         }
  12. }
Structured representation of the JSON-LD example.
Example 2
Copied
Example notes or example HTML without markup.
  1. <div>
  2.         <h1>ISO 639-2: Codes for the Representation of Names of Languages<h1>
  3.         <h2>Listing of codes:</h2>
  4.         <ul>
  5.                 <li>...</li>
  6.                 <li>cze</li>
  7.                 <li>...</li>
  8.         </ul>
  9. </div>
  10. <div>
  11.         <h2>Czech; tchèque; Tschechisch</h2>
  12.         <h3>From: ISO 639-2: Codes for the Representation of Names of Languages</h3>
  13.         English: Czech<br/>
  14.         French: tchèque<br/>
  15.         German: Tschechisch<br/>
  16. </div>
Example encoded as Microdata embedded in HTML.
  1. <div itemscope itemtype="https://schema.org/CategoryCodeSet" itemid="http://id.loc.gov/vocabulary/iso639-2">
  2.         <h1 itemprop="name">ISO 639-2: Codes for the Representation of Names of Languages</h1>
  3.         <h2>Listing of codes:</h2>
  4.         <ul>
  5.                 <li>...</li>
  6.                 <li><span itemprop="hasCategoryCode" itemid="http://id.loc.gov/vocabulary/iso639-2/cze">cze</span></li>
  7.                 <li>...</li>
  8.         </ul>
  9. </div>
  10. <div itemscope itemtype="https://schema.org/CategoryCode" itemid="http://id.loc.gov/vocabulary/iso639-2/cze">
  11.         <meta itemprop="codeValue" content="cze">
  12.         <h2>Czech; tchèque; Tschechisch</h2>
  13.         <link itemprop="inCodeSet" href="http://id.loc.gov/vocabulary/iso639-2">
  14.         <h3>From: ISO 639-2: Codes for the Representation of Names of Languages</h3>
  15.         <span itemprop="name" xml:lang="en" content="Czech">English: Czech</span><br/>
  16.         <span itemprop="name" xml:lang="fr" content="tchèque">French: tchèque</span><br/>
  17.         <span itemprop="name" xml:lang="de" content="Tschechisch">German: Tschechisch</span><br/>
  18. </div>
Example encoded as RDFa embedded in HTML.
  1. <div vocab="https://schema.org/" typeof="CategoryCodeSet" resource="http://id.loc.gov/vocabulary/iso639-2">
  2.         <h1 property="name">ISO 639-2: Codes for the Representation of Names of Languages</h1>
  3.         <h2>Listing of codes:</h2>
  4.         <ul>
  5.                 <li>...</li>
  6.                 <li><span property="hasCategoryCode" resource="http://id.loc.gov/vocabulary/iso639-2/cze">cze</span></li>
  7.                 <li>...</li>
  8.         </ul>
  9. </div>
  10. <div vocab="https://schema.org/" typeof="CategoryCode" resource="http://id.loc.gov/vocabulary/iso639-2/cze">
  11.         <meta property="codeValue" content="cze">
  12.         <h2>Czech; tchèque; Tschechisch</h2>
  13.         <link property="inCodeSet" href="http://id.loc.gov/vocabulary/iso639-2">
  14.         <h3>From: ISO 639-2: Codes for the Representation of Names of Languages</h3>
  15.         <span property="name" xml:lang="en" content="Czech">English: Czech</span><br/>
  16.         <span property="name" xml:lang="fr" content="tchèque">French: tchèque</span><br/>
  17.         <span property="name" xml:lang="de" content="Tschechisch">German: Tschechisch</span><br/>
  18. </div>
Example encoded as JSON-LD in a HTML script tag.
  1. [
  2.         {
  3.                 "@context": "https://schema.org/"
  4.         },
  5.         {
  6.                 "@type": "CategoryCodeSet",
  7.                 "@id": "http://id.loc.gov/vocabulary/iso639-2",
  8.                 "name": "ISO 639-2: Codes for the Representation of Names of Languages",
  9.                 "hasCategoryCode": "http://id.loc.gov/vocabulary/iso639-2/cze"
  10.         },
  11.         {
  12.                 "@type": "CategoryCode",
  13.                 "@id": "http://id.loc.gov/vocabulary/iso639-2/cze",
  14.                 "codeValue": "cze",
  15.                 "name": {
  16.                         "en": "Czech",
  17.                         "fr": "tchèque",
  18.                         "de": "Tschechisch"
  19.                 },
  20.                 "inCodeSet": "http://id.loc.gov/vocabulary/iso639-2"
  21.         }
  22. ]
Structured representation of the JSON-LD example.