UNPKG

@solid-data-modules/rdflib-utils

Version:

Utility functions for the development of Solid Data Modules for RDFLib.js

19 lines (18 loc) 658 B
import { IndexedFormula, NamedNode } from "rdflib"; import { TypeRegistrations } from "../index.js"; /** * Used query data from a type index document */ export declare class TypeIndexQuery { private store; typeIndexDoc: NamedNode; constructor(store: IndexedFormula, typeIndexDoc: NamedNode); /** * Look up the instances in the type registration for the given RDF class * @param type - The RDF class to look up * @returns A list of the URIs of the found instances */ queryInstancesForClass(type: NamedNode): NamedNode[]; private getNamedNodes; queryRegistrationsForType(type: NamedNode): TypeRegistrations; }