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

Async

interface Async

Functions

editableKnowledgeGraph

Create an editableKnowledgeGraph which allows writing in a determined graph. Anyone getting an edittabledKnowledgeGraph this way will be able to read an overwrite the data.

abstract fun editableKnowledgeGraph(context: RobotContext!): Future<EditableKnowledgeGraph!>!

isNodeEmpty

Check whether a node is empty or not.

abstract fun isNodeEmpty(node: Node!): Future<Boolean!>!

isNodeValid

Check whether a node is valid or not.

abstract fun isNodeValid(node: Node!): Future<Boolean!>!

isTriplePartial

Check if a triple is partial or not.

abstract fun isTriplePartial(triple: Triple!): Future<Boolean!>!

knowledgeBase

Allow getting the KnowledgeBase which can be used to access the shared knowledge.

abstract fun knowledgeBase(): Future<KnowledgeBase!>!

makeDateNode

Create an Node encapsulating the given string.

abstract fun makeDateNode(literalDate: String!): Future<Node!>!

makeDateTimeNode

Create an Node encapsulating the given string.

abstract fun makeDateTimeNode(literalDateTime: String!): Future<Node!>!

makeEmptyNode

Create an empty Node which is considered as an empty node or a wildcard withing triples.

abstract fun makeEmptyNode(): Future<Node!>!

makeEmptyResourceNode

Create an empty resource node which is considered as an empty node or a wildcard withing triples.

abstract fun makeEmptyResourceNode(): Future<ResourceNode!>!

makeFloatNode

Create an Node encapsulating the given float.

abstract fun makeFloatNode(literalFloat: Float!): Future<Node!>!

makeIntNode

Create an Node encapsulating the given int.

abstract fun makeIntNode(literalInt: Int!): Future<Node!>!

makeLocalizedStringNode

Create an Node encapsulating a localizedString.

abstract fun makeLocalizedStringNode(string: String!, language: Locale!): Future<Node!>!

makeNodeFromResourceNode

Create a Node encapsulating the given ResourceNode. This is useful when you already created a ResourceNode and need to use it as the object of triple, in a request for instance, or just to create a triple.

abstract fun makeNodeFromResourceNode(resourceNode: ResourceNode!): Future<Node!>!

makeResourceNodeFromName

Create a resource node using a string the method will use the method makeUrlFromName in order to create a URL.

abstract fun makeResourceNodeFromName(name: String!): Future<ResourceNode!>!

makeResourceNodeFromUrl

Create a resourceNode using the given URL.

abstract fun makeResourceNodeFromUrl(url: String!): Future<ResourceNode!>!

makeResourceTripleFromNames

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

abstract fun makeResourceTripleFromNames(subjectName: String!, predicateName: String!, objectName: String!): Future<Triple!>!

makeStringNode

Create an Node encapsulating the given string.

abstract fun makeStringNode(literalString: String!): Future<Node!>!

makeTimeNode

Create an Node encapsulating the given string.

abstract fun makeTimeNode(literaTime: String!): Future<Node!>!

makeTripleFromNames

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

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

makeTripleFromNodes

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

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

makeUniqueResourceNode

Create a resource node with a unique URL using the method makeUniqueUrl. return A unique valid ResourceNode.

abstract fun makeUniqueResourceNode(): Future<ResourceNode!>!

makeUniqueUrl

Create a unique URL of the form http://softbank.org/sharedKnowledge# Example: http://softbank.org/sharedKnowledge#a3ef186-0c7k-ic02-52zu-0pj6bs1k92a5

abstract fun makeUniqueUrl(): Future<String!>!

makeUrlFromName

Try to create a URL using a string.

abstract fun makeUrlFromName(name: String!): Future<String!>!

matchTriple

Check if a triple matches another triple.

abstract fun matchTriple(tripleToMatch: Triple!, otherTriple: Triple!): Future<Boolean!>!