Domanda

I'm trying to add schema.org information on my site (that is an archive of authors and songs). On my contents I've always a "tag" field (classical tags) and other information about "sections".

The question is: on Person type I've not a property for tags or something like this. I've the same doubt for my fields "related links", related to an author or a song.

For "tags" and similat values (ways to "catalog" contents), may I use "category" property, even if is not a property for Person?

For "links" may I use "significantLinks", even if is not a property for Person or CreativeWork?

Thanks

È stato utile?

Soluzione

No, you must not use properties that are not defined for the type you use.

It’s correct that Person doesn’t offer a property that could be used for tags/categories, probably because it’s unusual to tag persons. There’s also no property that could be used for related links.

CreativeWork defines the properties about ("The subject matter of the content.") and mentions ("Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept."). These could be used for tags.

WebPage, which is a more specific CreativeWork, also defines the property relatedLink ("A link related to this web page, for example to other related web pages.").

So you might consider using WebPage (including related links and tags) with a Person child.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top