Home > @rezasoltani/solid-typeindex-support > TypeIndexHelper > getFromTypeIndex
Retrieves all instances of the given RDF class from the user’s typeIndexe.
Signature:
static getFromTypeIndex(webId: string, rdfClass: string, fetch: any, isPrivate: boolean): Promise<{
instanceContainers: string[];
instances: string[];
}>;
| Parameter | Type | Description |
|---|---|---|
| webId | string | The user’s WebID |
| rdfClass | string | The RDF class to retrieve instances for, as a Valid URL |
| fetch | any | Authenticated fetch function |
| isPrivate | boolean | Whether the typeIndexe is private or public |
Returns:
Promise<{ instanceContainers: string[]; instances: string[]; }>
Promise resolving to an object containing instance URLs and instanceContainers URLs.