qisdk / com.aldebaran.qi.sdk.object.knowledge / Knowledge / Async / makeTripleFromNodes

makeTripleFromNodes

abstract fun makeTripleFromNodes(subject: ResourceNode!, predicate: ResourceNode!, object: Node!): Future<Triple!>!

Create a triple which subject and predicate are ResourceNode created with the method makeResourceNodeFromName and object the object given as last parameter.

Parameters

subject - ResourceNode!: A ResourceNode which will be the subject of the created triple.

predicate - ResourceNode!: A ResourceNode which will be the predicate of the created triple.

object - Node!: Node which will be the object of the created triple.

Return
Future<Triple!>!: The created triple.

Throw
If one of the nodes is invalid.