-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More proper data-access description support
Major changes are: - more useful and accurate `distribution` schema description - more complete `DataService` class - new `Parameter` concept - examples that document the capabilities While most changes more-or-less reflect the continued adoption of `DCAT` concepts and properties, the introduction of `Parameter` is noteworthy. `Parameter` is a variant of `Property` and serves a similar purpose (declare arbitrary additional aspects without prescribing a vocabulary to do so) with only a change in semantics of the class itself. In contrast to `Property` (observed or measured, fixed), `Parameter` is a variable with impact on a system or function. Closes #171 Via the property `has_parameter` particular parameters can be declared as supported/needed (e.g., `DataService`), or provided (`QualifiedAccess`). Examples are included. `QualifiedAccess` is no longer derived from `EntityInfluence` -- it has been too much of a stretch. It is now focused on access, and no longer requires a role specification. Closes #156
- Loading branch information
Showing
15 changed files
with
360 additions
and
219 deletions.
There are no files selected for viewing
48 changes: 6 additions & 42 deletions
48
src/datalad-dataset/unreleased/examples/Distribution-annexaccess.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,17 @@ | ||
{ | ||
"id": "annex-key:MD5E-s3214--ba1f2511fc30423bdbb183fe33f3dd0f.csv", | ||
"meta_type": "dldist:Distribution", | ||
"qualified_relation": [ | ||
"qualified_access": [ | ||
{ | ||
"had_role": [ | ||
"DCAT:DataService" | ||
], | ||
"entity": [ | ||
"access_service": [ | ||
"annex-uuid:0a8713ca-ef42-11ee-a805-d3e9a774e795" | ||
], | ||
"meta_type": "dldist:QualifiedAccess", | ||
"access_id": "MD5E-s3214--ba1f2511fc30423bdbb183fe33f3dd0f.csv" | ||
} | ||
], | ||
"relation": [ | ||
{ | ||
"id": "annex-uuid:0a8713ca-ef42-11ee-a805-d3e9a774e795", | ||
"identifier": [ | ||
"has_parameter": [ | ||
{ | ||
"notation": "0a8713ca-ef42-11ee-a805-d3e9a774e795", | ||
"schema_agency": "https://git-annex.branchable.com" | ||
"name": "key", | ||
"value": "MD5E-s3214--ba1f2511fc30423bdbb183fe33f3dd0f.csv" | ||
} | ||
], | ||
"meta_type": "dldist:DataService", | ||
"name": "box.com", | ||
"has_property": [ | ||
{ | ||
"meta_type": "dlthing:Property", | ||
"name": "type", | ||
"value": "webdav" | ||
}, | ||
{ | ||
"meta_type": "dlthing:Property", | ||
"name": "url", | ||
"type": "DCAT:endpointURL", | ||
"value": "https://dav.box.com/dav/git-annex" | ||
}, | ||
{ | ||
"meta_type": "dlthing:Property", | ||
"name": "chunk", | ||
"value": "10mb" | ||
}, | ||
{ | ||
"meta_type": "dlthing:Property", | ||
"name": "keyid", | ||
"value": "[email protected]" | ||
} | ||
], | ||
"type": "https://git-annex.branchable.com/special_remotes/webdav" | ||
] | ||
} | ||
], | ||
"@type": "Distribution" | ||
|
46 changes: 11 additions & 35 deletions
46
src/datalad-dataset/unreleased/examples/Distribution-annexaccess.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,13 @@ | ||
# specification of a distribution access via a git-annex | ||
# special remote -- without using specifialized concepts | ||
# specification of a distribution access via a git-annex special remote | ||
id: annex-key:MD5E-s3214--ba1f2511fc30423bdbb183fe33f3dd0f.csv | ||
relation: | ||
- id: annex-uuid:0a8713ca-ef42-11ee-a805-d3e9a774e795 | ||
meta_type: dldist:DataService | ||
name: box.com | ||
# TODO have a definition of a generic annex remote | ||
type: https://git-annex.branchable.com/special_remotes/webdav | ||
identifier: | ||
- notation: 0a8713ca-ef42-11ee-a805-d3e9a774e795 | ||
schema_agency: https://git-annex.branchable.com | ||
# as a generic approach specify init/enableremote parameters | ||
# as key-value pairs. each of them could have associated | ||
# definitions to communicate the semantics in a more commonly | ||
# understood way | ||
has_property: | ||
- name: type | ||
value: webdav | ||
- name: url | ||
value: https://dav.box.com/dav/git-annex | ||
type: DCAT:endpointURL | ||
- name: chunk | ||
value: 10mb | ||
- name: keyid | ||
value: [email protected] | ||
qualified_relation: | ||
- meta_type: dldist:QualifiedAccess | ||
# one or more annex remotes ... | ||
entity: | ||
qualified_access: | ||
- access_service: | ||
# see example DataService-annexremote for a matching specification | ||
- annex-uuid:0a8713ca-ef42-11ee-a805-d3e9a774e795 | ||
# ... from which this annex key is available | ||
access_id: MD5E-s3214--ba1f2511fc30423bdbb183fe33f3dd0f.csv | ||
# we need to make the role explicit, because linkml currently | ||
# does not support defaults for multivalued slots | ||
had_role: | ||
- DCAT:DataService | ||
# there could be more remotes from which the same key is provided | ||
# identify the annex key matching this Distribution, to complete the information | ||
# required to perform a request. The name has to match the parameter specification | ||
# of the access service | ||
has_parameter: | ||
- name: key | ||
value: MD5E-s3214--ba1f2511fc30423bdbb183fe33f3dd0f.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.