graphdb
Version:
Javascript client library supporting GraphDB and RDF4J REST API.
27 lines (26 loc) • 871 B
TypeScript
export = RepositoryService;
/**
* Service for working repositories.
*
* @author Mihail Radkov
* @author Svilen Velikov
*/
declare class RepositoryService extends Service {
/**
* Retrieves the size of the repository.
*
* Effectively returns how much statements are in the repository.
*
* If one or multiple context are provided, the operation will be restricted
* upon each of them.
*
* @param {string|string[]} [context] context or contexts to restrict the
* size calculation. Will be encoded as N-Triple if it is not already one
*
* @return {ServiceRequest} a service request resolving to the total number of
* statements in the repository
*/
getSize(context?: string | string[]): ServiceRequest;
}
import Service = require("./service");
import ServiceRequest = require("./service-request");