Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IApproximateMembershipFilter

A filter that can test approximate memberships.

Hierarchy

  • IApproximateMembershipFilter

Implemented by

Index

Properties

Properties

filter

filter: (term: RDF.Term, context: ActionContext) => Promise<boolean>

An approximate filter function.

param

An RDF Term.

param

The action context.

returns

True if the term is probably in the dataset, false if the term is definitely not in the dataset.

Type declaration

    • (term: RDF.Term, context: ActionContext): Promise<boolean>
    • Parameters

      • term: RDF.Term
      • context: ActionContext

      Returns Promise<boolean>

Optional prefetch

prefetch: undefined | ((context: ActionContext) => Promise<any>)

Calling this method will make sure that this filter will become fully loaded. This is useful when the filter is lazily constructed.

param

The action context.

returns

A promise resolving when the filter has been fully loaded.

Generated using TypeDoc