Am I allowed to use properties from Thing/CreativeWork/WebPage for an AboutPage item?

后端 未结 2 572
慢半拍i
慢半拍i 2021-01-23 13:14

I\'m trying to learn how Microdata works and I was looking at the Schema.org website and I kinda get how the basics works because you can find some outlined examples online of t

相关标签:
2条回答
  • 2021-01-23 13:23

    First note, you can’t use the vocabulary Schema.org with Microformats. You probably confused it with Microdata, which is one of three syntaxes the Schema.org partners support (the other two are JSON-LD and RDFa). (I edited your question accordingly.)

    You may use all properties that are listed on a type’s page.

    A type in Schema.org always inherits from all its parent types, up to Thing. So, for example, the type AboutPage is also a WebPage, which is also a CreativeWork, which is also a Thing. You just have to use the most specific type that applies in your case.

    For finding appropriate types, simply start at Thing and check the "More specific Types", linked on that page. And repeat.
    Another way would be to search for some related keywords on the list of all types and check if a suitable type exists.

    0 讨论(0)
  • 2021-01-23 13:42

    The problem is if you're unfamiliar with XML and Schemas because schema.org is as friendly as they can be without actually giving more examples of it, simply because stuff like this is indeed complex to make generic enough to reuse, while verbose enough to explain.

    However there are some Google tools which can help you learn:
    https://www.google.com/webmasters/markup-helper
    https://developers.google.com/structured-data/testing-tool/
    And register for Google Webmaster Tools account, and use their data highlighter and test.

    Use that in combination with the schema.org examples and definitions, and then you'll properly relatively fast start learning which tags to use and how to nest them.

    0 讨论(0)
提交回复
热议问题