ApiData().TestBinding
Determines if two Concepts are bound, and in what direction.
Description
This function tests knowledge within the current SILVIA Brain by returning a string representing a valid binding direction or an “invalid”.
Exampe Usage (C#)
string direction = _core.ApiData().TestBinding(“tokyo”, “japan”, “location”)
Parameters
string |
concept |
The string or variable name representing the base Concept of the potential binding. |
string |
bound |
The string or variable name representing the Concept that is potentially bound. |
string |
bindingType |
The string representing the Binding Type to be tested. “unknown” is used for generic tests. |
The current exposed lexical Binding Types are
- ”root”
- ”synonym”, “synonymSibling”
- ”antonym”
- ”similar”, “similarSibling”
- ”different”
- ”related”, “relatedSibling”
- ”unrelated”
- ”child”, “sibling”, “parent”
- ”plural”, “singular”
- ”misspelling”, “correction”
- ”verbal”, “written”
The current exposed Conceptual Binding Types are loosely based on the MIT MediaLab’s ConceptNet
- ”relatedTo”, “thematic”, “superThematic”
- ”isA”, “propertyOf”, “partOf”, “madeOf”, “definedAs”
- ”capableOf”
- ”prerequisite”, “firstEvent”, “eventOf”, “lastEvent”
- ”location”
- ”effect”, “desirousEffect”
- ”usedFor”, “action”
- ”motivation”, “desire”
And finally
- ”unknown”, “invalid”
Returns
A string representing a binding direction of “forward”, “reverse”, or “invalid” if no binding was found.
See Also
- ApiData().SetBinding
- ApiData().GetBoundConcept
- ApiData().GetAllBoundConcepts