Type Alias FinderKnowledgeBaseDescription<FindResultType, FullEntityType, SourceType>
FinderKnowledgeBaseDescription: { authorityIRI?: string; description: string; detailRenderer?: (id: string) => YasguiSPARQLEditor; find: ( searchString: string, typeIRI: string, typeName: string, findOptions?: FindOptions, ) => Promise<FindResultType[]>; getEntity?: (id: string, typeIRI?: string) => Promise<FullEntityType>; icon: string | YasguiSPARQLEditor; id: SourceType; label: string; listItemRenderer?: ( entry: FindResultType, idx: number, typeIRI: string, selected: boolean, onSelect?: (id: string, index: number) => void, onAccept?: (id: string, entry: FindResultType) => void, ) => YasguiSPARQLEditor;} Type Parameters
- FindResultType = any
- FullEntityType = any
- SourceType extends string = string
Type declaration
OptionalauthorityIRI?: string
description: string
OptionaldetailRenderer?: (id: string) => YasguiSPARQLEditor
find: (
searchString: string,
typeIRI: string,
typeName: string,
findOptions?: FindOptions,
) => Promise<FindResultType[]>
OptionalgetEntity?: (id: string, typeIRI?: string) => Promise<FullEntityType>
label: string
OptionallistItemRenderer?: (
entry: FindResultType,
idx: number,
typeIRI: string,
selected: boolean,
onSelect?: (id: string, index: number) => void,
onAccept?: (id: string, entry: FindResultType) => void,
) => YasguiSPARQLEditor