Skip to content

Commit

Permalink
ref + doc: CreativeWork
Browse files Browse the repository at this point in the history
  • Loading branch information
apawlik committed May 23, 2019
1 parent 3599d30 commit c18228f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
24 changes: 23 additions & 1 deletion schema/CreativeWork.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,28 @@ For example usage see:
{
"type": "CreativeWork",
"authors":[
{"type": "Person", "givenNames": ["Marie"], "familyNames": ["Curie"]}]
{"type": "Person", "givenNames": ["Marie"], "familyNames": ["Skłodowska", "Curie"]}
],
"title": "Radioactivity",
"citations": ["Marie Curie's century-old radioactive notebook still requires lead box"],
"content":[
{"type": "Node"} ],
"datePublished": " 2019-05-20",
"editors":[
{"type": "Person", "givenNames": ["John"], "familyNames": ["Smith"]}
],
"funders": [
{"type": "Person", "givenNames": ["Joanna"], "familyNames": ["Smith"]}
],
"isPartOf": {
"type": "CreativeWork",
"title": "The Great Works of Marie Skłodowska-Curie"
},
"licenses":[
{"https://opensource.org/licenses/MIT"}
],
"publisher": "Random House",
"text": "Sample text",
"version": "4"
}
```
4 changes: 4 additions & 0 deletions schema/CreativeWork.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ properties:
publisher:
description: |
A publisher of the CreativeWork.
type:
anyOf:
- type: string
- $ref: Organization.schema.yaml
text:
'@id': schema:text
description: The textual content of this creative work.
Expand Down

0 comments on commit c18228f

Please sign in to comment.