@solid-data-modules/rdflib-utils
Version:
Utility functions for the development of Solid Data Modules for RDFLib.js
10 lines (9 loc) • 513 B
TypeScript
import { NamedNode } from "rdflib";
import { UpdateOperation } from "../web-operations/index.js";
/**
* Create a new type registration for the given type that links to the given resource instance
* @param typeIndexDoc - The type index document (private or public)
* @param instanceUri - The URI of the instance to add
* @param type - The RDF class to register the instance for
*/
export declare function addInstanceToTypeIndex(typeIndexDoc: NamedNode, instanceUri: string, type: NamedNode): UpdateOperation;