qisdk / com.aldebaran.qi.sdk.object.knowledge / KnowledgeBase / contains

contains

abstract fun contains(triple: Triple!, graphName: String!): Boolean!

Check whether or not there exist at least one triple matching a query. tripleQuery The query which should be match by at least one triple.

Parameters

graphName - String!: The name of the graph in which you want to check the presence of the triple.

Return
Boolean!: True if at least one triple is found.

Throw
if any node of the triple is not valid.

Since
2