-
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
60 changed files
with
3,103 additions
and
1,898 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
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
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 |
---|---|---|
|
@@ -9,15 +9,15 @@ _Output from `tests/test_demo_build_spec_v1_0_examples.py`._ | |
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 create --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 | ||
### Inventory for v1 | ||
{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
"head": "v1", | ||
"id": "http://example.org/minimal", | ||
"manifest": { | ||
"7545b8720a60123...f67": [ | ||
"v1/content/file.txt" | ||
"v1/content/v1/file.txt" | ||
] | ||
}, | ||
"type": "https://ocfl.io/1.0/spec/#inventory", | ||
|
@@ -27,7 +27,7 @@ The digest type sha512-spec-ex is sha512 with most of the content stripped out a | |
"message": "One file", | ||
"state": { | ||
"7545b8720a60123...f67": [ | ||
"file.txt" | ||
"v1/file.txt" | ||
] | ||
}, | ||
"user": { | ||
|
@@ -47,7 +47,7 @@ The digest type sha512-spec-ex is sha512 with most of the content stripped out a | |
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 --metadata extra_fixtures/1.0/content/spec-ex-full-metadata.json -v | ||
### Inventory for v3 | ||
{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
|
@@ -100,7 +100,8 @@ This is inventory should match the example with 3 versions in <https://ocfl.io/1 | |
"type": "https://ocfl.io/1.0/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2024-10-24T18:30:33.138005Z", | ||
"created": "2018-01-01T01:01:01Z", | ||
"message": "Initial import", | ||
"state": { | ||
"7dcc352f96c56dc...c31": [ | ||
"foo/bar.xml" | ||
|
@@ -111,10 +112,15 @@ This is inventory should match the example with 3 versions in <https://ocfl.io/1 | |
"ffccf6baa218097...62e": [ | ||
"image.tiff" | ||
] | ||
}, | ||
"user": { | ||
"address": "[email protected]", | ||
"name": "Alice" | ||
} | ||
}, | ||
"v2": { | ||
"created": "2024-10-24T18:30:33.138439Z", | ||
"created": "2018-02-02T02:02:02Z", | ||
"message": "Fix bar.xml, remove image.tiff, add empty2.txt", | ||
"state": { | ||
"4d27c86b026ff70...b53": [ | ||
"foo/bar.xml" | ||
|
@@ -123,10 +129,15 @@ This is inventory should match the example with 3 versions in <https://ocfl.io/1 | |
"empty.txt", | ||
"empty2.txt" | ||
] | ||
}, | ||
"user": { | ||
"address": "[email protected]", | ||
"name": "Bob" | ||
} | ||
}, | ||
"v3": { | ||
"created": "2024-10-24T18:30:33.138771Z", | ||
"created": "2018-03-03T03:03:03Z", | ||
"message": "Reinstate image.tiff, delete empty.txt", | ||
"state": { | ||
"4d27c86b026ff70...b53": [ | ||
"foo/bar.xml" | ||
|
@@ -137,6 +148,10 @@ This is inventory should match the example with 3 versions in <https://ocfl.io/1 | |
"ffccf6baa218097...62e": [ | ||
"image.tiff" | ||
] | ||
}, | ||
"user": { | ||
"address": "[email protected]", | ||
"name": "Cecilia" | ||
} | ||
} | ||
} | ||
|
@@ -151,7 +166,7 @@ This is inventory should match the example with 3 versions in <https://ocfl.io/1 | |
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 create --src fixtures/1.0/content/spec-ex-diff-paths/v1 --id http://example.org/diff-paths --spec-version 1.0 --digest sha512-spec-ex --normalization md5 --created 2019-03-14T20:31:00Z -v | ||
### Inventory for v1 | ||
{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
|
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 |
---|---|---|
|
@@ -9,15 +9,15 @@ _Output from `tests/test_demo_build_spec_v1_1_examples.py`._ | |
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 create --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 | ||
### Inventory for v1 | ||
{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
"head": "v1", | ||
"id": "http://example.org/minimal", | ||
"manifest": { | ||
"7545b8720a60123...f67": [ | ||
"v1/content/file.txt" | ||
"v1/content/v1/file.txt" | ||
] | ||
}, | ||
"type": "https://ocfl.io/1.1/spec/#inventory", | ||
|
@@ -27,7 +27,7 @@ The digest type sha512-spec-ex is sha512 with most of the content stripped out a | |
"message": "One file", | ||
"state": { | ||
"7545b8720a60123...f67": [ | ||
"file.txt" | ||
"v1/file.txt" | ||
] | ||
}, | ||
"user": { | ||
|
@@ -47,7 +47,7 @@ The digest type sha512-spec-ex is sha512 with most of the content stripped out a | |
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 --metadata extra_fixtures/1.1/content/spec-ex-full-metadata.json -v | ||
### Inventory for v3 | ||
{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
|
@@ -100,7 +100,8 @@ This is inventory should match the example with 3 versions in <https://ocfl.io/1 | |
"type": "https://ocfl.io/1.1/spec/#inventory", | ||
"versions": { | ||
"v1": { | ||
"created": "2024-10-24T18:30:33.910644Z", | ||
"created": "2018-01-01T01:01:01Z", | ||
"message": "Initial import", | ||
"state": { | ||
"7dcc352f96c56dc...c31": [ | ||
"foo/bar.xml" | ||
|
@@ -111,10 +112,15 @@ This is inventory should match the example with 3 versions in <https://ocfl.io/1 | |
"ffccf6baa218097...62e": [ | ||
"image.tiff" | ||
] | ||
}, | ||
"user": { | ||
"address": "[email protected]", | ||
"name": "Alice" | ||
} | ||
}, | ||
"v2": { | ||
"created": "2024-10-24T18:30:33.911054Z", | ||
"created": "2018-02-02T02:02:02Z", | ||
"message": "Fix bar.xml, remove image.tiff, add empty2.txt", | ||
"state": { | ||
"4d27c86b026ff70...b53": [ | ||
"foo/bar.xml" | ||
|
@@ -123,10 +129,15 @@ This is inventory should match the example with 3 versions in <https://ocfl.io/1 | |
"empty.txt", | ||
"empty2.txt" | ||
] | ||
}, | ||
"user": { | ||
"address": "[email protected]", | ||
"name": "Bob" | ||
} | ||
}, | ||
"v3": { | ||
"created": "2024-10-24T18:30:33.911365Z", | ||
"created": "2018-03-03T03:03:03Z", | ||
"message": "Reinstate image.tiff, delete empty.txt", | ||
"state": { | ||
"4d27c86b026ff70...b53": [ | ||
"foo/bar.xml" | ||
|
@@ -137,6 +148,10 @@ This is inventory should match the example with 3 versions in <https://ocfl.io/1 | |
"ffccf6baa218097...62e": [ | ||
"image.tiff" | ||
] | ||
}, | ||
"user": { | ||
"address": "[email protected]", | ||
"name": "Cecilia" | ||
} | ||
} | ||
} | ||
|
@@ -151,12 +166,12 @@ This is inventory should match the example with 3 versions in <https://ocfl.io/1 | |
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 create --src fixtures/1.1/content/spec-ex-diff-paths/v1 --id http://example.org/diff-paths/v1 --spec-version 1.1 --digest sha512-spec-ex --normalization md5 --created 2019-03-14T20:31:00Z -v | ||
### Inventory for v1 | ||
{ | ||
"digestAlgorithm": "sha512-spec-ex", | ||
"head": "v1", | ||
"id": "http://example.org/diff-paths", | ||
"id": "http://example.org/diff-paths/v1", | ||
"manifest": { | ||
"7545b8720a60123...f67": [ | ||
"v1/content/3bacb119a98a15c5" | ||
|
Oops, something went wrong.