Methods
_categoryToJSKOS()
Converts a category to a JSKOS concept.
- Also saves that concept in data
- Also adds the concept's prefLabels to the search index
? Question: Should scopeNotes be part of the search index?
(async) _loadSchemeData()
Loads the data from the API. Only called from getSchemes and only called once.
_removeNarrower()
Helper function that replaces narrower
key with [null] if it has values. Use this before returning concepts.
_schemeInfoToJSKOS()
Converts scheme info (full scheme data that comes from the API) to a JSKOS scheme
(async) search(config) → {Array}
Returns concept search results.
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
array of JSKOS concept objects
- Type:
- Array
(async) suggest(config) → {Array}
Returns suggestion result in OpenSearch Suggest Format.
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config | Object | Properties
|
result in OpenSearch Suggest Format
- Type:
- Array
(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