datacatalog.managers.annotations package

Submodules

datacatalog.managers.annotations.anno module

class datacatalog.managers.annotations.anno.AnnotationManager(mongodb, agave=None, *args, **kwargs)[source]

Bases: datacatalog.managers.common.Manager

PUBLIC_USER = 'world'
delete_association(uuid=None, token=None, force=False, **kwargs)[source]

Deletes an Association by its UUID

Parameters:uuid (str/list) – Association UUID (or list) to delete
Returns:(0, Associations deleted)
Return type:tuple
tags_list(limit=None, skip=None, public=True, private=True, visible=True, **kwargs)[source]

Retrieves the list of Tags

Parameters:
  • limit (int, optional) – Maximum number of records to return
  • skip (int, optional) – Skip this many matching records
  • public (bool, optional) – Return public tags
  • private (bool, optional) – Return private (to user) tags
  • visible (bool, optional) – Return only tags that are not soft-deleted
Returns:

All tags matching the filter criteria

Return type:

tuple

class datacatalog.managers.annotations.anno.AnnotationManagerSchema(**kwargs)[source]

Bases: datacatalog.jsonschemas.schema.JSONSchemaBaseObject

Defines the baseline Annotation Manager event

DEFAULT_DOCUMENT_NAME = 'anno.json'
class datacatalog.managers.annotations.anno.AnnotationResponse(record_uuid, annotation_uuid, association_uuid)

Bases: tuple

annotation_uuid

Alias for field number 1

association_uuid

Alias for field number 2

record_uuid

Alias for field number 0

class datacatalog.managers.annotations.anno.AssociatedAnnotation(annotation, association)

Bases: tuple

annotation

Alias for field number 0

association

Alias for field number 1

class datacatalog.managers.annotations.anno.DeletedRecordCounts(annotations, associations)

Bases: tuple

annotations

Alias for field number 0

associations

Alias for field number 1