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

Expand the key setup for a Commit #18

Merged
merged 1 commit into from
Dec 25, 2023
Merged
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
18 changes: 18 additions & 0 deletions src/linkml/git-provenance-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,24 @@ classes:
gitsha:
description: >-
SHA1 identifier of the commit object.
meta_id:
pattern: "^gitsha:[0-9a-f]{40}$"
description: >-
SHA1 identifier written as a CURIE in an explicit
`gitsha:` namespace.

unique_keys:
gitsha:
description: >-
A commit's GITSHA is a globally unique, content-based identifier
of that commit.
notes:
- The `gitsha` slot could have been labled to be the one identifier
of a Commit-type object. However, we use `meta_type` for
consistency and use its CURIE-format to assign an explicit
namespace.
unique_key_slots:
- gitsha

CommitProvenance:
mixin: true
Expand Down