Skip to content

Commit

Permalink
Merge pull request #14 from openvocab/relationship-start-end
Browse files Browse the repository at this point in the history
add Relationship.start and Relationship.end
  • Loading branch information
fosterlynn committed Sep 9, 2015
2 parents 4b5f146 + e0b35fb commit 9f655bb
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 67 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ Relationship:
source: required Agent
target: required Agent
context: optional Agent
start: optional date-time
end: optional date-time
```

## Pictures!
Expand Down
2 changes: 1 addition & 1 deletion assets/uml.dot
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ digraph G {
]

Relationship [
label = "{Relationship|+ id : url\l+ description : string\l}"
label = "{Relationship|+ id : url\l+ description : string\l+ start : date-time\l+ end : date-time\l}"
]

edge [
Expand Down
134 changes: 68 additions & 66 deletions assets/uml.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions vocab/Relationship.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ module.exports = {
context: 'open:contextAgent',
description: 'The context agent in the relationship',
$ref: 'Agent'
},
start: {
context: 'schema:startDate',
description: 'The start date of the relationship.',
type: 'string',
format: 'date-time'
},
end: {
context: 'schema:endDate',
description: 'The end date of the relationship.',
type: 'string',
format: 'date-time'
}
}
}

0 comments on commit 9f655bb

Please sign in to comment.