Mobile app version of vmapp.org
Login or Join
Cugini213

: 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

@Cugini213

Posted in: #Footer #Headers #SchemaOrg

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cugini213

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shanna517

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).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme