New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce FAQPage as subtype (sibling?) of QAPage, for "Frequently asked questions" #1723
Comments
/cc @earljwagner @dbiollo |
Looks good to me. guha |
Looks good to me |
I like the idea of having FAQs but I don't see the benefit of making it a subclass of QAPage.
FAQPage and QAPage should just be siblings. |
FAQPage is a very good idea. But let FAQPage be a subclass of schema:webpage while QAPage be a subclass of FAQPage. Why? Simply because QAPage represents a schema:webpage with multiple answers and FAQPage represents one of the following:
|
I'd be careful about the 'keywords' & 'category' properties. You will likely find a lot of excitable SEO chaps stuffing these with poor quality data in the mistaken belief that they will somehow achieve some sort of answer box nirvana on Google search results pages. |
|
@MrJonPayne indeed, a lot of people see 'keywords' as a kind of 1990s relic. But it may yet still have usecases when carefully used. |
Ok, the point about sibling rather than subtype is sounding persuasive; I've amended the title here for now |
I like where this is going. In particular, I think planning to accommodate FAQs that consist of multiple question/answer pairs is critical, as this is probably the most common form of FAQ pages. I would think it's obvious, but one of the things that this type should leverage is existing Question/question and Answer/answer vocabulary. ItemList may also have a place in being able to address those multiple Q/A pairs Broadly agree that this makes more sense as a sibling than a subtype. |
@VladimirAlexiev: I added some thoughts on preferredness/notability/importance on #1726 |
@danbri , Here's our FAQ Ontology : http://www.openlinksw.com/ontology/faq# . |
With Google Maps now offering a means to both ask and answer questions, this may possibly be confusing if it is made a subclass of QAPage. I too, agree with the thought about using a sibling. |
Ok, draft staged at http://pending.webschemas.org/FAQPage - please take a look (Once we're happy let's cross-reference it back from QAPage too.) |
Note that http://pending.schema.org/BackgroundNewsArticle also talks about FAQs. We should figure out how these relate. |
I wouldn't say FAQPage is a subtype of BackgroundNewsArticle as not all FAQs are news-related. But we should at least cross-link the definitions. |
Any final comments on this? It is on its way to be included in the pending section of our next release |
Is it planned to be ever released? Seems around a year have passed. |
@Mart-Bogdan, I am still waiting for the FAQ schema news as well. I am using it in the meantime, even when it is still being under the pending schema, because the Q&A schema markup won't work for pages with more than one question, you will get multiple warnings on the structured data tool, even if you try it:
|
@AnhellO actually there are no errors/warning in test tool, but I believe google would silently ignore it. |
@Mart-Bogdan: That makes sense, maybe they applied those changes to the structured data tool with the recent updates they did to the QAPage schema markup. In any case, I guess for both cases it will silently ignore (FAQPage and QAPage with multiple questions). |
I would benefit from a FAQPage schema as well, separate from the QAPage schema. Any updates on this?? |
@danbri I was looking at the pending spec would it not be a good idea to add some special properties to that class for example:
Also create an extra Something like: <script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "FAQPage",
"name": "FAQ on Widgets",
"description": "Find answers to the most popular questions about our range of widgets",
"url": "https://www.example.com/faq",
"numberOfItems": 2,
"itemListElement":
[
{
"@type": "ListItem",
"position": 1,
"item":
{
"question": "what color widgets do you sell?",
"answer": "we sell blue and red ones"
}
},
{
"@type": "ListItem",
"position": 2,
"item":
{
"qusetion": "how much do the widgets cost?",
"answer": "1usd each"
}
}
]
}
</script> |
A sibling type QAPage is documented in Google Structured Docs as having "mainEntity" where the Question & Answers go: https://developers.google.com/search/docs/data-types/qapage#QAPage schema.org/Question and schema.org/Answer already encapsulate questions and answers. The same could work for FAQPage, as mainEntity can be a repeated field, containing Question with an Answer. |
@ayumihamsaki The schema.org vocabulary already has entities for Question (“A specific question - e.g. from a user seeking answers online, or collected in a Frequently Asked Questions (FAQ) document.”) and Answer. The relationship between Question, Answer, and FAQPage should be explicit in the documentation so that webmasters know how to use them together.
|
Thanks both for your answers. I would like to re-write my comment to this: The problem is that Schema.org is the 'Spec' and Google uses the Spec (not Schema using the Google Developers infomation). Everyone is linking to the Google Developers Page here: https://developers.google.com/search/docs/data-types/qapage Yet the Schema.org webpages found here: https://schema.org/QAPage There is no mention under the section "Properties from CreativeWork" listing the properties: https://schema.org/Question I suggest that the schema team add the extra information to the schema.org web pages, with the missing properties. I think the web pages with either required or recommended properties have to be listed to the relevant schema.org class web pages. Otherwise the schema.org website is useless and doesn't match the Namespace (filled with all the class and property elements), see here: https://www.w3.org/2012/pyRdfa/extract?uri=http%3A%2F%2Fschema.org%2Fdocs%2Fschema_org_rdfa.html&format=n3 Both should match perfectly! Also I have one last question, I would like to see an example code with MULTIPLE QUESTIONS please. Thanks. |
@ayumihamsaki Good questions. I agree that the community documentation needs more detailed examples -- I think we are drawing on the Google example of QAPage because an example in schema.org's documentation for an FAQPage is lacking an example. In the schema.org spec, there are no recommended properties, so the publisher needs to consider how consumers will use the data. I won't expect suggestedAnswers and upvoteCounts would be used. I would expect a FAQPage to have multiple questions. @dbiollo says a mainEntity can be repeated (though the definition of mainEntity in the documentation reads in the single: "the primary entity described in some page") If mainEntity can handle more than one question, I would create an array and list all the Question & Answer statements within the array. Someone more expert than me can correct me about that approach! |
@MichaelAndrews-RM Thanks for the extra info! Didn't know that the |
Any comments on the below code as it is working fine with Structure Data Testing Tool. No Errors or warning <script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "FAQPage", "@graph": [ { "@type": "Question", "text": "What is a cat?", "dateCreated": "2019-01-27T14:01Z", "acceptedAnswer": { "@type": "Answer", "text": "(The text of the accepted answer goes here...).", "dateCreated": "2019-01-27T14:01Z" } }, { "@type": "Question", "text": "Who is the best play in the world?", "dateCreated": "2019-01-27T14:01Z", "acceptedAnswer": { "@type": "Answer", "text": "Cristiano Ronaldo", "dateCreated": "2019-01-27T14:01Z" } } ] } </script> |
Please add this feature (Usefull for endless sites) - like @ayumihamsaki wrote above. The QA is to complex (Most sites without this data structure). Q --> Answer |
@riazhamed143 , I believe @Mart-Bogdan (and others) suggested that although there are no errors or warnings (with the provided snippet), it will simply be ignored by Google. Not sure if that is the info you are after or not. |
How is one meant to deal with pages which embed a FAQ/Q&A section, eg within an article or review? |
To answer my own question, though I have no idea whether this is a Good Idea, is that I have made a typical such page BOTH an Article and a FAQPage (ie itemtype has both), so that it can have features of both. (Yandex and Google checkers seem happy with this, for example.) |
Implemented in release 3.5 |
Context: when we did the Q/A design a few years ago (/cc @scor) we included a "QAPage" construct, to capture the idea that there are pages which carry collections of questions and answers. In retrospect I wasn't sure that it was a great idea, but the type is there.
Talking with colleagues at Google, we are interested to have schema that distinguishes "Frequently asked questions" content on the Web. Often these are several Q/A pairs to a page, sometimes organized into categories. Other times they are published one page per question.
We think "about" or "keywords" properties could handle the categorization aspect, and that perhaps the itemref construct might be useful to avoid duplication/verbosity when using Microdata and when all the items in one category have the same keywords. As an aside, perhaps in future "categories", "keywords" could be considered as subproperty of "about" and their structure/definition converged.
Proposal:
Add a new type FAQPage as a subtype [edit: or sibling] of QAPage, definition:
We would add examples for a single page with a single question, and for a larger page with several questions, including categories handled via "about" and/or "keywords" properties on the QAPage and/or the Question (assuming that Answers rarely get dedicated metadata for such things).
Pinging @scor @tmarshbing @nicolastorzec @vholland @rvguha @tilid for perspectives
The text was updated successfully, but these errors were encountered: