-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
237 additions
and
87 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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/bash | ||
|
||
python tests/test_demo_build_spec_v1_0_examples.py > docs/demo_build_v1_0_spec_examples.md | ||
python tests/test_demo_build_spec_v1_1_examples.py > docs/demo_build_v1_1_spec_examples.md | ||
python tests/test_demo_ocfl_script.py > docs/demo_ocfl_script.md | ||
python tests/test_demo_ocfl_object_script.py > docs/demo_ocfl_object_script.md | ||
python tests/test_demo_ocfl_store_script.py > docs/demo_ocfl_store_script.md | ||
python tests/test_demo_ocfl_validate_script.py > docs/demo_ocfl_validate_script.md | ||
python tests/test_demo_using_bagit_bags.py > docs/demo_using_bagit_bags.md | ||
python tests/test_demo_ocfl_sidecar_script.py > docs/demo_ocfl_sidecar_script.md | ||
python tests/test_demo_build_spec_v1_0_examples.py > docs/demo_build_v1_0_spec_examples.md | ||
python tests/test_demo_build_spec_v1_1_examples.py > docs/demo_build_v1_1_spec_examples.md |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
|
||
_Output from `tests/test_demo_build_spec_v1_0_examples.py`._ | ||
|
||
## 1. Test for minumal example. | ||
## 1. Test for minimal example. | ||
|
||
### 1.1 Minimal example | ||
|
||
The digest type sha512-spec-ex is sha512 with most of the content stripped out and replaced with an ellipsis. This is inventory should match the example in <https://ocfl.io/1.0/spec/#example-minimal-object>. | ||
|
||
``` | ||
> python ocfl-object.py --build --src fixtures/1.0/content/spec-ex-minimal --id http://example.org/minimal --spec-version 1.0 --digest sha512-spec-ex --created 2018-10-02T12:00:00Z --message One file --name Alice --address [email protected] -v | ||
> python ocfl-object.py build --src fixtures/1.0/content/spec-ex-minimal --id http://example.org/minimal --spec-version 1.0 --digest sha512-spec-ex --created 2018-10-02T12:00:00Z --message One file --name Alice --address [email protected] -v | ||
WARNING:ocfl.object:### Inventory for v1{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
"head": "v1", | ||
|
@@ -47,7 +47,7 @@ WARNING:ocfl.object:### Inventory for v1{ | |
This is inventory should match the example with 3 versions in <https://ocfl.io/1.0/spec/#example-versioned-object>. | ||
|
||
``` | ||
> python ocfl-object.py --build --src fixtures/1.0/content/spec-ex-full --spec-version 1.0 --id ark:/12345/bcd987 --fixity md5 --fixity sha1 --digest sha512-spec-ex -v | ||
> python ocfl-object.py build --src fixtures/1.0/content/spec-ex-full --spec-version 1.0 --id ark:/12345/bcd987 --fixity md5 --fixity sha1 --digest sha512-spec-ex -v | ||
WARNING:ocfl.object:### Inventory for v1{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
"fixity": { | ||
|
@@ -90,7 +90,7 @@ WARNING:ocfl.object:### Inventory for v1{ | |
"type": "https://ocfl.io/1.0/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2024-10-01T12:11:51.144164Z", | ||
"created": "2024-10-11T07:04:27.308760Z", | ||
"state": { | ||
"7dcc352f96c56dc...c31": [ | ||
"foo/bar.xml" | ||
|
@@ -157,7 +157,7 @@ WARNING:ocfl.object:### Inventory for v2{ | |
"type": "https://ocfl.io/1.0/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2024-10-01T12:11:51.144164Z", | ||
"created": "2024-10-11T07:04:27.308760Z", | ||
"state": { | ||
"7dcc352f96c56dc...c31": [ | ||
"foo/bar.xml" | ||
|
@@ -171,7 +171,7 @@ WARNING:ocfl.object:### Inventory for v2{ | |
} | ||
}, | ||
"v2": { | ||
"created": "2024-10-01T12:11:51.145036Z", | ||
"created": "2024-10-11T07:04:27.309573Z", | ||
"state": { | ||
"4d27c86b026ff70...b53": [ | ||
"foo/bar.xml" | ||
|
@@ -236,7 +236,7 @@ WARNING:ocfl.object:### Inventory for v3{ | |
"type": "https://ocfl.io/1.0/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2024-10-01T12:11:51.144164Z", | ||
"created": "2024-10-11T07:04:27.308760Z", | ||
"state": { | ||
"7dcc352f96c56dc...c31": [ | ||
"foo/bar.xml" | ||
|
@@ -250,7 +250,7 @@ WARNING:ocfl.object:### Inventory for v3{ | |
} | ||
}, | ||
"v2": { | ||
"created": "2024-10-01T12:11:51.145036Z", | ||
"created": "2024-10-11T07:04:27.309573Z", | ||
"state": { | ||
"4d27c86b026ff70...b53": [ | ||
"foo/bar.xml" | ||
|
@@ -262,7 +262,7 @@ WARNING:ocfl.object:### Inventory for v3{ | |
} | ||
}, | ||
"v3": { | ||
"created": "2024-10-01T12:11:51.145505Z", | ||
"created": "2024-10-11T07:04:27.310019Z", | ||
"state": { | ||
"4d27c86b026ff70...b53": [ | ||
"foo/bar.xml" | ||
|
@@ -288,7 +288,7 @@ WARNING:ocfl.object:### Inventory for v3{ | |
This is inventory should match the example showing how content paths may differ from logical paths in <https://ocfl.io/1.0/spec/#example-object-diff-paths>. | ||
|
||
``` | ||
> python ocfl-object.py --build --src fixtures/1.0/content/spec-ex-diff-paths --id http://example.org/diff-paths --spec-version 1.0 --digest sha512-spec-ex --normalization md5 --created 2019-03-14T20:31:00Z -v | ||
> python ocfl-object.py build --src fixtures/1.0/content/spec-ex-diff-paths --id http://example.org/diff-paths --spec-version 1.0 --digest sha512-spec-ex --normalization md5 --created 2019-03-14T20:31:00Z -v | ||
WARNING:ocfl.object:### Inventory for v1{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
"head": "v1", | ||
|
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 |
---|---|---|
|
@@ -2,14 +2,14 @@ | |
|
||
_Output from `tests/test_demo_build_spec_v1_1_examples.py`._ | ||
|
||
## 1. Test for minumal example. | ||
## 1. Test for minimal example. | ||
|
||
### 1.1 Minimal example | ||
|
||
The digest type sha512-spec-ex is sha512 with most of the content stripped out and replaced with an ellipsis. This is inventory should match the example in <https://ocfl.io/1.1/spec/#example-minimal-object>. | ||
|
||
``` | ||
> python ocfl-object.py --build --src fixtures/1.1/content/spec-ex-minimal --id http://example.org/minimal --spec-version 1.1 --digest sha512-spec-ex --created 2018-10-02T12:00:00Z --message One file --name Alice --address [email protected] -v | ||
> python ocfl-object.py build --src fixtures/1.1/content/spec-ex-minimal --id http://example.org/minimal --spec-version 1.1 --digest sha512-spec-ex --created 2018-10-02T12:00:00Z --message One file --name Alice --address [email protected] -v | ||
WARNING:ocfl.object:### Inventory for v1{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
"head": "v1", | ||
|
@@ -47,7 +47,7 @@ WARNING:ocfl.object:### Inventory for v1{ | |
This is inventory should match the example with 3 versions in <https://ocfl.io/1.1/spec/#example-versioned-object>. | ||
|
||
``` | ||
> python ocfl-object.py --build --src fixtures/1.1/content/spec-ex-full --spec-version 1.1 --id ark:/12345/bcd987 --fixity md5 --fixity sha1 --digest sha512-spec-ex -v | ||
> python ocfl-object.py build --src fixtures/1.1/content/spec-ex-full --spec-version 1.1 --id ark:/12345/bcd987 --fixity md5 --fixity sha1 --digest sha512-spec-ex -v | ||
WARNING:ocfl.object:### Inventory for v1{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
"fixity": { | ||
|
@@ -90,7 +90,7 @@ WARNING:ocfl.object:### Inventory for v1{ | |
"type": "https://ocfl.io/1.1/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2024-10-01T12:11:51.675916Z", | ||
"created": "2024-10-11T07:04:27.845344Z", | ||
"state": { | ||
"7dcc352f96c56dc...c31": [ | ||
"foo/bar.xml" | ||
|
@@ -157,7 +157,7 @@ WARNING:ocfl.object:### Inventory for v2{ | |
"type": "https://ocfl.io/1.1/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2024-10-01T12:11:51.675916Z", | ||
"created": "2024-10-11T07:04:27.845344Z", | ||
"state": { | ||
"7dcc352f96c56dc...c31": [ | ||
"foo/bar.xml" | ||
|
@@ -171,7 +171,7 @@ WARNING:ocfl.object:### Inventory for v2{ | |
} | ||
}, | ||
"v2": { | ||
"created": "2024-10-01T12:11:51.676579Z", | ||
"created": "2024-10-11T07:04:27.846110Z", | ||
"state": { | ||
"4d27c86b026ff70...b53": [ | ||
"foo/bar.xml" | ||
|
@@ -236,7 +236,7 @@ WARNING:ocfl.object:### Inventory for v3{ | |
"type": "https://ocfl.io/1.1/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2024-10-01T12:11:51.675916Z", | ||
"created": "2024-10-11T07:04:27.845344Z", | ||
"state": { | ||
"7dcc352f96c56dc...c31": [ | ||
"foo/bar.xml" | ||
|
@@ -250,7 +250,7 @@ WARNING:ocfl.object:### Inventory for v3{ | |
} | ||
}, | ||
"v2": { | ||
"created": "2024-10-01T12:11:51.676579Z", | ||
"created": "2024-10-11T07:04:27.846110Z", | ||
"state": { | ||
"4d27c86b026ff70...b53": [ | ||
"foo/bar.xml" | ||
|
@@ -262,7 +262,7 @@ WARNING:ocfl.object:### Inventory for v3{ | |
} | ||
}, | ||
"v3": { | ||
"created": "2024-10-01T12:11:51.677024Z", | ||
"created": "2024-10-11T07:04:27.846566Z", | ||
"state": { | ||
"4d27c86b026ff70...b53": [ | ||
"foo/bar.xml" | ||
|
@@ -288,7 +288,7 @@ WARNING:ocfl.object:### Inventory for v3{ | |
This is inventory should match the example showing how content paths may differ from logical paths in <https://ocfl.io/1.1/spec/#example-object-diff-paths>. | ||
|
||
``` | ||
> python ocfl-object.py --build --src fixtures/1.1/content/spec-ex-diff-paths --id http://example.org/diff-paths --spec-version 1.1 --digest sha512-spec-ex --normalization md5 --created 2019-03-14T20:31:00Z -v | ||
> python ocfl-object.py build --src fixtures/1.1/content/spec-ex-diff-paths --id http://example.org/diff-paths --spec-version 1.1 --digest sha512-spec-ex --normalization md5 --created 2019-03-14T20:31:00Z -v | ||
WARNING:ocfl.object:### Inventory for v1{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
"head": "v1", | ||
|
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.