-
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.
- (valid) validation tests are now separated from example. Rather than running the examples directly, we have dedicated config files per test. This allows for declaring individual root classes per test. One test configuration can reference multiple applicable examples - Valid examples are now also test-converted to JSON, and verified for no-modification via `git diff`. When developing it is sufficient to stage changes of intentional differences. We are not yet ready to also convert examples to TTL (things fail in fundamental ways). I think we should explore that. I fear missing pieces in our general concept.
- Loading branch information
Showing
13 changed files
with
105 additions
and
41 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -24,4 +24,4 @@ jobs: | |
- name: Run checks | ||
run: | | ||
make check | ||
make check-models |
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
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
7 changes: 0 additions & 7 deletions
7
src/examples/data-access-schema/GitAnnexSpecialRemote-webdav.yaml
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
src/examples/data-access-schema/ObjectAvailability-annexwebdav.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"access_method": { | ||
"metatype": "dlco:GitAnnexSpecialRemote", | ||
"special_remote_type": "webdav", | ||
"has_parameter": [ | ||
"some" | ||
] | ||
}, | ||
"object_id": "MD5E-s4--ba1f2511fc30423bdbb183fe33f3dd0f.txt", | ||
"@type": "ObjectAvailability" | ||
} |
6 changes: 6 additions & 0 deletions
6
src/examples/data-access-schema/ObjectAvailability-annexwebdav.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
access_method: | ||
metatype: dlco:GitAnnexSpecialRemote | ||
special_remote_type: webdav | ||
has_parameter: | ||
- some | ||
object_id: MD5E-s4--ba1f2511fc30423bdbb183fe33f3dd0f.txt |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"id": "7726424f50c6e9a70ba31e8d44c5d86fc46170da", | ||
"was_generated_by": { | ||
"was_associated_with": { | ||
"name": "Michael Hanke" | ||
} | ||
}, | ||
"@type": "Commit" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
id: 7726424f50c6e9a70ba31e8d44c5d86fc46170da | ||
was_generated_by: | ||
was_associated_with: | ||
name: Michael Hanke |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
tests/data-access-schema/validation/annexremote.valid.cfg.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
schema: src/linkml/data-access-schema.yaml | ||
target_class: ObjectAvailability | ||
data_sources: | ||
- src/examples/data-access-schema/ObjectAvailability-annexwebdav.yaml | ||
plugins: | ||
JsonschemaValidationPlugin: | ||
closed: true | ||
RecommendedSlotsPlugin: |
8 changes: 8 additions & 0 deletions
8
tests/data-access-schema/validation/annexremote_missing_type.invalid.cfg.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
schema: src/linkml/data-access-schema.yaml | ||
target_class: DataObject | ||
data_sources: | ||
- tests/data-access-schema/validation/GitAnnexSpecialRemote-missing_type.yaml | ||
plugins: | ||
JsonschemaValidationPlugin: | ||
closed: true | ||
RecommendedSlotsPlugin: |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
schema: src/linkml/git-provenance-schema.yaml | ||
target_class: Commit | ||
data_sources: | ||
- src/examples/git-provenance-schema/Commit-simple.yaml | ||
plugins: | ||
JsonschemaValidationPlugin: | ||
closed: true | ||
include_range_class_descendants: true | ||
RecommendedSlotsPlugin: |