Question

Canonical URL: http://schema.org/Question

Thing > CreativeWork > Question

A specific question - e.g. from a user seeking answers online, or collected in a Frequently Asked Questions (FAQ) document.

Usage: Between 1000 and 10,000 domains
PropertyExpected TypeDescription
Properties from Question
acceptedAnswer Answer The answer 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.
answerCount Integer The number of answers this question has received.
downvoteCount Integer The number of downvotes this question, answer or comment has received from the community.
suggestedAnswer Answer An answer (possibly one of several, possibly incorrect) to a Question, e.g. on a Question/Answer site.
upvoteCount Integer The number of upvotes this question, answer or comment has received from the community.
Properties from CreativeWork
about Thing The subject matter of the content.
accessibilityAPI Text Indicates that the resource is compatible with the referenced accessibility API (WebSchemas wiki lists possible values).
accessibilityControl Text Identifies input methods that are sufficient to fully control the described resource (WebSchemas wiki lists possible values).
accessibilityFeature Text Content features of the resource, such as accessible media, alternatives and supported enhancements for accessibility (WebSchemas wiki lists possible values).
accessibilityHazard Text A characteristic of the described resource that is physiologically dangerous to some users. Related to WCAG 2.0 guideline 2.3 (WebSchemas wiki lists possible values).
aggregateRating AggregateRating The overall rating, based on a collection of reviews or ratings, of the item.
audience Audience An intended audience, i.e. a group for whom something was created. Supersedes serviceAudience.
author Organization  or
Person 
The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably.
citation CreativeWork  or
Text 
A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.
contentLocation Place The location depicted or described in the content. For example, the location in a photograph or painting.
copyrightHolder Organization  or
Person 
The party holding the legal copyright to the CreativeWork.
dateCreated Date  or
DateTime 
The date on which the CreativeWork was created or the item was added to a DataFeed.
dateModified Date  or
DateTime 
The date on which the CreativeWork was most recently modified or when the item's entry was modified within a DataFeed.
discussionUrl URL A link to the page containing the comments of the CreativeWork.
educationalUse Text The purpose of a work in the context of education; for example, 'assignment', 'group work'.
encoding MediaObject A media object that encodes this CreativeWork. This property is a synonym for associatedMedia. Supersedes encodings.
exampleOfWork CreativeWork A creative work that this work is an example/instance/realization/derivation of.
Inverse property: workExample.
hasPart CreativeWork Indicates a CreativeWork that is (in some sense) a part of this CreativeWork.
Inverse property: isPartOf.
inLanguage Language  or
Text 
The language of the content or performance or used in an action. Please use one of the language codes from the IETF BCP 47 standard. See also availableLanguage. Supersedes language.
interactionStatistic InteractionCounter The number of interactions for the CreativeWork using the WebSite or SoftwareApplication. The most specific child type of InteractionCounter should be used. Supersedes interactionCount.
isAccessibleForFree Boolean A flag to signal that the item, event, or place is accessible for free. Supersedes free.
isBasedOn CreativeWork  or
Product  or
URL 
A resource that was used in the creation of this resource. This term can be repeated for multiple sources. For example, http://example.com/great-multiplication-intro.html. Supersedes isBasedOnUrl.
isFamilyFriendly Boolean Indicates whether this content is family friendly.
isPartOf CreativeWork Indicates a CreativeWork that this CreativeWork is (in some sense) part of.
Inverse property: hasPart.
license CreativeWork  or
URL 
A license document that applies to this content, typically indicated by URL.
locationCreated Place The location where the CreativeWork was created, which may not be the same as the location depicted in the CreativeWork.
mainEntity Thing Indicates the primary entity described in some page or other CreativeWork.
Inverse property: mainEntityOfPage.
material Product  or
Text  or
URL 
A material that something is made from, e.g. leather, wool, cotton, paper.
mentions Thing Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept.
position Integer  or
Text 
The position of an item in a series or sequence of items.
producer Organization  or
Person 
The person or organization who produced the work (e.g. music album, movie, tv/radio series etc.).
provider Organization  or
Person 
The service provider, service operator, or service performer; the goods producer. Another party (a seller) may offer those services or goods on behalf of the provider. A provider may also serve as the seller.
publisherImprint Organization The publishing division which published the comic.
publishingPrinciples CreativeWork  or
URL 
The publishingPrinciples property indicates (typically via URL) a document describing the editorial principles of an Organization (or individual e.g. a Person writing a blog) that relate to their activities as a publisher, e.g. ethics or diversity policies. When applied to a CreativeWork (e.g. NewsArticle) the principles are those of the party primarily responsible for the creation of the CreativeWork.

