UNPKG

@jahed/sparql-engine

Version:

SPARQL query engine for servers and web browsers.

21 lines (20 loc) 1.39 kB
import type { VariableTerm } from "sparqljs"; import type { EngineTripleValue } from "../../types.ts"; type Term = EngineTripleValue; type TermRows = { [key: string]: Term[]; }; /** * Implementation of Non standard SPARQL aggregations offered by the framework * All arguments are pre-compiled from string to js terms */ declare const _default: { "https://callidon.github.io/sparql-engine/aggregates#accuracy": ({ value: a }: VariableTerm, { value: b }: VariableTerm, rows: TermRows) => Term; "https://callidon.github.io/sparql-engine/aggregates#gmean": ({ value: variable }: VariableTerm, rows: TermRows) => Term; "https://callidon.github.io/sparql-engine/aggregates#mse": ({ value: a }: VariableTerm, { value: b }: VariableTerm, rows: TermRows) => Term; "https://callidon.github.io/sparql-engine/aggregates#rmse": ({ value: a }: VariableTerm, { value: b }: VariableTerm, rows: TermRows) => Term; "https://callidon.github.io/sparql-engine/aggregates#precision": ({ value: a }: VariableTerm, { value: b }: VariableTerm, rows: TermRows) => Term; "https://callidon.github.io/sparql-engine/aggregates#recall": ({ value: a }: VariableTerm, { value: b }: VariableTerm, rows: TermRows) => Term; "https://callidon.github.io/sparql-engine/aggregates#f1": ({ value: a }: VariableTerm, { value: b }: VariableTerm, rows: TermRows) => Term; }; export default _default;