Get All VKG Overview
Provides an overview of all the VKGs in the system. Filters that can be applied on metadata during search or to limit nodes on a certain VKG. Multiple filters can be applied at once (E.g. 'One of' + 'More Than'). Supported filters are in the metadata filter section of the documentation.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Responses
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "vkgs": {
- "property1": {
- "nodes": 0,
- "queries": 0,
- "metadata": {
- "property1": {
- "default": "string",
- "type": "string"
}, - "property2": {
- "default": "string",
- "type": "string"
}
}, - "lastTsne": "2019-08-24T14:15:22Z"
}, - "property2": {
- "nodes": 0,
- "queries": 0,
- "metadata": {
- "property1": {
- "default": "string",
- "type": "string"
}, - "property2": {
- "default": "string",
- "type": "string"
}
}, - "lastTsne": "2019-08-24T14:15:22Z"
}
}
}
Export All VKGs
Export all the VKGs into CSVs as a ZIP file.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Request Body schema: application/json
filename | string Default: "[ISO Datetime]_export.csv" |
includeTsne | boolean Default: false |
includeMetadata | boolean Default: true |
Responses
Request samples
- Payload
{- "filename": "export",
- "include_tsne": false,
- "include_metadata": false
}
Duplicate VKG
Duplicate a VKG from another, preserving the nodes and metadata schema.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Request Body schema: application/json
fromVkg required | string (VKG ID) VKG's ID. |
toVkg required | string (VKG ID) VKG's ID. |
Responses
Request samples
- Payload
{- "fromVkg": "UMAPtest",
- "toVkg": "copy"
}
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "fromVkg": "string",
- "toVkg": "string",
- "expected": 0,
- "added": 0,
- "nodesAdded": [
- "string"
]
}
Create VKG
Create a single VKG and instantiate optional metadata.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Request Body schema: application/json
vkgId required | string (VKG ID) VKG's ID. |
object (Metadata Config) Configuration for the metadata schema. |
Responses
Request samples
- Payload
{- "vkgId": "numbers",
- "metadata": {
- "data": {
- "default": 12,
- "type": "number"
}
}
}
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "created": true,
- "vkgId": "string",
- "metadata": {
- "property1": {
- "default": "string",
- "type": "string"
}, - "property2": {
- "default": "string",
- "type": "string"
}
}
}
Get VKG Overview
Provides an overview of the specified VKG.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Responses
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "vkgId": "string",
- "statistics": {
- "nodes": 0,
- "queries": 0,
- "metadata": {
- "property1": {
- "default": "string",
- "type": "string"
}, - "property2": {
- "default": "string",
- "type": "string"
}
}, - "lastTsne": "2019-08-24T14:15:22Z"
}
}
Edit VKG
Edit a VKG's name and/or it's metadata schema.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Request Body schema: application/json
Provides two functionalities:
- Renaming the VKG (When given
newVkgId
) - Updating the VKG's metadata (When given
metadata
)
When given both newVkgId
and metadata
, both functions will be run
newVkgId | string (VKG ID) VKG's ID. |
object (Metadata Config) Configuration for the metadata schema. |
Responses
Request samples
- Payload
{- "newVkgId": "string",
- "metadata": {
- "property1": {
- "default": "string",
- "type": "string"
}, - "property2": {
- "default": "string",
- "type": "string"
}
}
}
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "vkgId": {
- "old": "string",
- "new": "string"
}, - "metadata": [
- "string"
]
}
Delete VKG
Delete a single VKG.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Responses
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "expected": 0,
- "deleted": 0
}
Search VKG
Perform a search on the VKG. To read about the supported filters for metadataFilters
, refer to the Searching the VKG: metadataFilters page.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Request Body schema: application/json
Note: Setting the numClosest
parameter too high can result in unwanted results. They may be dissimilar, yet still are within the numClosest
nodes (E.g. A VKG with 5 nodes with numClosest
set to 5 nodes will retrieve them all)
queries | Array of strings Queries to search on. |
numClosest | integer Number of nodes to retrieve. |
object Filter where |
Responses
Request samples
- Payload
{- "queries": [
- "string"
], - "numClosest": 0,
- "metadataFilter": {
- "property1": {
- "oneOf": [
- { }
], - "moreThan": "string",
- "moreThanEq": "string",
- "lessThan": "string",
- "lessThanEq": "string"
}, - "property2": {
- "oneOf": [
- { }
], - "moreThan": "string",
- "moreThanEq": "string",
- "lessThan": "string",
- "lessThanEq": "string"
}
}
}
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "vkgId": "string",
- "queryResults": [
- {
- "query": "string",
- "results": [
- {
- "text": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
]
}
], - "numClosest": 0
}
Compute TSNE
Compute the TSNE of the VKG. TSNE is the metric used to visualize nodes as a graph. Each node's TSNE needs to be calculated in order to create a visualization.
query Parameters
return_tsne | boolean Default: false Whether or not to return the TSNE values |
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Responses
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "vkgId": "string",
- "tsne": {
- "property1": [
- [
- 0,
- 0,
- 0
]
], - "property2": [
- [
- 0,
- 0,
- 0
]
]
}
}
Export VKG
Export the VKG into a CSV.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Request Body schema: application/json
filename | string |
includeTsne | boolean |
includeMetadata | boolean Default: true |
Responses
Request samples
- Payload
{- "filename": "string",
- "includeTsne": true,
- "includeMetadata": true
}
Get Nodes
Retrieve all nodes.
query Parameters
do_tsne | boolean Perform TSNE (Essentially runs /compute as well) |
include_stats | boolean Include the VKG's statistics |
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Responses
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "vkgId": "string",
- "nodes": {
- "property1": {
- "text": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "text": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
}, - "calculateTsne": true,
- "includeMetadata": true,
- "statistics": {
- "nodes": 0,
- "queries": 0,
- "metadata": {
- "property1": {
- "default": "string",
- "type": "string"
}, - "property2": {
- "default": "string",
- "type": "string"
}
}, - "lastTsne": "2019-08-24T14:15:22Z"
}
}
Delete All Nodes
Delete all nodes in the VKG.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Responses
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "expected": 0,
- "deleted": 0
}
Delete Specific Nodes
Delete Nodes in batch by specific node IDs.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Request Body schema: application/json
nodes | Array of strings Array of node IDs |
Responses
Request samples
- Payload
{- "nodes": [
- "string"
]
}
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "expected": 0,
- "deleted": 0
}
Add Nodes via Body
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Request Body schema: application/json
Array of objects (Node Data) | |||||
Array
|
Responses
Request samples
- Payload
{- "nodes": [
- {
- "text": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
]
}
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "vkgId": "string",
- "expected": 0,
- "added": 0,
- "nodesAdded": [
- "string"
]
}
Edit Nodes via Body
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Request Body schema: application/json
object | |||||||||
|
Responses
Request samples
- Payload
{- "nodes": {
- "property1": {
- "text": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "text": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
}
}
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "expected": 0,
- "modified": 0,
- "modifiedNodes": {
- "property1": {
- "text": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "text": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
}
}
Add Nodes via Files
For documentation on file formatting, refer to Formatting.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Request Body schema: multipart/form-data
file | object (File) File as a CSV or JSON. |
Responses
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "vkgId": "string",
- "expected": 0,
- "added": 0,
- "nodesAdded": [
- "string"
]
}
Edit Nodes via Files
For documentation on file formatting, refer to Formatting.
header Parameters
orgId required | string Organization Identifier |
authKey required | string Organization Authorization Key |
userId required | string User Identifier |
Request Body schema: multipart/form-data
file | object (File) File as a CSV or JSON. |
Responses
Response samples
- 200
{- "status": "SUCCESS",
- "errors": { },
- "expected": 0,
- "modified": 0,
- "modifiedNodes": {
- "property1": {
- "text": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "text": "string",
- "metadata": {
- "property1": "string",
- "property2": "string"
}
}
}
}