Class: EnapsoGraphDBAdmin

EnapsoGraphDBAdmin()

new EnapsoGraphDBAdmin()

Source:

Methods

(static) createRepository(aOptions) → {Promise}

Creates a new repositories
Parameters:
Name Type Description
aOptions Object The options responsible for the method.
Properties
Name Type Default Description
id string The id in the options.
location string '' The location in the options.
baseURL string 'http://ont.enapso.com#' The Base URL in the options.
entityIndexSize number '200000' The Entity index size in the options.
entityIdSize number '32' The Entity ID bit-size in the options.
ruleset string 'owl-horst-optimized' The Ruleset in the options.
storageFolder string 'storage' The Storage folder in the options.
enableContextIndex boolean false The Use context index in the options.
cacheMemory string '80m' The Total cache memory in the options.
tupleIndexMemory string '80m' The Tuple index memory in the options.
enablePredicateList boolean false The Use predicate indices in the options.
predicateMemory number 0 The Predicate index memory in the options.
ftsMemory number 0 The Full-text search memory in the options.
ftsIndexPolicy string 'never' The Full-text search indexing policy in the options.
ftsLiteralsOnly boolean true The Full-text search literals only in the options.
inMemoryLiteralProperties boolean false The Cache literal language tags in the options.
enableLiteralIndex boolean true The Enable literal index in the options.
indexCompressionRatio number -1 The Index compression ratio in the options.
checkForInconsistencies boolean false The Check for inconsistencies in the options.
disableSameAs boolean false The Disable owl:sameAs in the options.
enableOptimization boolean true The Enable query optimisation in the options.
transactionIsolation boolean true The Transaction isolation in the options.
transactionMode string 'safe' The Transaction mode in the options.
queryTimeout number 0 The Query time-out (seconds) in the options.
queryLimitResults number 0 The Limit query results in the options.
throwQueryEvaluationExceptionOnTimeout boolean false The Throw exception on query time-out in the options.
readOnly boolean false The Read-only in the options.
nonInterpretablePredicates string 'http://www.w3.org/2000/01/rdf-schema#label;http://www.w3.org/1999/02/22-rdf-syntax-ns#type;http://www.ontotext.com/owlim/ces#gazetteerConfig;http://www.ontotext.com/owlim/ces#metadataConfig' The Non-interpretable predicates in the options.
isShacl boolean false The Supports SHACL validation in the options.
title string 'enapso Repository' - The Title of the repository in the options.
type string 'free' The Type in the options.
Source:
Returns:
Promise object represents the result of creating new repository.
Type
Promise

(static) createUser(aOptions) → {Promise}

Creates a new user
Parameters:
Name Type Description
aOptions Object The options responsible for the method.
Properties
Name Type Default Description
username string The username in the options.
password string The password in the options.
authorities Array '[]' The authorities in the options.
DEFAULT_SAME_AS boolean true The DEFAULT SAME AS in the options.
DEFAULT_INFERENCE boolean true The DEFAULT INFERENCE in the options.
EXECUTE_COUNT boolean true The EXECUTE COUNT in the options.
IGNORE_SHARED_QUERIES boolean true The IGNORE SHARED QUERIES in the options.
Source:
Returns:
Promise object represents result of creating a new user
Type
Promise

(static) getHeaders() → {Object}

Returns Headers
Source:
Returns:
Headers
Type
Object

(static) getRepositories() → {Promise}

Returns all the repositories
Source:
Returns:
Promise object represents all the repositories
Type
Promise

(static) waitForAsynchronousResponse(args) → {Promise}

Waits for a response
Parameters:
Name Type Description
args Object The args responsible for the method.
Properties
Name Type Description
uri string The uri in the args.
Source:
Returns:
Promise object represents the response object
Type
Promise

(static) waitForUploadResponse(args) → {Promise}

Waits for upload response
Parameters:
Name Type Description
args Object The args responsible for the method.
Properties
Name Type Default Description
timeout number 60000 Represents the timeout for the method
interval number 1000 Represents the interval for the method
Source:
Returns:
Promise object represents the response object
Type
Promise