interface Knowledge
//! Service handling the shared knowledge.
Since
2
Async |
interface Async |
async |
abstract fun async(): Async! |
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!): EditableKnowledgeGraph! |
isNodeEmpty |
Check whether a node is empty or not. abstract fun isNodeEmpty(node: Node!): Boolean! |
isNodeValid |
Check whether a node is valid or not. abstract fun isNodeValid(node: Node!): Boolean! |
isTriplePartial |
Check if a triple is partial or not. abstract fun isTriplePartial(triple: Triple!): Boolean! |
knowledgeBase |
Allow getting the KnowledgeBase which can be used to access the shared knowledge. abstract fun knowledgeBase(): KnowledgeBase! |
makeDateNode |
Create an Node encapsulating the given string. abstract fun makeDateNode(literalDate: String!): Node! |
makeDateTimeNode |
Create an Node encapsulating the given string. abstract fun makeDateTimeNode(literalDateTime: String!): Node! |
makeEmptyNode |
Create an empty Node which is considered as an empty node or a wildcard withing triples. abstract fun makeEmptyNode(): Node! |
makeEmptyResourceNode |
Create an empty resource node which is considered as an empty node or a wildcard withing triples. abstract fun makeEmptyResourceNode(): ResourceNode! |
makeFloatNode |
Create an Node encapsulating the given float. abstract fun makeFloatNode(literalFloat: Float!): Node! |
makeIntNode |
Create an Node encapsulating the given int. abstract fun makeIntNode(literalInt: Int!): Node! |
makeLocalizedStringNode |
Create an Node encapsulating a localizedString. abstract fun makeLocalizedStringNode(string: String!, language: Locale!): 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!): 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!): ResourceNode! |
makeResourceNodeFromUrl |
Create a resourceNode using the given URL. abstract fun makeResourceNodeFromUrl(url: String!): 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!): Triple! |
makeStringNode |
Create an Node encapsulating the given string. abstract fun makeStringNode(literalString: String!): Node! |
makeTimeNode |
Create an Node encapsulating the given string. abstract fun makeTimeNode(literaTime: String!): 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!): 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!): Triple! |
makeUniqueResourceNode |
Create a resource node with a unique URL using the method makeUniqueUrl. return A unique valid ResourceNode. abstract fun makeUniqueResourceNode(): 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(): String! |
makeUrlFromName |
Try to create a URL using a string. abstract fun makeUrlFromName(name: String!): String! |
matchTriple |
Check if a triple matches another triple. abstract fun matchTriple(tripleToMatch: Triple!, otherTriple: Triple!): Boolean! |