While such policies are most typically expressed in natural language, sometimes related information (e.g. indicating a funder) can be expressed using schema.org terminology.

review Review A review of the item. Supersedes reviews.
spatialCoverage Place The spatialCoverage of a CreativeWork indicates the place(s) which are the focus of the content. It is a subproperty of contentLocation intended primarily for more technical and detailed materials. For example with a Dataset, it indicates areas that the dataset describes: a dataset of New York weather would have spatialCoverage which was the place: the state of New York. Supersedes spatial.
text Text The textual content of this CreativeWork.
version Number  or
Text 
The version of the CreativeWork embodied by a specified resource.
workExample CreativeWork Example/instance/realization/derivation of the concept of this creative work. eg. The paperback edition, first edition, or eBook.
Inverse property: exampleOfWork.
Properties from Thing
additionalType URL An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. In RDFa syntax, it is better to use the native RDFa syntax - the 'typeof' attribute - for multiple types. Schema.org tools may have only weaker understanding of extra types, in particular those defined externally.
alternateName Text An alias for the item.
description Text A description of the item.
disambiguatingDescription Text A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.
identifier PropertyValue  or
Text  or
URL 
The identifier property represents any kind of identifier for any kind of Thing, such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See background notes for more details.
image ImageObject  or
URL 
An image of the item. This can be a URL or a fully described ImageObject.
mainEntityOfPage CreativeWork  or
URL 
Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See background notes for details.
Inverse property: mainEntity.
name Text The name of the item.
potentialAction Action Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.
sameAs URL URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.
url URL URL of the item.


Instances of Question may appear as values for the following properties

PropertyOn TypesDescription
parentItem Comment The parent of a question, answer or item in general.
question AskAction A sub property of object. A question.

Available properties in extensions

Acknowledgement

The Question/Answer types were based on the Stack Overflow API.



Examples

Example 1
John asked Steve 'What is 2 + 2?'.
This example is JSON only.
This example is JSON only.
<!-- John asked Steve 'What is 2 + 2?'. -->
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "AskAction",
  "agent": {
    "@type": "Person",
    "name": "John"
  },
  "recipient": {
    "@type": "Person",
    "name": "Steve"
  },
  "question": {
    "@type": "Question",
    "text": "What's 2 + 2?"
  }
}
</script>
Example 2
<body>
  <div>
    <h1>What is attr_accessor in Ruby?</h1>
    <div>196</div>
    <div>I am having difficulty understanding Ruby attr_accessors, can someone explain them?</div>
    <div>asked Nov 11 '10 at 20:07</div>
    <div><span>someuser</span></div>
    <div><span>4</span> answers</div>
    <div>
      <div>1337</div>
      <div>
      (The text of the accepted answer goes here...).
      </div>
      <div>answered Dec 1 '10 at 22:01</div>
      <div><span>anotheruser</span></div>
    </div>
    <div>
      <div>vote count: 39</div>
      <div>
        (Another explanation would go here).
      </div>
      <div>answered Dec 6 '10 at 21:11</div>
      <div><span>lonelyuser1234</span></div>
    </div>
  </div>
