Document (v1)¶
Previous Version: none (this is the oldest version)
Shortname:
DocumentInherits from: Thing (v1)
Included in: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.1.1
Also Known As: This type is also accessible at the following legacy URLs for backward compatibility:
Description¶
A document of some media type. Annotations directly or indirectly anchor to documents. In CLAMS, a document typically refers to an external file fia the location property, but for text documents the actual content can be in-line in the document type.
Properties¶
Synopsis¶
Properties marked with * are required.
Property |
Type |
Origin |
|---|---|---|
string |
native |
|
string |
native |
|
id * |
string |
Native¶
location¶
type: string
required: no
The location of an external file.
mime¶
type: string
required: no
The MIME type of the document, only used when the location property is used.
Inherited from Thing (v1)¶
id¶
type: string
required: yes
A unique identifier for the annotation or document. Uniqueness is relative to the view the annotation is in or the list of documents at the top level of a MMIF file.
JSON Schema¶
{
"additionalProperties": true,
"properties": {
"id": {
"description": "A unique identifier for the annotation or document. Uniqueness is relative to the view the annotation is in or the list of documents at the top level of a MMIF file.",
"type": "string"
},
"location": {
"type": "string",
"description": "The location of an external file."
},
"mime": {
"type": "string",
"description": "The MIME type of the document, only used when the *location* property is used."
}
},
"required": [
"id"
],
"type": "object"
}