Instance.createInstanceFromJSON()
Signature
Concept createInstanceFromJSON (String uri, String json)
Description
This function creates a new Concept instance by deserializing the JSON data provided.
The form of of the JSON data provided is expected to be the same as the output from serialize()
.
The new Concept instance is added to the working memory. Adding the instance to the working memory will
cause any rule conditions that depend on the concept to be evaluated.
Parameters
Name | Type | Description |
uri | URI | Concept URI. |
json | String | JSON string to be parsed |
Returns
Type | Description |
Concept | The newly created concept |
Cautions
none. This function asserts the created concept but this assert will not fire any rules.