Overview
The Strapi Generate Schema Plugin is a tool that allows users to dynamically map their database to a Schema.org JSON-LD schema. This plugin is currently in beta and requires Strapi v4. When accessing a collection row with a specific query parameter, the plugin will add the json-ld for that data.
Features
- Mapping collection types to specific schemas: Allows users to map a collection type to a specific schema type, such as mapping a blog collection type to an article schema type.
- Mapping of relational types: Supports mapping of image URLs or relation categories.
- Efficient data parsing: Parses data objects and generates the schema without any additional database queries.
- Bind types of schema to strapiFieldTypes: Enforces mapping of specific field types, such as mapping a string to a string and a URL to a file upload.
- Delete and remake previously mapped schemas: Allows users to delete and recreate previously mapped schemas.
- Map multiple schemas to a single collection type: Supports mapping multiple schemas to the same collection type, such as mapping a recipe and an article schema to the same collection type.
- Store schemas in an array attached to each data object: Schema.org schemas are stored in an array attached to each data object when returned from the API.
- Dynamic generation of new schemaOrgs: New schemaOrgs are dynamically generated based on a JSON file.
- Support for nested types: Supports nested types, such as the
@type: author.
Summary
The Strapi Generate Schema Plugin is a useful tool for dynamically mapping a database to a Schema.org JSON-LD schema. It offers various features, such as mapping collection types to specific schemas, mapping relational types, and efficient data parsing. This plugin can be installed by running a simple command, and it is currently in beta with support for Strapi v4.