⚠️ Важно: данный сайт не имеет отношения к владельцам schema.org, это всего лишь любительский (неофициальный) перевод. Сайт сделан для тех кто плохо воспринимает технический английский. Оригинальную и актуальную информацию на английском языке вы можете найти тут: schema.org/CategoryCode.

CategoryCode

Микроразметка CategoryCode помогает классифицировать информацию на вашем сайте с помощью категорического кода.

CategoryCode - Тип Schema.org
Описание: Код категории.
Категорический код (CategoryCode) – это микроразметка, которая используется для классификации содержания на веб-страницах. Он позволяет структурировать информацию таким образом, чтобы поисковые системы могли более точно понимать контекст страницы. Для указания CategoryCode на странице следует использовать соответствующие свойства Schema.org, например, 'categoryCode'. Помните, что правильное использование микроразметки способствует повышению видимости вашего контента в поисковых результатах.
СвойствоОжидаемый типОписание
Properties from CategoryCode
codeValue Text Кодовое значение – краткий текстовый код, который уникально идентифицирует значение.
inCodeSet CategoryCodeSet или URL A CategoryCodeSet that contains this category code.
Properties from DefinedTerm
inDefinedTermSet DefinedTermSet или URL A DefinedTermSet that contains this term.
termCode Text A code that identifies this DefinedTerm within a DefinedTermSet.
Properties from Thing
additionalType Text или 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 Псевдоним для элемента.
description Text или TextObject Описание элемента.
disambiguatingDescription Text Подсвойство описания. Краткое описание элемента, используемое для различения от других, схожих элементов. Для того чтобы описание было полезным для разрешения неоднозначности, может потребоваться информация из других свойств (в частности, name).
identifier PropertyValue или Text или 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 или URL An image of the item. This can be a URL or a fully described ImageObject.
mainEntityOfPage CreativeWork или URL Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details. Обратное свойство: mainEntity
name Text Название элемента.
potentialAction Action Указывает на потенциальное действие, описывающее идеализированное действие, в котором этот объект мог бы выполнять роль 'объекта'.
sameAs URL URL страницы для ссылки, однозначно указывающей на идентичность объекта. Например, URL страницы объекта на Википедии, записи в Wikidata или официального веб-сайта.
subjectOf CreativeWork или Event Свойство Schema.org - subjectOf: A CreativeWork or Event about this Thing. Обратное свойство: about
url URL URL объекта.

Instances of CategoryCode may appear as a value for the following properties
СвойствоOn TypesОписание
category ActionAccessSpecification или Invoice или Offer или PhysicalActivity или Product или Recommendation или Service или SpecialAnnouncement Категория для элемента. Большие знаки больше или косые черты могут использоваться неформально для обозначения иерархии категорий.
hasCategoryCode CategoryCodeSet Код категории, содержащийся в этом наборе кодов.
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 или JobPosting или Occupation или Physician или 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

Source

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


Examples

Example 1
Copied
Example notes or example HTML without markup.
<div>
	 <h1 >Defined Values in The Mammal Classification List</h1>
	 <ul>
		<li>Carnivore - A mammal that feeds on other animals</li>
	 </ul>
</div>
Example encoded as Microdata embedded in HTML.
<div itemscope itemtype="https://schema.org/CategoryCodeSet" id="C1">
	 <h1>Defined Values in <span itemprop="name">The Mammal Classification List</span></h1>
	 <ul>
		<li itemprop="hasCategoryCode" itemscope itemtype="https://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>
Example encoded as RDFa embedded in HTML.
<div vocab="https://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>
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.
Example 2
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="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>
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="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>
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.

Обсуждение "CategoryCode"