Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Relationship.start and Relationship.end #14

Merged
merged 1 commit into from
Sep 9, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
}
}
}