UNPKG

@dasch-swiss/dsp-js

Version:
29 lines 1.52 kB
import { JsonConvert } from 'json2typescript'; import { Observable } from 'rxjs'; import { ListNodeV2Cache } from '../../../cache/ListNodeV2Cache'; import { OntologyCache } from '../../../cache/ontology-cache/OntologyCache'; import { CountQueryResponse } from '../search/count-query-response'; import { ReadResourceSequence } from './read/read-resource-sequence'; /** * @category Internal */ export declare namespace ResourcesConversionUtil { /** * Given a JSON-LD representing zero, one or 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<ReadResourceSequence>; /** * 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; } //# sourceMappingURL=ResourcesConversionUtil.d.ts.map