import { type RDF } from "https://deno.land/x/ldkit@v0.6.0/library/rdf.ts";
const { AlgebraQueryable } = RDF;
Generic query engine interfaces. It allow engines to return any type of result object for Algebra queries.
Type Parameters
optional
QueryAlgebraContextType extends QueryAlgebraContext = QueryAlgebraContextMethods
query(query: AlgebraType, context?: QueryAlgebraContextType): Promise<Query<SupportedMetadataType>>
Initiate a given query provided as an Algebra object.
This will produce a future to a query result, which has to be executed to obtain the query results.
This can reject given an unsupported or invalid query.