abstract fun subscribe(triple: Triple!, graphName: String!): KnowledgeSubscriber!
Create a knowledgeSubscriber which emit a signal each time a triple matching the Triple is added or removed in the graph named graphName.
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
KnowledgeSubscriber!: The created knowledge subscriber.
Throw
if one node of the triple is invalid.
Since
2