Now, after reading several articles online, I finally got confused. I have a main navigation with multiple sub categories. Found 2 examples then I stopped b/c I am confused.
Example 1:
{
"@context":"http://schema.org",
"@type":"ItemList",
"itemListElement":[
{
"@type": "SiteNavigationElement",
"position": 1,
"name": "Sign Up",
"description": "Create your example profile.",
"url":"https://example.com"
},
{
"@type": "SiteNavigationElement",
"position": 2,
"name": "About us",
"description": "Read more about example company",
"url":"https://example.com/about"
},
{......
Example 2:
{
"@context": "https://schema.org",
"@graph":
[
{
"@context": "https://schema.org",
"@type":"SiteNavigationElement",
"@id":"#table-of-contents",
"name": "Section 1",
"url": "https://www.example.com/page#toc-1"
},
{
"@context": "https://schema.org",
"@type":"SiteNavigationElement",
"@id":"#table-of-contents",
"name": "Section 2",
"url": "https://www.example.com/page#toc-2"
},
{....
What is the difference between these 2 usage? They are both valid but couldn't decide which one to adopt.