Overview
Method List
| Method | Description |
|---|---|
list(options?) | Get entity list |
get(entityId) | Get specific entity |
create(input) | Create entity |
update(entityId, input) | Update entity |
delete(entityId) | Delete entity |
getAliases(entityId) | Get aliases |
addAlias(entityId, alias) | Add alias |
removeAlias(entityId, aliasId) | Remove alias |
getRelations(entityId) | Get relations |
addRelation(entityId, targetId, type) | Add relation |
removeRelation(entityId, relationId) | Remove relation |
getKnowledges(entityId) | Get related Knowledge |
getTopics(entityId) | Get related Topics |
getEpisodes(entityId) | Get related Episodes |
findSimilar(options?) | Find similar entities |
merge(input) | Merge entities |
getGraph() | Get relation graph |
Entity Types
| Type | Description |
|---|---|
person | People |
company | Companies/Organizations |
product | Products/Services |
place | Places |
other | Others |
list()
Get a list of entities.Parameters
Filter by entity type:
'person' | 'company' | 'product' | 'place' | 'other'Search keyword
Page number
Items per page
Example
get()
Get a specific entity (including aliases).Parameters
Entity ID
Example
create()
Create a new entity.Parameters
Canonical name
Entity type:
'person' | 'company' | 'product' | 'place' | 'other'Array of aliases
Example
update()
Update an entity.Parameters
Entity ID
New canonical name
New type
Example
delete()
Delete an entity.Example
addAlias()
Add an alias to an entity.Parameters
Entity ID
Alias string
Created by:
'user' | 'llm' | 'import'Example
removeAlias()
Remove an alias.Example
getRelations()
Get entity relations (outgoing and incoming).Example
addRelation()
Add a relation between entities.Parameters
Source entity ID
Target entity ID
Relation type
Relation Types
| Type | Description |
|---|---|
works_for | Works for ~ |
employs | Employs ~ |
member_of | Member of ~ |
owns | Owns ~ |
partner_of | Partner of ~ |
competitor_of | Competitor of ~ |
subsidiary_of | Subsidiary of ~ |
parent_company_of | Parent company of ~ |
located_in | Located in ~ |
related_to | Related to ~ |
Example
getKnowledges()
Get Knowledge related to an entity.Example
getTopics()
Get Topics related to an entity.Example
getEpisodes()
Get Episodes related to an entity.Example
findSimilar()
Find similar entities (duplicate detection).Parameters
Similarity threshold
Max results
Example
merge()
Merge two entities into one.Parameters
Entity ID to keep
Entity ID to merge (will be deleted)
Example
getGraph()
Get entity relation graph.Example
Next Steps
What is Entity
Understand the Entity concept
Knowledge API
Knowledge management

