Skip to content

Commit

Permalink
feat: Add id and meta to Thing
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Jun 6, 2019
1 parent 251cca9 commit d3574c3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions schema/Thing.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ properties:
type: string
enum: [Thing]
default: Thing
id:
# This is a special property analagous to JSON-LD's `@id` keyword
# and so should not have a `@id` since it is not a property.
description: The identifier for this item.
type: string
alternateNames:
'@id': schema:alternateName
description: Alternate names (aliases) for the item.
Expand All @@ -24,6 +29,14 @@ properties:
'@id': schema:description
description: A description of the item.
type: string
meta:
# This property has been added to allow for applications that
# use this schema to add ad-hoc properties to things. Ad-hoc
# properties that become commonly used may become part of
# the schema proper.
'@id': stencila:meta
description: Metadata associated with this item.
type: object
name:
'@id': schema:name
description: The name of the item.
Expand Down

0 comments on commit d3574c3

Please sign in to comment.