@knora/api
Version:
JavaScript library that handles API requests to Knora
26 lines (25 loc) • 1.39 kB
TypeScript
import { JsonConvert } from "json2typescript";
import { Observable } from "rxjs";
import { ListNodeV2Cache } from "../../../cache/ListNodeV2Cache";
import { OntologyCache } from "../../../cache/OntologyCache";
import { CountQueryResponse } from "../search/count-query-response";
import { ReadResource } from "./read/read-resource";
export declare namespace ResourcesConversionUtil {
/**
* Given a JSON-LD representing zero, one more resources, converts it to an array of ReadResource.
*
* JSON-LD is expected to have expanded prefixes (processed by jsonld processor).
*
* @param resourcesJsonld a JSON-LD object with expanded prefixes representing zero, one or more resources.
* @param ontologyCache instance of OntologyCache to be used.
* @param listNodeCache instance of ListNodeCache to be used.
* @param jsonConvert instance of JsonConvert to be used.
*/
const createReadResourceSequence: (resourcesJsonld: object, ontologyCache: OntologyCache, listNodeCache: ListNodeV2Cache, jsonConvert: JsonConvert) => Observable<ReadResource[]>;
/**
* Creates a response to a count query.
* @param countQueryResult the result of the count query.
* @param jsonConvert the instance of jsonConvert to be used.
*/
const createCountQueryResponse: (countQueryResult: object, jsonConvert: JsonConvert) => CountQueryResponse;
}