Skip to content

Latest commit

 

History

History
18 lines (17 loc) · 3.84 KB

DrsObject.md

File metadata and controls

18 lines (17 loc) · 3.84 KB

DrsObject

Properties

Name Type Description Notes
id String An identifier unique to this ```DrsObject```
name String A string that can be used to name a ```DrsObject```. This string is made up of uppercase and lowercase letters, decimal digits, hypen, period, and underscore [A-Za-z0-9.-_]. See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_282[portable filenames]. [optional]
selfUri String A drs:// hostname-based URI, as defined in the DRS documentation, that tells clients how to access this object. The intent of this field is to make DRS objects self-contained, and therefore easier for clients to store and pass around. For example, if you arrive at this DRS JSON by resolving a compact identifier-based DRS URI, the ```self_uri``` presents you with a hostname and properly encoded DRS ID for use in subsequent ```access``` endpoint calls.
size Integer For blobs, the blob size in bytes. For bundles, the cumulative size, in bytes, of items in the contents field.
createdTime String Timestamp of content creation in RFC3339. (This is the creation time of the underlying content, not of the JSON object.)
updatedTime String Timestamp of content update in RFC3339, identical to ```created_time``` in systems that do not support updates. (This is the update time of the underlying content, not of the JSON object.) [optional]
version String A string representing a version. (Some systems may use checksum, a RFC3339 timestamp, or an incrementing version number.) [optional]
mimeType String A string providing the mime-type of the ```DrsObject```. [optional]
checksums AllOfDrsObjectChecksums The checksum of the ```DrsObject```. At least one checksum must be provided. For blobs, the checksum is computed over the bytes in the blob. For bundles, the checksum is computed over a sorted concatenation of the checksums of its top-level contained objects (not recursive, names not included). The list of checksums is sorted alphabetically (hex-code) before concatenation and a further checksum is performed on the concatenated checksum value. For example, if a bundle contains blobs with the following checksums: md5(blob1) = 72794b6d md5(blob2) = 5e089d29 Then the checksum of the bundle is: md5( concat( sort( md5(blob1), md5(blob2) ) ) ) = md5( concat( sort( 72794b6d, 5e089d29 ) ) ) = md5( concat( 5e089d29, 72794b6d ) ) = md5( 5e089d2972794b6d ) = f7a29a04
accessMethods AllOfDrsObjectAccessMethods The list of access methods that can be used to fetch the ```DrsObject```. Required for single blobs; optional for bundles. [optional]
contents AllOfDrsObjectContents If not set, this ```DrsObject``` is a single blob. If set, this ```DrsObject``` is a bundle containing the listed ```ContentsObject``` s (some of which may be further nested). [optional]
description String A human readable description of the ```DrsObject```. [optional]
aliases List<String> A list of strings that can be used to find other metadata about this ```DrsObject``` from external metadata sources. These aliases can be used to represent secondary accession numbers or external GUIDs. [optional]