The isPartOf property in a Dataset Schema is used for defining relationships between datasets. In this knowledgebase article, we will walk you through how to add isPartOf property to Dataset Schema using Rank Math.
isPartOf vs hasPart
If the dataset you’re defining in a post has a collection of smaller datasets, then the hasPart property is used for defining the relationship.
On the other hand, if the dataset you’re defining is a part of a larger dataset, then the isPartOf property is used for defining the relationship.
To demonstrate in a simple way,
Smaller dataset → isPartOf → Larger dataset
Larger dataset → hasPart → Smaller dataset
In this tutorial, we will choose an example, with a dataset of global internet users and regional internet users and how you can add the Dataset Schema for this relationship with Rank Math.
How to Add isPartOf with Rank Math
To add the isPartOf property with Rank Math, you can use Rank Math’s Advanced Schema Editor, available in the Rank Math PRO version.
1 Edit Post or Page
Open the post or page where you want to add the isPartOf property.
![Edit post or page](https://rankmath.com/wp-content/uploads/2021/08/Edit-post-or-page-1.jpg)
2 Open Rank Math in Gutenberg Editor
In the Gutenberg Editor, click the Rank Math SEO icon in the top right corner of the page.
![Click Rank Math SEO icon in Gutenberg Editor](https://rankmath.com/wp-content/uploads/2021/08/Click-Rank-Math-SEO-icon-in-Gutenberg-Editor-1.jpg)
3 Open Schema Generator
In the Rank Math Meta Box, click the Schema tab and then choose Schema Generator.
![Click on Schema Generator](https://rankmath.com/wp-content/uploads/2022/07/Click-on-Schema-Generator-1.png)
4 Choose Dataset Schema
From the list of available Schema types, click Use against the Dataset Schema.
![Click Use on Dataset Schema](https://rankmath.com/wp-content/uploads/2022/07/Use-Dataset-Schema-type.png)
5 Configure Dataset Schema
In the Schema Builder, you can find a number of options available for configuring Dataset Schema. Here is a detailed guide that would help you configure all the fields.
Configure all the fields, except the Dataset fields, as it would add the hasPart property.
![Configure Dataset Schema](https://rankmath.com/wp-content/uploads/2021/10/Leave-DataSets-property-group-empty.jpg)
6 Open Advanced Editor
Once you’ve added the data in the Schema Builder fields, click the Advanced Editor option at the bottom of the page.
![Open Advanced Editor](https://rankmath.com/wp-content/uploads/2021/08/Open-Advanced-Editor.jpg)
7 Add isPartOf Property
Now in the Advanced Editor, add the isPartOf property details (use Add Property and Add Property Group options for creating new fields).
Here is an example, where we’ve added the Global Internet Users (larger dataset) as isPartOf using Dataset Schema.
![isPartof Property](https://rankmath.com/wp-content/uploads/2021/08/isPartOf-example-in-advanced-editor.jpg)
8 Save Schema for this Post
Once you’ve added Schema, click the Save for this Post.
![Save for this Post](https://rankmath.com/wp-content/uploads/2021/08/Save-for-this-post.jpg)
Now update the post as you would normally do, or if it is a new post, click Publish and then check the generated Schema Markup. Here is an example of the generated Schema Markup.
![isPartOf property group in dataSet Schema](https://rankmath.com/wp-content/uploads/2021/10/isPartOf-property-group-in-dataSet-Schema.png)
How to Add hasPart Property with Rank Math?
The default Dataset Schema type available at Rank Math adds the hasPart property, which lets you define the dataset as a collection of a number of larger datasets.
To add the hasPart property for Dataset Schema with Rank Math, you can follow the exact steps discussed below.
1 Edit Post or Page
Open the post or page where you want to add the hasPart property.
![Edit post or page](https://rankmath.com/wp-content/uploads/2021/08/Edit-post-or-page.jpg)
2 Open Rank Math in Gutenberg Editor
In the Gutenberg Editor, click the Rank Math SEO icon in the top right corner of the page.
![Click Rank Math SEO icon in Gutenberg Editor](https://rankmath.com/wp-content/uploads/2021/08/Click-Rank-Math-SEO-icon-in-Gutenberg-Editor-1.jpg)
3 Open Schema Generator
In the Rank Math Meta Box, click the Schema tab and then choose Schema Generator.
![Click on Schema Generator](https://rankmath.com/wp-content/uploads/2022/07/Click-on-Schema-Generator-1.png)
4 Choose Dataset Schema
From the list of available Schema types, click Use against the Dataset Schema.
![Click Use on Dataset Schema](https://rankmath.com/wp-content/uploads/2022/07/Use-Dataset-Schema-type.png)
5 Configure Dataset Schema
To configure the individual fields in our Dataset Schema, you can refer to our dedicated guide. For the hasPart property to be included, make sure to add the DataSets field.
More Datasets can be added by clicking the Add Property Group.
![Add property group](https://rankmath.com/wp-content/uploads/2024/08/Add-property-group-1.png)
6 Save Changes
Once you’ve filled in the data, click the Save for this Post button for the changes to reflect.
![Save for this Post - Dataset Schema](https://rankmath.com/wp-content/uploads/2021/08/Save-for-this-Post-Dataset-Schema.jpg)
Here is the generated Schema Markup with hasPart property.
![hasPart property in DataSet Schema](https://rankmath.com/wp-content/uploads/2021/10/hasPart-property-in-DataSet-Schema.png)
And, that’s it! We hope the tutorial was helpful in adding the isPartOf property. If you still have absolutely any questions, please feel free to reach our support team directly from here, and we’re always here to help.