Semantic relationships between products and accessories
How to distinguish functional alternatives, related products and accessories, and specify the direction of Schema.org relationships correctly.

An online store catalogue is more than a collection of independent product pages. Some products may be functional alternatives, others complement each other, and accessories are designed for use with specific models. Semantic relationships help describe these differences in structured data.
Which relationships does the vocabulary provide?
| Property | When to use it |
|---|---|
isSimilarTo | For functionally similar products. |
isRelatedTo | For products with a meaningful relationship whose type is not described more precisely. |
isAccessoryOrSparePartFor | For an accessory or spare part designed for another product. |
The last property is particularly important: it is specified on the accessory or spare part and points to the main product. For example, a replacement filter is an accessory for a coffee machine, not the other way round.
Example relationship between three products
Suppose Barista X1 and Barista X2 are functional alternatives and the Barista F1 filter is genuinely compatible with Barista X1. The three entities can then be represented using stable URL-based identifiers. All URLs and products in the example are hypothetical.
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Product",
"@id": "https://example.com/products/barista-x1#product",
"name": "Barista X1",
"isSimilarTo": {
"@id": "https://example.com/products/barista-x2#product"
}
},
{
"@type": "Product",
"@id": "https://example.com/products/barista-x2#product",
"name": "Barista X2"
},
{
"@type": "Product",
"@id": "https://example.com/products/barista-f1#product",
"name": "Barista F1",
"isAccessoryOrSparePartFor": {
"@id": "https://example.com/products/barista-x1#product"
}
}
]
}
This is an illustration of a semantic graph, not a universal template to insert on every page. Marked-up entities and relationships must correspond to information available to visitors. Do not add compatibility that has not been confirmed by the catalogue or manufacturer.
Why recommendations do not always imply compatibility
A “You may also like” section may contain commercial recommendations rather than alternatives or compatible accessories. Automatic extraction of names and URLs must therefore be accompanied by correct classification of the source section. For spare parts, it is particularly important to consider the model and modification of the main product.
SEO2GEO capabilities
The Advanced GEO plan includes extraction of information about similar products and accessories. Individual configuration takes into account the recommendation sections on the store website. When validating the result, check the correct type and direction of each relationship. The example above shows semantically correct use of the vocabulary; it does not guarantee that every current configuration automatically reproduces the complete graph.
Documentation
Related articles

Product — structured product data
How to describe products using Schema.org: name, image, brand, identifiers and links to commercial offers.

PropertyValue and additionalProperty — product attributes
How to convert catalogue attributes into name–value pairs while preserving units, language and the accuracy of the original information.

Why complete product attributes matter for artificial intelligence
How specific attributes help interpret and compare products, and why data accuracy matters more than the number of fields.

What are JSON-LD and Schema.org?
How structured data works, how the Schema.org vocabulary differs from the JSON-LD format and how they are used in online stores.

Preparing product data for generative AI
A practical product catalogue quality checklist: model identity, factual specifications, current offers and page accessibility.

How artificial intelligence is changing product search
Why conversational search changes catalogue requirements and the role of accurate specifications, context and current offers.