Generate Schema Markups by Examples
In the following examples, we are going to use Schemantra to generate a FAQPage schema type and a Service schema type
Example1: How to Generate a FAQPage schema?
To generate a FAQPage schema, you can perform the following steps
- Create a FAQPage schema
- From the FAQPage Add a Question
- From the Question Schema, Add an Answer to it
- Add more Questions and Answers to FAQPage
- How to preview and copy FAQPage JSON-LD Code
The conceptual map and hierarchy of the FAQPage Schema extension in this example
Below are the details:
Step1: Create a FAQPage Schema:
A FAQPage schema can be created with the following steps:
- In the Dashboard, click Create New.
- In the Schema Navigator, search for FAQPage.
- Select the FAQPage.
- Click Submit. Now you are on the Create Schema Properties page.
- Type in the name and the description of your FAQPage
- Click Save Schema, and you will be back in the Dashboard. Note: Every schema has to have an ID. The ID is simply a label for your schema. You can call it anything you want. It's for you to refer back to the schema, later on, it also has other purposes.
Step2: How to Add a Question to FAQPage
A Question schema can be added as follows
- In the Dashboard, click on the FAQPage Schema you created from Step1
- To Add a Question, Press on the + sign from the pop-up menu
- In the Add Subschema page, Under the
mainEntitiy click on the Question Schema - On the Add Question page, find the name property and type in your question
- Click Save Schema
Step3: How to add an Answer schema to the Question:
An Answer schema can be added by adding an Answer schema to the Question. to do this, let's perform the following steps
- In the Dashboard, click on the Question Schema you created from Step2
- A menu will pop-up to add an Answer. Press on the + sign
- On the Add Subschema page, Under the acceptedAnswer, click on the Answer Schema
- Find the text property and type in your answer
- Click Save Schema
Step 4:How to Add more Questions and Answers to FAQPage:
How to get my FAQPage JSON-LD Code
Example2: How to Create a Service Schema for an Organization?
A Service schema can be created with the following steps:
- Create a service schema
- Add an offer schema to the service schema
- Add a price to an offer
- Add a service area to an offer
- Add an organization to the service
For details
Step 1: Create a service schema
- In the Dashboard click Create New
- In the Schema Navigator search for Service, you will find it in the 2nd page of the searched list
- Select the Service and click Submit
- In the Create Schema Properties page. Type in the name and the description of your Service
- Click Save Schema, and you will be back in the Dashboard
Note: Every schema has to have an ID, the ID is simply a label for your schema, you can call it anything you want, it's for you to refer back to the schema later on, it also has other purposes.
Step2: How to Add an Offer to a Service Schema:
An Offer schema can be added as follows
- To Add an Offer, In the Dashboard, click on the Service Schema you created from Step1
- Press on the + sign from the pop up menu
- In the Add Subschema page, scroll down until you find Offers, click on Offer schema
- In the Add Offer page, find the name and the description properties and type in your Offer name and description
- Click Save Schema
Step 3: How to Add a Price Schema to an Offer
A Price schema can be added by adding a PriceSpecification schema to the Offer, to do that lets perform the following steps:
- In the Dashboard Click on the Offer Schema you created from Step2
- A menu will pop up, to Add a priceSpecification. Press on the + sign
- In the Add Subschema page, Under the priceSpecification click on the priceSpecification Schema
- Type in the Price and the Currency
- Click Save Schema
Step4: How to Add an AreaServed Schema to an Offer
To inform google about the area of your service, please perform the following steps:
- In the Dashboard, find the Offer Schema
- Click on the + Sign
- In the Add Subscema Page find AreaServed
- Choose Place, type in your city name
- Click Save Schema
Step 5: How to Add an Organization to the Service Schema
You can add an organization to a service schema by performing the following steps
- In the Dashboard find the Service schema created from step1
- Click on the + Sign
- In the Add Subschema page find the Provider and click on the Organization schema
- Type In you Organization Info
- Click Save Schema To view the code click on the service schema and find the view code button