addAnnotationResultForProject |
suspend fun Document .addAnnotationResultForProject(project: Project , annotationResult: AnnotationResult , checkWebHooks: Boolean , applyPolicy: Boolean , overwriteFinalizedAnnotations: Boolean = false, curationRequest: String ? = null, annotationSchema: DenormalizedAnnotationSchema ? = null): Unit |
addEmptyProjectAnnotationData |
fun Document .addEmptyProjectAnnotationData(project: Project ): Unit |
addFinalizedAnnotationResultForProject |
Extension function to add FinalizedAnnotationResult to a Document and a Project. Might also do logic related to the Project after adding the result.suspend fun Document .addFinalizedAnnotationResultForProject(project: Project , finalizedAnnotationResult: FinalizedAnnotationResult , checkWebHooks: Boolean , applyPolicy: Boolean , overwriteFinalizedAnnotations: Boolean = false, curationRequest: String ? = null, annotationSchema: DenormalizedAnnotationSchema ? = null): ProjectAnnotationData |
addGeneratedAnnotationDataForProject |
fun Document .addGeneratedAnnotationDataForProject(project: Project , generatedAnnotationData: GeneratedAnnotationData ): Unit |
applyInputMapping |
Apply the input mapping to a document, returning a map of string keys to string values of the original document.fun Document .applyInputMapping(inputMapping: InputMapping ): Map < String , String > |
getNewestFinalizedAnnotationResult |
Get the newest finalized annotation, being treated as the actual final annotation. FinalizedAnnotations can be changed after the fact, so the newest one is always the new truth.fun ProjectAnnotationData .getNewestFinalizedAnnotationResult(): FinalizedAnnotationResult ? |
updateIndexes |
Create all indexes in mongoDB. If they already exist, nothing will happen. Every index is sparse, because they are dynamic and depend on user input. Normally, this would not be recommended when designing a database, but because of the highly configurable nature of ActiveAnno, it is done that way.suspend fun updateIndexes(): Unit |