Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ldkit/mod.ts>Lens

LDkit - Linked Data query toolkit for TypeScript developers
Go to Latest
class Lens
import { Lens } from "https://deno.land/x/ldkit@1.1.0/mod.ts";

Constructors

new
Lens(
schema: S,
context?: Context,
engine?: IQueryEngine,
)

Type Parameters

S extends SchemaPrototype
optional
I = SchemaInterface<S>

Properties

private
readonly
context: Context
private
readonly
engine: QueryEngineProxy
private
readonly
queryBuilder: QueryBuilder
private
readonly
schema: Schema

Methods

private
decode(graph: Graph)
private
updateQuery(query: string)
delete(...identities: SchemaInterfaceIdentity[] | Iri[])
deleteData(...quads: RDF.Quad[])
find(where?: string | RDF.Quad[], limit?: number)
findByIri(iri: Iri)
findByIris(iris: Iri[])
insert(...entities: Entity<I>[])
insertData(...quads: RDF.Quad[])
query(sparqlConstructQuery: string)
update(...entities: Entity<I>[])