qisdk / com.aldebaran.qi.sdk.object.knowledge / Knowledge / makeTripleFromNames

makeTripleFromNames

abstract fun makeTripleFromNames(subjectName: String!, predicateName: String!, object: Node!): Triple!

Create a triple which every node is a ResourceNode created with the method makeResourceNodeFromName.

Parameters

subjectName - String!: A string used to create a valid ResourceNode, subject of the created triple.

predicateName - String!: A string used to create a valid ResourceNode, predicate of the created triple.

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

Return
Triple!: The created triple.

Throw
If one of the nodes is invalid.