UNPKG

sparnatural

Version:

Visual client-side SPARQL query builder and knowledge graph exploration tool

58 lines (57 loc) 3.05 kB
import { StoreModel } from "../../../rdf/StoreModel"; import { ISparnaturalSpecification } from "../ISparnaturalSpecification"; export interface SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; } export declare class SparnaturalSearchWidgetsScorerRegistry { static instance: SparnaturalSearchWidgetsScorerRegistry; searchWidgets: SparnaturalSearchWidgetScorer[]; private constructor(); static getInstance(): SparnaturalSearchWidgetsScorerRegistry; getSearchWidgets(): SparnaturalSearchWidgetScorer[]; } export declare class AutocompleteWidgetScorer implements SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; } export declare class ListWidgetScorer implements SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; } export declare class TreeWidgetScorer implements SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; } export declare class DatePickerWidgetScorer implements SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; } export declare class YearPickerWidgetScorer implements SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; } export declare class MapWidgetScorer implements SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; } export declare class BooleanWidgetScorer implements SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; } export declare class NumberWidgetScorer implements SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; } export declare class NoWidgetScorer implements SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; } export declare class SearchRegexWidgetScorer implements SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; } export declare class SearchEqualWidgetScorer implements SparnaturalSearchWidgetScorer { getUri(): string; score(propertyShape: string, range: string, store: StoreModel, config: ISparnaturalSpecification): number; }