Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
class Resource
import { Resource } from "https://deno.land/x/ldkit@v0.5.0/mod.ts";

Constructors

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

Type Parameters

S extends SchemaPrototype
optional
I = SchemaInterface<S>

Properties

private
readonly
$trigger: BehaviorSubject
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>[])