Skip to content

Commit

Permalink
Minor changes, factor out agents
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Nov 28, 2023
1 parent 82711bd commit b656aba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/examples/datalad-dataset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,11 @@ graph:
tree: fb715e5f3c368ae50cf16c9b6a8e5ca23a353ea4
# some other metadata
# the next too could be instances of an `Agent`
author:
name: Michael Hanke
email: [email protected]
committer:
name: Michael Hanke
email: [email protected]
author: Michael Hanke <[email protected]>
committer: Michael Hanke <[email protected]>
# ISO timestamp
created: 2023-11-25T12:04:53+01:00
#created: 2023-11-25T12:04:53+01:00
created: 2023 11 25
# commit subject
title: Initial commit
# commit message body
Expand All @@ -98,6 +95,11 @@ graph:
# TODO we need the parent commits to have sortable versions
#parent_commits:

- id: Michael Hanke <[email protected]>
objtype: GitAgent
name: Michael Hanke
email: [email protected]

# object access methods
# they can be rather heterogeneous, different parameters, etc
# however, the idea is that any implementation can be made to
Expand All @@ -119,7 +121,8 @@ graph:

- id: 6860c9e8-8c76-11ee-8f18-bb3625743f23
objtype: ArchiveExtract
archive: 6c99a465f370af115b4edbdcc66badf2d015cbe5
# the URL is just an identifier string
archive: https://dav.example/com/user/myarchive.zip
archive_type: zip

# we have no checksum, annex-key or anything for this
Expand Down
10 changes: 10 additions & 0 deletions src/linkml/datalad-datasets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ classes:
content.
attributes:
name:
range: string
description: >-
Name of a directory item.
# TODO this should (hopefully) mean that the value is unique
Expand Down Expand Up @@ -186,22 +187,31 @@ classes:
slot_uri: dct:author
# TODO dedicated class for a GitAgent
range: GitAgent
inlined: false
committer:
slot_uri: dct:creator
range: GitAgent
inlined: false
created:
slot_uri: dct:created
# TODO ISO date type
#range: datetime
range: string
title:
range: string
description:
range: string

GitAgent:
is_a: TypedThing
description: >-
Agent representation in a Git context
attributes:
# TODO others could use ORCID
id:
identifier: true
string_serialization: "{name} <{email}>"
range: string
name:
range: string
email:
Expand Down

0 comments on commit b656aba

Please sign in to comment.