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

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:

  • To add more questions and answers, repeat step2 and step3 from example1

How to get my FAQPage JSON-LD Code

  • To view the code in the Dashboard, click on the FAQPage schema. A snippet will pop-up. Press on the eye icon. In the View, code schema click the Copy Code Button.
  • Example2: How to Create a Service Schema for an Organization?

    A Service schema can be created with the following steps:

    For details

    Step 1: Create a service schema

    1. In the Dashboard click Create New
    2. In the Schema Navigator search for Service, you will find it in the 2nd page of the searched list
    3. Select the Service and click Submit
    4. In the Create Schema Properties page. Type in the name and the description of your Service
    5. Click Save Schema, and you will be back in the Dashboard
    6. 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

    Recommended for You


    Back to The Top