SecondarySourceRuntime: {
    declaration: SecondaryDataSourceDeclaration;
    facts: (iri: string) => Promise<Record<string, unknown>>;
    getEntity: (
        iri: string,
    ) => Promise<{ document: unknown; provenance?: FetchProvenance }>;
    reconcile: (document: unknown) => ReconciliationHit[];
    runExample: (exampleId: string) => Promise<ExampleResult>;
    search: (
        query: string,
        options?: {
            limit?: number;
            targetType?: string;
            typeHint?: string | string[];
        },
    ) => Promise<{ candidates: Candidate[]; provenance?: FetchProvenance }>;
}

Type declaration

  • declaration: SecondaryDataSourceDeclaration
  • facts: (iri: string) => Promise<Record<string, unknown>>
  • getEntity: (iri: string) => Promise<{ document: unknown; provenance?: FetchProvenance }>
  • reconcile: (document: unknown) => ReconciliationHit[]
  • runExample: (exampleId: string) => Promise<ExampleResult>
  • search: (
        query: string,
        options?: {
            limit?: number;
            targetType?: string;
            typeHint?: string | string[];
        },
    ) => Promise<{ candidates: Candidate[]; provenance?: FetchProvenance }>