</body>
<div itemscope itemtype="http://schema.org/Question">
  <h1 itemprop="name">What is attr_accessor in Ruby?</h1>
  <div itemprop="upvoteCount">196</div>
  <div itemprop="text">I am having difficulty understanding Ruby attr_accessors, can someone explain them?</div>
  <div>asked <time itemprop="dateCreated" datetime="2010-11-04T20:07Z">Nov 11 '10 at 20:07</time></div>
  <div itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">someuser</span></div>
  <div><span itemprop="answerCount">4</span> answers</div>
  <div itemprop="suggestedAnswer acceptedAnswer" itemscope itemtype="http://schema.org/Answer">
    <div itemprop="upvoteCount">1337</div>
    <div itemprop="text">
    (The text of the accepted answer goes here...).
    </div>
    <div>answered <time itemprop="dateCreated" datetime="2010-12-01T22:01Z">Dec 1 '10 at 22:01</time></div>
    <div itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">anotheruser</span></div>
  </div>
  <div itemprop="suggestedAnswer" itemscope itemtype="http://schema.org/Answer">
    <div itemprop="upvoteCount">39</div>
    <div itemprop="text">
      (Another explanation would go here).
    </div>
    <div>answered <time itemprop="dateCreated" datetime="2010-12-06T21:11Z">Dec 6 '10 at 21:11</time></div>
    <div itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">lonelyuser1234</span></div>
  </div>
</div>
<div vocab="http://schema.org/" typeof="Question">
  <h1 property="name">What is attr_accessor in Ruby?</h1>
  <div property="upvoteCount">196</div>
  <div property="text">I am having difficulty understanding Ruby attr_accessors, can someone explain them?</div>
  <div>asked <time property="dateCreated" datetime="2010-11-04T20:07Z">Nov 11 '10 at 20:07</time></div>
  <div property="author" typeof="Person"><span property="name">someuser</span></div>
  <div><span property="answerCount">4</span> answers</div>
  <div property="suggestedAnswer acceptedAnswer" typeof="Answer">
    <div property="upvoteCount">1337</div>
    <div property="text">
    (The text of the accepted answer goes here...).
    </div>
    <div>answered <time property="dateCreated" datetime="2010-12-01T22:01Z">Dec 1 '10 at 22:01</time></div>
    <div property="author" typeof="Person"><span property="name">anotheruser</span></div>
  </div>
  <div property="suggestedAnswer" typeof="Answer">
    <div property="upvoteCount">39</div>
    <div property="text">
      (Another explanation would go here).
    </div>
    <div>answered <time property="dateCreated" datetime="2010-12-06T21:11Z">Dec 6 '10 at 21:11</time></div>
    <div property="author" typeof="Person"><span property="name">lonelyuser1234</span></div>
  </div>
</div>
<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "Question",
    "text": "What is attr_accessor in Ruby?",
    "upvoteCount": "196",
    "text": "I am having difficulty understanding Ruby attr_accessors, can someone explain them?",
    "dateCreated": "2010-11-04T20:07Z",
    "author": {
        "@type": "Person",
        "name": "someuser"
    },
    "answerCount": "4",
    "acceptedAnswer": {
        "@type": "Answer",
        "upvoteCount": "1337",
        "text": "(The text of the accepted answer goes here...).",
        "dateCreated": "2010-12-01T22:01Z",
        "author": {
            "@type": "Person",
            "name": "someuser"
        }
    },
    "suggestedAnswer": {
        "@type": "Answer",
        "upvoteCount": "39",
        "text": "(The text of the accepted answer goes here...).",
        "dateCreated": "2010-12-06T21:11Z",
        "author": {
            "@type": "Person",
            "name": "lonelyuser1234"
        }
    }
}
</script>
Example 3
John replied '4' to Steve's question 'What's 2 + 2?'.
This example is JSON only.
This example is JSON only.
<!-- John replied '4' to Steve's question 'What's 2 + 2?'. -->
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "AskAction",
  "agent": {
    "@type": "Person",
    "name": "John"
  },
  "recipient": {
    "@type": "Person",
    "name": "Steve"
  },
  "resultComment": {
    "@type": "Answer",
    "parentItem": {
      "@type": "Question",
      "text":  "What's 2 + 2?"
    },
    "text": "4."
  }
}
</script>

Schema Version 3.3