Answer
An answer offered to a question; perhaps correct, perhaps opinionated or wrong.
Usage: Between 1000 and 10,000 domains
Property | Expected Type | Description |
---|---|---|
Properties from Comment | ||
downvoteCount
|
Integer | The number of downvotes this question, answer or comment has received from the community. |
parentItem
|
Question | The parent of a question, answer or item in general. |
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). |
accountablePerson
|
Person | Specifies the Person that is legally accountable for the CreativeWork. |
aggregateRating
|
AggregateRating | The overall rating, based on a collection of reviews or ratings, of the item. |
alternativeHeadline
|
Text | A secondary title of the CreativeWork. |
associatedMedia
|
MediaObject | A media object that encodes this CreativeWork. This property is a synonym for encoding. |
audience
|
Audience | An intended audience, i.e. a group for whom something was created. Supersedes serviceAudience. |
audio
|
AudioObject | An embedded audio object. |
author
|
Person or Organization | The author of this content. 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. |
award
|
Text | An award won by or for this item. Supersedes awards. |
character
|
Person | Fictional person connected with a creative work. |
citation
|
Text or CreativeWork | A citation or reference to another creative work, such as another publication, web page, scholarly article, etc. |
comment
|
Comment | Comments, typically from users. |
commentCount
|
Integer | The number of comments this CreativeWork (e.g. Article, Question or Answer) has received. This is most applicable to works published in Web sites with commenting system; additional comments may exist elsewhere. |
contentLocation
|
Place | The location depicted or described in the content. For example, the location in a photograph or painting. |
contentRating
|
Text | Official rating of a piece of content—for example,'MPAA PG-13'. |
contributor
|
Person or Organization | A secondary contributor to the CreativeWork. |
copyrightHolder
|
Person or Organization | The party holding the legal copyright to the CreativeWork. |
copyrightYear
|
Number | The year during which the claimed copyright for the CreativeWork was first asserted. |
creator
|
Person or Organization | The creator/author of this CreativeWork. This is the same as the Author property for 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. |
datePublished
|
Date | Date of first broadcast/publication. |
discussionUrl
|
URL | A link to the page containing the comments of the CreativeWork. |
editor
|
Person | Specifies the Person who edited the CreativeWork. |
educationalAlignment
|
AlignmentObject | An alignment to an established educational framework. |
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. |
fileFormat
|
Text | Media type (aka MIME format, see IANA site) of the content e.g. application/zip of a SoftwareApplication binary. In cases where a CreativeWork has several media type representations, 'encoding' can be used to indicate each MediaObject alongside particular fileFormat information. |
genre
|
Text or URL | Genre of the creative work or group. |
hasPart
|
CreativeWork | Indicates a CreativeWork that is (in some sense) a part of this CreativeWork. Inverse property: isPartOf. |
headline
|
Text | Headline of the article. |
inLanguage
|
Text or Language | 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. 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. |
interactivityType
|
Text | The predominant mode of learning supported by the learning resource. Acceptable values are 'active', 'expositive', or 'mixed'. |
isBasedOnUrl
|
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. |
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. |
keywords
|
Text | Keywords or tags used to describe this content. Multiple entries in a keywords list are typically delimited by commas. |
learningResourceType
|
Text | The predominant type or kind characterizing the learning resource. For example, 'presentation', 'handout'. |
license
|
URL or CreativeWork | 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. |
mentions
|
Thing | Indicates that the CreativeWork contains a reference to, but is not necessarily about a concept. |
offers
|
Offer | An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, perform a service, or give away tickets to an event. |
position
|
Text or Integer | The position of an item in a series or sequence of items. |
producer
|
Person or Organization | The person or organization who produced the work (e.g. music album, movie, tv/radio series etc.). |
provider
|
Person or Organization | 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. Supersedes carrier. |
publication
|
PublicationEvent | A publication event associated with the item. |
publisher
|
Person or Organization | The publisher of the creative work. |
publishingPrinciples
|
URL | Link to page describing the editorial principles of the organization primarily responsible for the creation of the CreativeWork. |
recordedAt
|
Event | The Event where the CreativeWork was recorded. The CreativeWork may capture all or part of the event. Inverse property: recordedIn. |
releasedEvent
|
PublicationEvent | The place and time the release was issued, expressed as a PublicationEvent. |
review
|
Review | A review of the item. Supersedes reviews. |
schemaVersion
|
Text or URL | Indicates (by URL or string) a particular version of a schema used in some CreativeWork. For example, a document could declare a schemaVersion using a URL such as http://schema.org/version/2.0/ if precise indication of schema version was required by some application. |
sourceOrganization
|
Organization | The Organization on whose behalf the creator was working. |
text
|
Text | The textual content of this CreativeWork. |
thumbnailUrl
|
URL | A thumbnail image relevant to the Thing. |
timeRequired
|
Duration | Approximate or typical time it takes to work with or through this learning resource for the typical intended target audience, e.g. 'P30M', 'P1H25M'. |
translator
|
Person or Organization | Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market. |
typicalAgeRange
|
Text | The typical expected age range, e.g. '7-9', '11-'. |
version
|
Number | The version of the CreativeWork embodied by a specified resource. |
video
|
VideoObject | An embedded video object. |
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 short description of the item. |
image
|
URL or ImageObject | An image of the item. This can be a URL or a fully described ImageObject. |
mainEntityOfPage
|
URL or CreativeWork | 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, Freebase page, or official website. |
url
|
URL | URL of the item. |
Instances of Answer may appear as values for the following properties
Property | On Types | Description |
---|---|---|
acceptedAnswer
|
Question | 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. |
suggestedAnswer
|
Question | An answer (possibly one of several, possibly incorrect) to a Question, e.g. on a Question/Answer site. |
Available properties in extensions
- From CreativeWork: publisherImprint, translationOfWork, workTranslation
Acknowledgements
The Question/Answer types were based on the Stack Overflow API.Examples
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>
<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>
Schema Version 2.2