Skip to content

qanary-component-sparql-generation/get-enriched-instances

This page is auto-generated from TSDoc output. Edit the source file, not this Markdown.

qanary-component-sparql-generation/get-enriched-instances

Section titled “qanary-component-sparql-generation/get-enriched-instances”
  • Package: qanary-component-sparql-generation
  • Source file: apps/qanary-component-sparql-generation/src/get-enriched-instances.ts

Represents an AnnotationOfInstance enriched with its corresponding type from AnnotationOfSpotInstance

function getEnrichedInstances(message: IQanaryMessage): Promise<EnrichedInstance[]>

Gets all AnnotationOfInstance annotations with their corresponding types from AnnotationOfSpotInstance Links them by shared text positions (start/end)

Parameters

  • message (IQanaryMessage): The Qanary message containing endpoint and graph information Returns
  • Promise<EnrichedInstance[]>: Array of enriched instances with type information Defined at: line 33
interface EnrichedInstance

Represents an AnnotationOfInstance enriched with its corresponding type from AnnotationOfSpotInstance

Properties

  • instanceUri (string): The URI of the AnnotationOfInstance
  • entityUrn (string): The entity URN (body of AnnotationOfInstance)
  • entityType (string): The entity type from the corresponding AnnotationOfSpotInstance
  • exactQuote (string): The exact text that was annotated
  • start (number): Start position in the question text
  • end (number): End position in the question text
  • instanceConfidence (number): Confidence score from AnnotationOfInstance
  • spotConfidence (number): Confidence score from AnnotationOfSpotInstance Defined at: line 7