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

querySubjects

abstract fun querySubjects(predicate: ResourceNode!, Object: Node!, graphName: String!): MutableList<ResourceNode!>!

Search for the subjects of triples matching the pattern predicate-Object.

Parameters

predicate - ResourceNode!: The predicate to be matched, can be a wildcard.

Object - Node!: The Object to be matched, can be a wildcard.

graphName - String!: The name of the graph on which you want to do the query.

Return
MutableList<ResourceNode!>!: A vector of subjects (which are strings).

Throw
if the object or predicate is invalid.

Since
2