Note: you are viewing the webschemas.org development version of schema.org. See How we work for more details.
core + pending (Pending Extension): these terms are pending wider review. Feedback is welcomed!

CategoryCode

Defined in the pending.schema.org extension.
Canonical URL: http://schema.org/CategoryCode

Thing > Intangible > CategoryCode

A Category Code.
PropertyExpected TypeDescription
Properties from CategoryCode
codeValue Text A short textual code that uniquely identifies the value.
inCodeSet CategoryCodeSet  or
URL 
A CategoryCodeSet that contains this catagory code.
Properties from Thing
additionalType URL An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.
alternateName Text An alias for the item.
description Text A description of the item.
disambiguatingDescription Text A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.
identifier PropertyValue  or
Text  or
URL 
The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See background notes for more details.
image ImageObject  or
URL 
An image of the item. This can be a URL or a fully described ImageObject.
mainEntityOfPage CreativeWork  or
URL 
Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details.
Inverse property: mainEntity.
name Text The name of the item.
potentialAction Action Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
sameAs URL URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.
url URL URL of the item.


Instances of CategoryCode may appear as values for the following properties

PropertyOn TypesDescription
hasCategoryCode CategoryCodeSet A Category code contained in this code set.
legislationType Legislation The type of the legislation. Examples of values are "law", "act", "directive", "decree", "regulation", "statutory instrument", "loi organique", "règlement grand-ducal", etc., depending on the country.

More specific Types available in extensions

Source

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



Examples

Example 1
<div>
   <h1>Library of Congress Resource Type: <b>Manuscript</b></h1>
   Code: <b>Man</b>
</div>
<div itemscope itemtype="http://schema.org/CategoryCode">
   <h1>Library of Congress Resource Type: <b><span itemprop="name">Manuscript</span></b></h1>
   Code: <b><span itemprop="codeValue">Man</span></b>
   <link itemprop="inCodeSet" href="http://id.loc.gov/vocabulary/resourceTypes"/>
</div>
<div vocab="http://schema.org/" typeof="CategoryCode">
   <h1>Library of Congress Resource Type: <b><span property="name">Manuscript</span></b></h1>
   Code: <b><span property="codeValue">Man</span></b>
   <link property="inCodeSet" href="http://id.loc.gov/vocabulary/resourceTypes"/>
</div>
{
 "@context": "http://schema.org/",
 "@type": "CategoryCode",
 "codeValue": "Man",
 "inCodeSet": "http://id.loc.gov/vocabulary/resourceTypes"
}
Example 2
<div>
	 <h1 >Defined Values in The Mammal Classification List</h1>
	 <ul>
		<li>Carnivore - A mammal that feeds on other animals</li>
	 </ul>
</div>
<div itemscope itemtype="http://schema.org/CategoryCodeSet" id="C1">
	 <h1>Defined Values in <span itemprop="name">The Mammal Classification List</span></h1>
	 <ul>
		<li itemprop="hasCategoryCode" itemscope itemtype="http://schema.org/CategoryCode">
			<span itemprop="name">Carnivore</span> - <span itemprop="description">A mammal that feeds on other animals</span>
			<link itemprop="inCodeSet" href="#C1"/>
		</li>
	 </ul>
</div>
<div vocab="http://schema.org/" typeof="CategoryCodeSet" id="C1">
	 <h1>Defined Values in <span property="name">The Mammal Classification List</span></h1>
	 <ul>
		<li property="hasCategoryCode" typeof="CategoryCode">
			<span property="name">Carnivore</span> - <span property="description">A mammal that feeds on other animals</span>
			<link property="inCodeSet" href="#C1"/>
		</li>
	 </ul>
</div>
{
 "@context": "http://schema.org/",
 "@type": "CategoryCodeSet",
 "@id": "_C1",
 "name": "The Mammal Classification List",
 "hasCategoryCode": {
	"@type": "CategoryCode",
	"name": "Carnivore",
	"description": "A mammal that feeds on other animals",
	"inCodeSet": "_C1"
	}
}
Example 3
<div>
	<div>
	 <h1><a href="http://openjurist.org/dictionary/Ballentine">Ballentine's Law Dictionary</a></h1>
	</div>
	<div>
		<h2>Dictionary term</h2>
		Name: calendar year</br>
		Description: The period from January 1st to December 31st, inclusive, of any year.</br>
		In Dictionary: Ballentine's Law Dictionary
	</div>
	<div>
		<h2>Dictionary term</h2>
		Name: schema</br>
		Description: A representation of a plan or theory in the form of an outline or model.</br>
		In Dictionary: Ballentine's Law Dictionary
	</div>
</div>
<div>
	<div itemscope itemtype="http://schema.org/CategoryCodeSet">
	<meta itemprop="alernateType" content="http://schema.org/Book">
	 <h1><a itemprop="itemid" href="http://openjurist.org/dictionary/Ballentine"><span itemprop="name">Ballentine's Law Dictionary</span></a></h1>
	</div>
	<div itemscope itemtype="http://schema.org/CategoryCode">
		<h2>Dictionary term</h2>
		<link itemprop="url" href="http://openjurist.org/dictionary/Ballentine/term/calendar-year"/>
		Name: <span itemprop="name">calendar year</span></br>
		Description: <span itemprop="description">The period from January 1st to December 31st, inclusive, of any year.</span></br>
		In Dictionary: Ballentine's Law Dictionary
		<link itemprop="inCodeSet" href="http://openjurist.org/dictionary/Ballentine">
	</div>
	<div itemscope itemtype="http://schema.org/CategoryCode">
		<h2>Dictionary term</h2>
		<link itemprop="url" href="http://openjurist.org/dictionary/Ballentine/term/schema"/>
		Name: <span itemprop="name">schema</span></br>
		Description: <span itemprop="description">A representation of a plan or theory in the form of an outline or model.</span></br>
		In Dictionary: Ballentine's Law Dictionary
		<link itemprop="inCodeSet" href="http://openjurist.org/dictionary/Ballentine">
	</div>
