shared/helpers/create-annotation
This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.
shared/helpers/create-annotation
Section titled “shared/helpers/create-annotation”- Package:
@leipzigtreechat/shared - Source file:
packages/shared/src/helpers/create-annotation.ts
Summary
Section titled “Summary”The interface for the information needed for a qanary annotation value the value of the found annotation range the range of the found annotation
Functions
Section titled “Functions”createAnnotationInKnowledgeGraph
Section titled “createAnnotationInKnowledgeGraph”function createAnnotationInKnowledgeGraph({ message, componentName, annotation, annotationType = "qa:AnnotationAnswer",}: ICreateAnnotationInKnowledgeGraphOptions): Promise<void>Creates an annotation in the knowledge graph given in the message
Parameters
{ message, componentName, annotation, annotationType = "qa:AnnotationAnswer", }(ICreateAnnotationInKnowledgeGraphOptions) ReturnsPromise<void>Defined at: line 54
Interfaces
Section titled “Interfaces”IAnnotationInformation
Section titled “IAnnotationInformation”interface IAnnotationInformationThe interface for the information needed for a qanary annotation value the value of the found annotation range the range of the found annotation
Properties
value(string): the value of the found annotationrange(IAnnotationInformationRange): the range of the found annotationconfidence(number): the confidence of the found annotation Defined at: line 12
IAnnotationInformationRange
Section titled “IAnnotationInformationRange”interface IAnnotationInformationRangeThe range info range for a qanary annotation start the start of the found annotation end the end of the found annotation
Properties
start(number): the start of the found annotationend(number): the end of the found annotation Defined at: line 26
ICreateAnnotationInKnowledgeGraphOptions
Section titled “ICreateAnnotationInKnowledgeGraphOptions”interface ICreateAnnotationInKnowledgeGraphOptionsThe options to create an annotation in the knowledge graph
Properties
message(IQanaryMessage): the qanary message containing the endpoint and graphcomponentName(string): the component name that creates the annotationannotation(IAnnotationInformation): the actual annotation to be createdannotationType(string): the type of the annotation, prefixed with “qa:”, defaults to “qa:AnnotationAnswer” Defined at: line 36
In shared
Section titled “In shared”shared/constants/qanaryshared/enums/annotationsshared/enums/calculationshared/enums/component-listshared/enums/domainsshared/enums/intentsshared/enums/rasa-response-typesshared/enums/representationshared/helpers/create-annotationshared/helpers/get-question-urishared/helpers/get-questionshared/helpers/message-operationsshared/helpers/query-sparqlshared/helpers/question-uri-queryshared/indexshared/interfaces/annotationsshared/interfaces/qanary-interfaces- [
shared/interfaces/question-sparql-response copy](/source-code/shared/interfaces/question-sparql-response copy) shared/interfaces/question-sparql-responseshared/interfaces/representationshared/maps/annotations