Skip to content

qanary-component-sparql-generation/extract-coordinates-from-instances

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

qanary-component-sparql-generation/extract-coordinates-from-instances

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

Extracts address components (street, street number, zip) from enriched instances

function extractAddressComponents(instances: EnrichedInstance[]): AddressComponents

Extracts address components (street, street number, zip) from enriched instances

Parameters

  • instances (EnrichedInstance[]): Array of enriched instances Returns
  • AddressComponents: Object with extracted address components Defined at: line 16
function buildAddressString(components: AddressComponents): string | null

Builds a complete address string from address components

Parameters

  • components (AddressComponents): Address components Returns
  • string | null: Formatted address string, or null if no meaningful components found Defined at: line 42
function extractCoordinatesFromInstances(instances: EnrichedInstance[]): Promise<Coordinates | null>

Extracts coordinates from street/street number/zip information in instances

Parameters

  • instances (EnrichedInstance[]): Array of enriched instances Returns
  • Promise<Coordinates | null>: Coordinates if address components found, null otherwise Defined at: line 76