graphdb
Version:
Javascript client library supporting GraphDB and RDF4J REST API.
39 lines (38 loc) • 1.61 kB
TypeScript
/**
* Helper class to use when new repository is programmatically created.
*
* @class
* @author Teodossi Dossev
*/
export class RepositoryConfig {
/**
* @param {string} [id] Repository ID
* @param {string} [location] Repository location
* @param {Object} [params] Map of repository configuration parameters.
* See {@link https://graphdb.ontotext.com/documentation/standard/configuring-a-repository.html#configuring-a-repository-configuration-parameters
* GraphDB Documentation}
* @param {string} [sesameType] Repository type as sesame rdf type.
* May be one of the following:
* <code>owlim:ReplicationCluster</code> for master repository
* <code>owlim:ReplicationClusterWorker</code> for worker repository
* <code>owlim:MonitorRepository</code> for se repository
* <code>openrdf:SailRepository</code> for se repository
* <code>graphdb:SailRepository</code> for free repository
* <code>openrdf:SystemRepository</code> for openrdf-system repository
* <code>graphdb:OntopRepository</code> for ontop repository
* @param {string} [title] Repository title
* @param {string} [type] Repository type as {@link RepositoryType}
*/
constructor(id?: string, location?: string, params?: any, sesameType?: string, title?: string, type?: string);
id: string;
location: string;
params: any;
sesameType: string;
title: string;
type: string;
/**
* Repository configuration to json getter
* @return {Object} Repository configuration as key value pairs object
*/
toJson(): any;
}