Document (v1)

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

location

string

native

mime

string

native

id *

string

Thing (v1)

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"
}