: Can I use "hasPart" to link WPHeader and WPFooter to WebPage? According to the Schema.org description, the property hasPart is defined for CreativeWork, i.e. Article. So, we can link different
According to the Schema.org description, the property hasPart is defined for CreativeWork, i.e. Article. So, we can link different pages of Article for example.
But can we link WPHeader and WPFooter to WebPage with this property? Logically they are both parts of WebPage (but not CreativeWork type).
Or maybe internal folded HTML tags define it properly?
More posts by @Cugini213
1 Comments
Sorted by latest first Latest Oldest Best
WPHeader and WPFooter are some kind of CreativeWork.
You can see this in their type hierarchies (displayed at the top of every Schema.org type’s page):
Thing > CreativeWork > WebPageElement > WPHeader
Thing > CreativeWork > WebPageElement > WPFooter
So having WPHeader/WPFooter as value for the hasPart property is perfectly fine ("expected"), and using hasPart to denote that the WPHeader/WPFooter is part of a WebPage seems to be appropriate, too (header/footer are "in some sense" part of a web page).
That said, in my opinion there is no point to use the WPHeader/WPFooter types on normal web pages (details: 1, 2, 3).
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.