diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-20 16:57:57 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-20 16:57:57 -0700 |
commit | cd829eedb5bfc7328ab5266650a625a6c88db6fa (patch) | |
tree | 90aa164cbd7f4e86aadc25dbd036dab680c30e80 /guide/src/entity_file.md | |
parent | eb31be2172264091e192bcb4f17ffd571253fffa (diff) | |
download | fatcat-cd829eedb5bfc7328ab5266650a625a6c88db6fa.tar.gz fatcat-cd829eedb5bfc7328ab5266650a625a6c88db6fa.zip |
start refactoring guide (per-entity pages)
Diffstat (limited to 'guide/src/entity_file.md')
-rw-r--r-- | guide/src/entity_file.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/guide/src/entity_file.md b/guide/src/entity_file.md new file mode 100644 index 00000000..7719adfd --- /dev/null +++ b/guide/src/entity_file.md @@ -0,0 +1,24 @@ + +# File Entity Reference + +## Fields + +- `size` (integer, positive, non-zero): Size of file in bytes. Eg: 1048576. +- `md5` (string): MD5 hash in lower-case hex. Eg: "d41efcc592d1e40ac13905377399eb9b". +- `sha1` (string): SHA-1 hash in lower-case hex. Not technically required, but + the most-used of the hash fields and should always be included. Eg: + "f013d66c7f6817d08b7eb2a93e6d0440c1f3e7f8". +- `sha256`: SHA-256 hash in lower-case hex. Eg: + "a77e4c11a57f1d757fca5754a8f83b5d4ece49a2d28596889127c1a2f3f28832". +- `urls`: An array of "typed" URLs. Order is not meaningful, and may not be + preserved. + - `url` (string, required): Eg: "https://example.edu/~frau/prcding.pdf". + - `rel` (string, required): Eg: "webarchive". +- `mimetype` (string): Format of the file. If XML, specific schema can be + included after a `+`. Example: "application/pdf" +- `release_ids` (array of string identifiers): references to `release` entities + that this file represents a manifestation of. Note that a single file can + contain multiple release references (eg, a PDF containing a full issue with + many articles), and that a release will often have multiple files (differing + only by watermarks, or different digitizations of the same printed work, or + variant MIME/media types of the same published work). |