Extends
Members
(readonly) has :Object
A dictionary with functionality of the registry (e.g. registry.has.schemes
).
- Object
- Inherited From
languages :Array.<string>
A list of RFC 3066 language tags in lowercase in order of priority.
- Array.<string>
- Inherited From
Methods
(async) deleteMappings(config) → {Array.<Object>}
DELETEs multiple mappings. Do not override in subclass!
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
- Inherited From
array of results (true
if successful); in case of failure, consult the _errors
property on the array at the index of the failed request
- Type:
- Array.<Object>
getCancelTokenSource() → {Object}
Returns a source for a axios cancel token.
- Inherited From
axios cancel token source
- Type:
- Object
(async) getConcepts(config) → {Array.<Object>}
Returns details for a list of concepts.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
array of JSKOS concept objects
- Type:
- Array.<Object>
(async) getSchemes() → {Array.<Object>}
Returns all concept schemes.
array of JSKOS concept scheme objects
- Type:
- Array.<Object>
(async) init() → {Promise}
Load data about registry via the status endpoint.
- Inherited From
Promise that resolves when initialization is complete.
- Type:
- Promise
isAuthorizedFor(options) → {boolean}
Returns whether a user is authorized for a certain request.
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | Properties
|
- Inherited From
- Type:
- boolean
(async) postMappings(config) → {Array.<Object>}
POSTs multiple mappings. Do not override in subclass!
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
- Inherited From
array of created mapping objects; in case of failure, consult the _errors
property on the array at the index of the failed request
- Type:
- Array.<Object>
(async) search(config) → {Array}
Returns search results in JSKOS Format.
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
result in JSKOS Format
- Type:
- Array
setAuth(options)
Sets authentication credentials.
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options | Object | Properties
|
- Inherited From
setRetryConfig(config)
Sets retry configuration.
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
- Inherited From
(async) suggest(config) → {Array}
Returns suggestion result in OpenSearch Suggest Format.
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
result in OpenSearch Suggest Format
- Type:
- Array
supportsScheme(scheme) → {boolean}
Returns a boolean whether a certain target scheme is supported or not.
Name | Type | Description |
---|---|---|
scheme | Object |
- Inherited From
- Type:
- boolean
(static) _registryConfigForBartocApiConfig(options) → {Object}
Used by registryForScheme
(see src/lib/CocodaSDK.js) to determine a provider config for a concept schceme.
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options | Object | Properties
|
provider configuration
- Type:
- Object