qisdk / com.aldebaran.qi.sdk.object.knowledge / KnowledgeBase / Async / subscribe

subscribe

abstract fun subscribe(triple: Triple!, graphName: String!): Future<KnowledgeSubscriber!>!

Create a knowledgeSubscriber which emit a signal each time a triple matching the Triple is added or removed in the graph named graphName.

Parameters

triple - Triple!: A triple, which can be partial and should be match in order to trigger the signals tripleAdded(when a triple is added to the given graph) //!and tripleRemoved(when a triple is removed from the given graph).

graphName - String!: The graph which is spied by this subscriber.

Return
Future<KnowledgeSubscriber!>!: The created knowledge subscriber.

Throw
if one node of the triple is invalid.

Since
2