ActiveAnno

Web-based responsive document annotation tool

View the Project on GitHub MaxMello/ActiveAnno

activeannoservice / api.annotate.dto / PostAnnotationResult

PostAnnotationResult

data class PostAnnotationResult

Data class for annotation and curation endpoints for receiving annotation results. Will be mapped into other data structures for storing.

Constructors

Name Summary
<init> Data class for annotation and curation endpoints for receiving annotation results. Will be mapped into other data structures for storing.PostAnnotationResult(documentID: DocumentID, projectID: ProjectID, documentData: Map<String, Any>, annotations: AnnotationMap, usedProject: UsedAnnotateProject, interactionLog: InteractionLog, curationRequest: String? = null)

Properties

Name Summary
annotations val annotations: AnnotationMap
curationRequest val curationRequest: String?
documentData val documentData: Map<String, Any>
documentID val documentID: DocumentID
interactionLog val interactionLog: InteractionLog
projectID val projectID: ProjectID
usedProject val usedProject: UsedAnnotateProject

Extension Functions

Name Summary
validate Validate a PostAnnotationResult by applying the enableConditions and validate the annotation if requiredsuspend fun PostAnnotationResult.validate(document: Document, project: Project, locale: Locale?): List<ValidationError>