Skip to content

Commit

Permalink
feat(Comment): Add comment type
Browse files Browse the repository at this point in the history
Closes #227.
  • Loading branch information
nokome committed Nov 12, 2020
1 parent edc1543 commit 89e93a3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions schema/Comment.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
title: Comment
'@id': schema:Comment
extends: CreativeWork
role: primary
status: stable
category: metadata
description: A comment on an item, e.g on a Article, or SoftwareSourceCode.
$comment: |
Use the `about` property to define the item that a comment is on.
The `content` property should be used for the structured content of the
Comment, in preference to the schema.org `text` property which is is expected to
have the plain text content.
properties:
parentItem:
'@id': schema:parentItem
description: The parent Comment of this Comment.
$ref: Comment
replies:
'@id': stencila:replies
description: Comments made in reply to this comment. The inverse of parentItem.
type: array
items:
$ref: Comment

0 comments on commit 89e93a3

Please sign in to comment.