big tings
This commit is contained in:
51
registry/schema-org/Question.schema.json
Normal file
51
registry/schema-org/Question.schema.json
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "schema:Question",
|
||||
"title": "Question",
|
||||
"description": "A specific question - e.g. from a user seeking answers online, or collected in a Frequently Asked Questions (FAQ) document.",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"description": "A comment on an item - for example, a comment on a blog post. The comment's content is expressed via the [[text]] property, and its topic via [[about]], properties shared with all CreativeWorks.",
|
||||
"$ref": "schema:Comment"
|
||||
}
|
||||
],
|
||||
"properties": {
|
||||
"acceptedAnswer": {
|
||||
"description": "The answer(s) that has been accepted as best, typically on a Question/Answer site. Sites vary in their selection mechanisms, e.g. drawing on community opinion and/or the view of the Question author.",
|
||||
"anyOf": [{ "$ref": "schema:Answer" }, { "$ref": "schema:ItemList" }]
|
||||
},
|
||||
"answerCount": {
|
||||
"description": "The number of answers this question has received.",
|
||||
"type": "integer"
|
||||
},
|
||||
"eduQuestionType": {
|
||||
"description": "For questions that are part of learning resources (e.g. Quiz), eduQuestionType indicates the format of question being given. Example: \"Multiple choice\", \"Open ended\", \"Flashcard\".",
|
||||
"oneOf": [
|
||||
{ "type": "string" },
|
||||
{ "type": "array", "items": { "type": "string" } }
|
||||
]
|
||||
},
|
||||
"parentItem": {
|
||||
"description": "The parent of a question, answer or item in general. Typically used for Q/A discussion threads e.g. a chain of comments with the first comment being an [[Article]] or other [[CreativeWork]]. See also [[comment]] which points from something to a comment about it.",
|
||||
"anyOf": [{ "$ref": "schema:Comment" }, { "$ref": "schema:CreativeWork" }]
|
||||
},
|
||||
"suggestedAnswer": {
|
||||
"description": "An answer (possibly one of several, possibly incorrect) to a Question, e.g. on a Question/Answer site.",
|
||||
"oneOf": [
|
||||
{
|
||||
"anyOf": [{ "$ref": "schema:Answer" }, { "$ref": "schema:ItemList" }]
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"anyOf": [
|
||||
{ "$ref": "schema:Answer" },
|
||||
{ "$ref": "schema:ItemList" }
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user