Skip to content

Commit

Permalink
Commit changes that are too old to remember why they were made
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Feb 13, 2024
1 parent 691d3c3 commit daacd0c
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ is_version_of:
has_annex_remote:
annex:7e0bf3e7-7d46-4093-813e-b4009826c3bf:
uuid: 7e0bf3e7-7d46-4093-813e-b4009826c3bf
has_part:
gitsha:b94ef1797f7bfc1ac979be122e1b538bbb0d1d58:
meta_type: dlco:AnnexedFile
gitsha: b94ef1797f7bfc1ac979be122e1b538bbb0d1d58
distribution:
byte_size: 3425
checksum:
algorithm: md5
digest: 32a617360d10e3dcbfdd0885e8d64ab8
qualified_access:
access_id: MD5E-s3425--32a617360d10e3dcbfdd0885e8d64ab8.txt
relation: annex:7e0bf3e7-7d46-4093-813e-b4009826c3bf
qualified_part:
- at_location: README.txt
relation:
meta_type: dlco:AnnexedFile
distribution:
byte_size: 3425
checksum:
algorithm: md5
digest: 32a617360d10e3dcbfdd0885e8d64ab8
qualified_access:
access_id: MD5E-s3425--32a617360d10e3dcbfdd0885e8d64ab8.txt
relation: annex:7e0bf3e7-7d46-4093-813e-b4009826c3bf
# relation: gitsha:b94ef1797f7bfc1ac979be122e1b538bbb0d1d58
11 changes: 11 additions & 0 deletions src/linkml/datalad-dataset-version-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ prefixes:
DCAT: http://www.w3.org/ns/dcat#
dct: http://purl.org/dc/terms/
dlco: https://concepts.datalad.org/ontology/
gitsha: https://concepts.datalad.org/namespace/gitsha/
prov: http://www.w3.org/ns/prov#
spdx: http://spdx.org/rdf/terms#
imports:
Expand All @@ -35,8 +36,18 @@ classes:
has_annex_remote:
multivalued: true
inlined: true
has_part:
range: FileInGit
multivalued: true
inlined: true
inlined_as_list: true
is_version_of:
inlined: true
qualified_part:
range: QualifiedGitTrackedPart
multivalued: true
inlined: true
inlined_as_list: true
comments:
- The property `has_annex_remote` is for defining all remotes inline
with a meta_id index key, such that they can be referenced in a
Expand Down
1 change: 1 addition & 0 deletions src/linkml/datasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ classes:
slot_usage:
has_part:
range: Resource
multivalued: true
qualified_part:
multivalued: true
inlined: true
Expand Down
3 changes: 2 additions & 1 deletion src/linkml/git-annex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ prefixes:
dlco: https://concepts.datalad.org/ontology/
imports:
- datasets
- git
- properties
default_prefix: dlco

Expand Down Expand Up @@ -42,7 +43,7 @@ classes:
range: AnnexRemote

AnnexedFile:
is_a: File
is_a: FileInGit
description: >-
A file in a Git repository that is managed by git-annex.
slot_usage:
Expand Down
19 changes: 19 additions & 0 deletions src/linkml/git.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ prefixes:
gitsha: https://concepts.datalad.org/namespace/gitsha/
dlco: https://concepts.datalad.org/ontology/
imports:
- datasets
- meta_utils
- types
default_prefix: dlco
Expand All @@ -29,6 +30,8 @@ classes:
- gitsha
- meta_id
slot_usage:
gitsha:
required: true
meta_id:
description: >-
SHA1 based identifier in the form of a CURIE with an explicit
Expand All @@ -39,3 +42,19 @@ classes:
- Because there can only be a single main `identifier`, this mixin
cannot be used on classes that already have or inherited another
property declared as `identifier:true`.

QualifiedGitTrackedPart:
is_a: QualifiedPart
description: >-
TODO we may need this to make relation point to resources with a
(Git) identifier only, such that we could reference by key
slot_usage:
relation:
range: FileInGit

FileInGit:
is_a: File
mixins:
- GitTracked
description: >-
A `File` that is tracked with Git.

0 comments on commit daacd0c

Please sign in to comment.