codeValue
A Schema.org Property
This term is in the "new" area - implementation feedback and adoption from applications and websites can help improve our definitions.
- Canonical URL: https://schema.org/codeValue
- Check for open issues.
A short textual code that uniquely identifies the value.
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.
<div> <h1>ISO 639-2: Codes for the Representation of Names of Languages<h1> <h2>Listing of codes:</h2> <ul> <li>...</li> <li>cze</li> <li>...</li> </ul> </div> <div> <h2>Czech; tchèque; Tschechisch</h2> <h3>From: ISO 639-2: Codes for the Representation of Names of Languages</h3> English: Czech<br/> French: tchèque<br/> German: Tschechisch<br/> </div>
Example encoded as Microdata embedded in HTML.
<div itemscope itemtype="https://schema.org/CategoryCodeSet" itemid="http://id.loc.gov/vocabulary/iso639-2"> <h1 itemprop="name">ISO 639-2: Codes for the Representation of Names of Languages</h1> <h2>Listing of codes:</h2> <ul> <li>...</li> <li><span itemprop="hasCategoryCode" itemid="http://id.loc.gov/vocabulary/iso639-2/cze">cze</span></li> <li>...</li> </ul> </div> <div itemscope itemtype="https://schema.org/CategoryCode" itemid="http://id.loc.gov/vocabulary/iso639-2/cze"> <meta itemprop="codeValue" content="cze"> <h2>Czech; tchèque; Tschechisch</h2> <link itemprop="inCodeSet" href="/?originalUrl=https%3A%2F%2Fschema.org%2F%26%2334%3Bhttp%3A%2F%2Fid.loc.gov%2Fvocabulary%2Fiso639-2%26%2334%3B%26gt%3B%26lt%3Bh3%26gt%3BFrom%3A%2520ISO%2520639-2%3A%2520Codes%2520for%2520the%2520Representation%2520of%2520Names%2520of%2520Languages%26lt%3B%2Fh3%26gt%3B%26lt%3Bspan%2520itemprop%3D%26%2334%3Bname%26%2334%3B%2520xml%3Alang%3D%26%2334%3Ben%26%2334%3B%2520content%3D%26%2334%3BCzech%26%2334%3B%26gt%3BEnglish%3A%2520Czech%26lt%3B%2Fspan%26gt%3B%26lt%3Bbr%2F%26gt%3B%26lt%3Bspan%2520itemprop%3D%26%2334%3Bname%26%2334%3B%2520xml%3Alang%3D%26%2334%3Bfr%26%2334%3B%2520content%3D%26%2334%3Btch%25C3%25A8que%26%2334%3B%26gt%3BFrench%3A%2520tch%25C3%25A8que%26lt%3B%2Fspan%26gt%3B%26lt%3Bbr%2F%26gt%3B%26lt%3Bspan%2520itemprop%3D%26%2334%3Bname%26%2334%3B%2520xml%3Alang%3D%26%2334%3Bde%26%2334%3B%2520content%3D%26%2334%3BTschechisch%26%2334%3B%26gt%3BGerman%3A%2520Tschechisch%26lt%3B%2Fspan%26gt%3B%26lt%3Bbr%2F%26gt%3B%26lt%3B%2Fdiv%26gt%3B%253C%2Fpre">
Example encoded as RDFa embedded in HTML.
<div vocab="https://schema.org/" typeof="CategoryCodeSet" resource="http://id.loc.gov/vocabulary/iso639-2"> <h1 property="name">ISO 639-2: Codes for the Representation of Names of Languages</h1> <h2>Listing of codes:</h2> <ul> <li>...</li> <li><span property="hasCategoryCode" resource="http://id.loc.gov/vocabulary/iso639-2/cze">cze</span></li> <li>...</li> </ul> </div> <div vocab="https://schema.org/" typeof="CategoryCode" resource="http://id.loc.gov/vocabulary/iso639-2/cze"> <meta property="codeValue" content="cze"> <h2>Czech; tchèque; Tschechisch</h2> <link property="inCodeSet" href="/?originalUrl=https%3A%2F%2Fschema.org%2F%26%2334%3Bhttp%3A%2F%2Fid.loc.gov%2Fvocabulary%2Fiso639-2%26%2334%3B%26gt%3B%26lt%3Bh3%26gt%3BFrom%3A%2520ISO%2520639-2%3A%2520Codes%2520for%2520the%2520Representation%2520of%2520Names%2520of%2520Languages%26lt%3B%2Fh3%26gt%3B%26lt%3Bspan%2520property%3D%26%2334%3Bname%26%2334%3B%2520xml%3Alang%3D%26%2334%3Ben%26%2334%3B%2520content%3D%26%2334%3BCzech%26%2334%3B%26gt%3BEnglish%3A%2520Czech%26lt%3B%2Fspan%26gt%3B%26lt%3Bbr%2F%26gt%3B%26lt%3Bspan%2520property%3D%26%2334%3Bname%26%2334%3B%2520xml%3Alang%3D%26%2334%3Bfr%26%2334%3B%2520content%3D%26%2334%3Btch%25C3%25A8que%26%2334%3B%26gt%3BFrench%3A%2520tch%25C3%25A8que%26lt%3B%2Fspan%26gt%3B%26lt%3Bbr%2F%26gt%3B%26lt%3Bspan%2520property%3D%26%2334%3Bname%26%2334%3B%2520xml%3Alang%3D%26%2334%3Bde%26%2334%3B%2520content%3D%26%2334%3BTschechisch%26%2334%3B%26gt%3BGerman%3A%2520Tschechisch%26lt%3B%2Fspan%26gt%3B%26lt%3Bbr%2F%26gt%3B%26lt%3B%2Fdiv%26gt%3B%253C%2Fpre">
Example encoded as JSON-LD in a HTML script tag.
[
{
"@context": "https://schema.org/"
},
{
"@type": "CategoryCodeSet",
"@id": "http://id.loc.gov/vocabulary/iso639-2",
"name": "ISO 639-2: Codes for the Representation of Names of Languages",
"hasCategoryCode": "http://id.loc.gov/vocabulary/iso639-2/cze"
},
{
"@type": "CategoryCode",
"@id": "http://id.loc.gov/vocabulary/iso639-2/cze",
"codeValue": "cze",
"name": {
"en": "Czech",
"fr": "tchèque",
"de": "Tschechisch"
},
"inCodeSet": "http://id.loc.gov/vocabulary/iso639-2"
}
]
Structured representation of the JSON-LD example.