Use APIs to access entities and associations
- Last Updated: September 9, 2024
- 1 minute read
- Corticon.js
- Documentation
getAssociationsForEntity(parentEntity, rolename)
To access the data in the working memory you can use this API. The entity can be at any
level in the input tree. This api takes two parameters, the
parentEntity and the rolename. The
parentEntity is the entity in the working memory that you want to
query. The rolename is the association you want to fetch (as defined in
the vocabulary). The API returns a JSON Array. It will bring all the associations
for the rolename and also nested associations.
|