new Concepts(configuration)
- Source:
Concepts
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
configuration |
Object |
Properties
|
Methods
create(dataset, concept) → {Concept}
- Source:
Create a new concept
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
dataset |
string | Id of the dataset the new concept should be added to | ||||||
concept |
Object | The new concept. This must meet the requirements of the dataset schema
Properties
|
Returns:
Concept
- Type
- Concept
createBulk(dataset, concepts) → {BulkRequestResults}
- Source:
Create new concepts
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
dataset |
string | Id of the dataset the new concepts should be added to | ||||||
concepts |
Array.<Object> | The new concept. This must meet the requirements of the dataset schema
Properties
|
Returns:
result
- Type
- BulkRequestResults
delete(id)
- Source:
Delete a concept
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Array.<string> | The id or ids of the concept(s) to be deleted |
delete(dataset)
- Source:
Delete all concepts from a dataset
Parameters:
Name | Type | Description |
---|---|---|
dataset |
string | The id of the dataset |
get(id, optionsopt) → {Concept}
- Source:
Get concept
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
string | Id of the concept to retrieve | |||||||||||||||||||||
options |
Object |
<optional> |
Properties
|
Returns:
Concept
- Type
- Concept
graphSearch(body) → {GraphSearchResults}
- Source:
Graph Search with Cypher
Parameters:
Name | Type | Description |
---|---|---|
body |
GraphSearchBody | An object containing the query to be executed |
Returns:
GraphSearchResults
- Type
- GraphSearchResults
merge(id, sourceIds, concept) → {Concept}
- Source:
Merge concepts
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id of the concept to be updated |
sourceIds |
Array.<string> | The ids of the concepts to be merged into the target concept |
concept |
Object | object containing the new state of the concept |
Returns:
Concept
- Type
- Concept
replace(id, concept) → {Concept}
- Source:
Replace an existing concept
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id of the concept to be updated |
concept |
Object | object containing the new state of the concept |
Returns:
Concept
- Type
- Concept
search(optionsopt) → {ConceptSearchResults}
- Source:
Search concepts
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
Returns:
Search Results
- Type
- ConceptSearchResults
update(id, patch) → {Concept}
- Source:
Update an existing concept
Parameters:
Name | Type | Description |
---|---|---|
id |
string | The id of the concept to be updated |
patch |
Object | object containing any fields to be modified |
Returns:
Concept
- Type
- Concept
upsert(dataset, concept) → {Concept}
- Source:
Upsert a concept
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
dataset |
string | Id of the dataset the concept belongs | ||||||
concept |
Object | The concept. This must meet the requirements of the dataset schema
Properties
|
Returns:
Concept
- Type
- Concept
upsertBulk(dataset, concepts) → {BulkRequestResults}
- Source:
Upsert concepts
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
dataset |
string | Id of the dataset the concept belongs | ||||||
concepts |
Array.<Object> | The concepts. This must meet the requirements of the dataset schema
Properties
|
Returns:
result
- Type
- BulkRequestResults