import { type RDF } from "https://deno.land/x/ldkit@v0.5.1/rdf.ts";
const { StringSparqlQueryable } = RDF;
SPARQL-constrained query interface for queries provided as strings.
This interface guarantees that result objects are of the expected type as defined by the SPARQL spec.
Type Parameters
optional
QueryStringContextType extends QueryStringContext = QueryStringContextdefinition:
& unknown
& (SupportedResultType extends BindingsResultSupport ? { queryBindings(query: string, context?: QueryStringContextType): Promise<ResultStream<Bindings>>; } : unknown)
& (SupportedResultType extends BooleanResultSupport ? { queryBoolean(query: string, context?: QueryStringContextType): Promise<boolean>; } : unknown)
& (SupportedResultType extends QuadsResultSupport ? { queryQuads(query: string, context?: QueryStringContextType): Promise<ResultStream<RDF.Quad>>; } : unknown)
& (SupportedResultType extends VoidResultSupport ? { queryVoid(query: string, context?: QueryStringContextType): Promise<void>; } : unknown)