mmif.vocabulary module

mmif.vocabulary.annotation_types module

class mmif.vocabulary.annotation_types.AnnotationTypes(value)[source]

Bases: AnnotationTypesBase

This enum contains the URIs for the MMIF annotation types defined in the spec version 0.3.1. Use this to quickly get the correct URIs for those types, or use the objects themselves in your code and they will serialize to the strings.

Alignment = 'http://mmif.clams.ai/0.3.1/vocabulary/Alignment'[source]
Annotation = 'http://mmif.clams.ai/0.3.1/vocabulary/Annotation'[source]
BoundingBox = 'http://mmif.clams.ai/0.3.1/vocabulary/BoundingBox'[source]
Chapter = 'http://mmif.clams.ai/0.3.1/vocabulary/Chapter'[source]
Interval = 'http://mmif.clams.ai/0.3.1/vocabulary/Interval'[source]
Polygon = 'http://mmif.clams.ai/0.3.1/vocabulary/Polygon'[source]
Region = 'http://mmif.clams.ai/0.3.1/vocabulary/Region'[source]
Relation = 'http://mmif.clams.ai/0.3.1/vocabulary/Relation'[source]
Span = 'http://mmif.clams.ai/0.3.1/vocabulary/Span'[source]
TimeFrame = 'http://mmif.clams.ai/0.3.1/vocabulary/TimeFrame'[source]
TimePoint = 'http://mmif.clams.ai/0.3.1/vocabulary/TimePoint'[source]
VideoObject = 'http://mmif.clams.ai/0.3.1/vocabulary/VideoObject'[source]
class mmif.vocabulary.annotation_types.AnnotationTypesBase(value)[source]

Bases: ThingTypesBase

Inherit from this class to build your own custom annotation vocabularies. Each member’s name should be the name of the type, and each member’s value should be the URI of that type.

mmif.vocabulary.media_types module

class mmif.vocabulary.document_types.DocumentTypes(value)[source]

Bases: DocumentTypesBase

This enum contains the URIs for the MMIF document types defined in the spec version 0.3.1. Use this to quickly get the correct URIs for those types, or use the objects themselves in your code and they will serialize to the strings.

AudioDocument = 'http://mmif.clams.ai/0.3.1/vocabulary/AudioDocument'[source]
Document = 'http://mmif.clams.ai/0.3.1/vocabulary/Document'[source]
ImageDocument = 'http://mmif.clams.ai/0.3.1/vocabulary/ImageDocument'[source]
TextDocument = 'http://mmif.clams.ai/0.3.1/vocabulary/TextDocument'[source]
VideoDocument = 'http://mmif.clams.ai/0.3.1/vocabulary/VideoDocument'[source]
class mmif.vocabulary.document_types.DocumentTypesBase(value)[source]

Bases: ThingTypesBase

Inherit from this class to build your own custom document vocabularies. Each member’s name should be the name of the type, and each member’s value should be the URI of that type.