Span (v1)¶
Warning
This is not the latest version. The latest version is v5.
Previous Version: none (this is the oldest version)
Shortname:
SpanInherits from: Interval (v1)
Also Known As: This type is also accessible at the following legacy URLs for backward compatibility:
Similar Types: This type is similar to the following types in other vocabularies:
Description¶
An annotation over a region in primary text data. A Span may be defined by pointing directly into primary data (by using start and end offsets) or by linking to one or more other Annotations with the targets property.
Properties¶
Synopsis¶
Properties marked with * are required.
Property |
Type |
Origin |
|---|---|---|
integer |
||
integer |
||
array of string |
||
string |
||
string |
||
id * |
string |
Inherited from Interval (v1)¶
end¶
type: integer
required: no
The ending offset in the primary data. This point is exclusive. For time intervals, the unit is determined by the timeUnit metadata key. For text intervals, the unit is Unicode code point.
start¶
type: integer
required: no
The starting offset in the primary data. This point is inclusive. For time intervals, the unit is determined by the timeUnit metadata key. For text intervals, the unit is Unicode code point.
targets¶
type: array of string
required: no
IDs of a sequence of annotations covering the region of primary data referred to by this annotation. Used as an alternative to start and end to point to component annotations (for example a token sequence) rather than directly into primary data, or to link two or more annotations (for example in a coreference annotation).
Inherited from Region (v1)¶
timeUnit¶
type: string
required: no
Specifies which unit of time the measurement is based. Can be seconds or milliseconds, or in case of annotations on a VideoDocument, frames.
Inherited from Annotation (v2)¶
document¶
type: string
required: no
The identifier of the document that the annotation is over.
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"
},
"document": {
"type": "string",
"description": "The identifier of the document that the annotation is over."
},
"timeUnit": {
"type": "string",
"description": "Specifies which unit of time the measurement is based. Can be *seconds* or *milliseconds*, or in case of annotations on a VideoDocument, *frames*."
},
"start": {
"type": "integer",
"description": "The starting offset in the primary data. This point is inclusive. For time intervals, the unit is determined by the *timeUnit* metadata key. For text intervals, the unit is Unicode code point."
},
"end": {
"type": "integer",
"description": "The ending offset in the primary data. This point is exclusive. For time intervals, the unit is determined by the *timeUnit* metadata key. For text intervals, the unit is Unicode code point."
},
"targets": {
"items": {
"type": "string"
},
"type": "array",
"description": "IDs of a sequence of annotations covering the region of primary data referred to by this annotation. Used as an alternative to *start* and *end* to point to component annotations (for example a token sequence) rather than directly into primary data, or to link two or more annotations (for example in a coreference annotation)."
}
},
"required": [
"id"
],
"type": "object"
}