</div>
<div  vocab="http://schema.org/">
	<div typeof"CategoryCodeSet Book">
	 <h1><a property="itemid" href="http://openjurist.org/dictionary/Ballentine"><span property="name">Ballentine's Law Dictionary</span></a></h1>
	</div>
	<div typeof="CategoryCode">
		<h2>Dictionary term</h2>
		<link property="url" href="http://openjurist.org/dictionary/Ballentine/term/calendar-year"/>
		Name: <span property="name">calendar year</span></br>
		Description: <span property="description">The period from January 1st to December 31st, inclusive, of any year.</span></br>
		In Dictionary: Ballentine's Law Dictionary
		<link property="inCodeSet" href="http://openjurist.org/dictionary/Ballentine">
	</div>
	<div typeof="CategoryCode">
		<h2>Dictionary term</h2>
		<link propery="url" href="http://openjurist.org/dictionary/Ballentine/term/schema"/>
		Name: <span property="name">schema</span></br>
		Description: <span property="description">A representation of a plan or theory in the form of an outline or model.</span></br>
		In Dictionary: Ballentine's Law Dictionary
		<link property="inCodeSet" href="http://openjurist.org/dictionary/Ballentine">
	</div>
</div>
[
	{
		"@context": "http://schema.org/"
	},
	{
		"@type": ["CategoryCodeSet","Book"],
		"@id": "http://openjurist.org/dictionary/Ballentine",
		"name": "Ballentine's Law Dictionary"
	},
	{
		"@type": "CategoryCode",
		"@id": "http://openjurist.org/dictionary/Ballentine/term/calendar-year",
		"name": "calendar year",
		"description": "The period from January 1st to December 31st, inclusive, of any year.",
		"inCodeSet": "http://openjurist.org/dictionary/Ballentine"
	},
	{
		"@type": "CategoryCode",
		"@id": "http://openjurist.org/dictionary/Ballentine/term/schema",
		"name": "schema",
		"description": "A representation of a plan or theory in the form of an outline or model.",
		"inCodeSet": "http://openjurist.org/dictionary/Ballentine"
	}
]
Example 4
<div>
	<h1>Occupation Term defined by <a href="http://onetonline.org">O*Net Online</a></h1>
	<h2>51-6042.00 - Shoe Machine Operators and Tenders</h2>
	Operate or tend a variety of machines to join, decorate, reinforce, or finish shoes and shoe parts.
</div>
<div itemscope itemtype="http://schema.org/CategoryCode">
	<h1>Occupation Term defined by <a itemprop="inCodeSet" href="http://onetonline.org">O*Net Online</a></h1>
	<h2><span itemprop="codeValue">51-6042.00</span> - <span itemprop="name">Shoe Machine Operators and Tenders</span></h2>
	<span itemprop="description">Operate or tend a variety of machines to join, decorate, reinforce, or finish shoes and shoe parts.</span>
</div>
<div vocab="http://schema.org/" typeof="CategoryCode">
	<h1>Occupation Term defined by <a property="inCodeSet" href="http://onetonline.org">O*Net Online</a></h1>
	<h2><span property="codeValue">51-6042.00</span> - <span property="name">Shoe Machine Operators and Tenders</span></h2>
	<span property="description">Operate or tend a variety of machines to join, decorate, reinforce, or finish shoes and shoe parts.</span>
</div>
{
 "@context": "http://schema.org/",
 "@type": "CategoryCode",
 "name": "Shoe Machine Operators and Tenders",
 "codeValue": "51-6042.00",
 "description": "Operate or tend a variety of machines to join, decorate, reinforce, or finish shoes and shoe parts.",
 "inCodeSet": "http://onetonline.org"
}
Example 5
<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>
<div itemscope itemtype="http://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="http://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="http://id.loc.gov/vocabulary/iso639-2">
	<h3>From: ISO 639-2: Codes for the Representation of Names of Languages</h3>
	<span itemprop="name" xml:lang="en" content="Czech">English: Czech</span></br>
	<span itemprop="name" xml:lang="fr" content="tchèque">French: tchèque</span></br>
	<span itemprop="name" xml:lang="de" content="Tschechisch">German: Tschechisch</span></br>
</div>
<div vocab="http://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="http://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="http://id.loc.gov/vocabulary/iso639-2">
	<h3>From: ISO 639-2: Codes for the Representation of Names of Languages</h3>
	<span property="name" xml:lang="en" content="Czech">English: Czech</span></br>
	<span property="name" xml:lang="fr" content="tchèque">French: tchèque</span></br>
	<span property="name" xml:lang="de" content="Tschechisch">German: Tschechisch</span></br>
</div>
[
	{
		"@context": "http://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"
	}

Schema Version 3.3