CategoryCode - Schema.org Type
Note
: You are viewing the development
version of
Schema.org
See
how we work
for more details.
Schema.org
Docs
Schemas
Validate
About
CategoryCode
A Schema.org Type
This term is in the "new" area - implementation feedback and adoption from applications and websites can help improve our definitions.
Thing
Intangible
DefinedTerm
CategoryCode
[more...]
Canonical URL: https://schema.org/CategoryCode
Check for open issues.
A Category Code.
Property
Expected Type
Description
Properties from
CategoryCode
codeValue
Text
A short textual code that uniquely identifies the value.
inCodeSet
CategoryCodeSet
or
URL
CategoryCodeSet
that contains this category code.
Properties from
DefinedTerm
about
Thing
The subject matter of an object.
Inverse property:
subjectOf
inDefinedTermSet
DefinedTermSet
or
URL
DefinedTermSet
that contains this term.
termCode
Text
A code that identifies this
DefinedTerm
within a
DefinedTermSet
Properties from
Thing
additionalType
Text
or
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. Typically the value is a URI-identified RDF class, and in this case corresponds to the
use of rdf:type in RDF. Text values can be used sparingly, for cases where useful information can be added without their being an appropriate schema to reference. In the case of text values, the class label should follow the schema.org
style guide
alternateName
Text
An alias for the item.
description
Text
or
TextObject
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.
owner
Organization
or
Person
A person or organization who owns this Thing.
Inverse property:
owns
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.
subjectOf
CreativeWork
or
Event
A CreativeWork or Event about this Thing.
Inverse property:
about
url
URL
URL of the item.
Instances of
CategoryCode
may appear as a value for the following properties
Property
On Types
Description
category
ActionAccessSpecification
or
Guide
or
Invoice
or
Offer
or
PhysicalActivity
or
Product
or
Recommendation
or
Service
or
SpecialAnnouncement
A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.
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.
occupationalCategory
EducationalOccupationalProgram
or
JobPosting
or
Occupation
or
Physician
or
WorkBasedProgram
A category describing the job, preferably using a term from a taxonomy such as
BLS O*NET-SOC
ISCO-08
or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.
Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O*NET-SOC.
More specific Types
MedicalCode
Source
Examples
Example 1
Copied
No Markup
Microdata
RDFa
JSON-LD
Structure
Example notes or example HTML without markup.


Defined Values in The Mammal Classification List



  • Carnivore - A mammal that feeds on other animals



Example encoded as
Microdata
embedded in HTML.

Defined Values in The Mammal Classification List




  • Carnivore - A mammal that feeds on other animals




Example encoded as
RDFa
embedded in HTML.

Defined Values in The Mammal Classification List




  • Carnivore - A mammal that feeds on other animals




Example encoded as
JSON-LD
in a HTML script tag.
"@context": "https://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"
Structured representation of the JSON-LD example.
"@context": "https://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 2
Copied
No Markup
Microdata
RDFa
JSON-LD
Structure
Example notes or example HTML without markup.

ISO 639-2: Codes for the Representation of Names of Languages


Listing of codes:



  • ...

  • cze

  • ...




Czech; tchèque; Tschechisch


From: ISO 639-2: Codes for the Representation of Names of Languages


English: Czech

French: tchèque

German: Tschechisch


Example encoded as
Microdata
embedded in HTML.

ISO 639-2: Codes for the Representation of Names of Languages


Listing of codes:



  • ...

  • cze

  • ...





Czech; tchèque; Tschechisch



From: ISO 639-2: Codes for the Representation of Names of Languages


English: Czech

French: tchèque

German: Tschechisch


Example encoded as
RDFa
embedded in HTML.

ISO 639-2: Codes for the Representation of Names of Languages


Listing of codes:



  • ...

  • cze

  • ...





Czech; tchèque; Tschechisch



From: ISO 639-2: Codes for the Representation of Names of Languages


English: Czech

French: tchèque

German: Tschechisch


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.
"@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"
Terms and conditions
Schema.org
V30.0
2026-03-19