Document Profile

Tracing the Lifecycle of a Document with DataTrails

The DataTrails document profile is a set of suggested Asset and Event attributes that allow you to trace the lifecycle of a document.

Profile Attribute Namespace

The document_ prefix is used to designate attributes that are part of the profile. Some of these are interpreted by DataTrails and others are guidelines.

Document Profile Asset Attributes

Asset AttributesMeaningRequirement
arc_profileDesignates that the Asset follows the document profileRequired, set as Document
document_hash_valueHash of the most recently published version of the documentRequired
document_hash_algAlgorithm used to compute document_hash_value (currently, only SHA-256 is supported)Required
document_documentAttachment containing the most recently uploaded version of the document being traced.Optional
document_versionSpecific version string for the most recent version of the documentOptional, but encouraged
document_statusLabel for filtering and accommodating critical document lifecycle events (Published, Withdrawn)Optional, enforced when using lifecycle events
document_portable_nameFormal name or identifier for document that persists across boundaries and throughout versionsOptional, not interpreted by DataTrails

Publish Event

Publish a new version of the document using special attributes interpreted by DataTrails for this event type.

Event AttributesMeaningRequirement
arc_display_typeTells DataTrails how to interpret EventRequired, must be set to Publish
document_version_authorsList of authors on this version of the documentOptional, see format below
Document Version Authors

You must express document_version_authors as a list of objects that have display_name as a property.

[
  {
    "display_name": "Alice", 
    "email": "", 
    ...
  }
]
Asset AttributesMeaningRequirement
document_hash_valueHash of this version of the documentRequired
document_hash_algAlgorithm used for hashing. We only officially support SHA-256.Required
document_statusLabel for filtering and accommodating critical document lifecycle eventsRequired, must be Published
document_documentAttachment containing this version of the documentOptional
document_versionVersion string for the this version of the documentOptional

Withdraw Event

If a document is no longer required, or if for any reason it is decided that it should no longer be used, then a document can be withdrawn. Withdrawal is optional and it is usually the final event in the document lifecycle. It can be reversed in DataTrails by publishing a new version.

Withdraw an entire document (mark that it is no longer considered current.)

Event AttributesMeaningRequirement
arc_display_typeTells DataTrails how to interpret EventRequired, must be set to Withdraw
document_withdrawal_reasonReason why document has been withdrawnOptional, but encouraged
Asset AttributesMeaningRequirement
document_statusLabel for filtering and accommodating critical document lifecycle eventsRequired, must be Withdrawn