public static interface Knowledge.Async
| Modifier and Type | Method and Description |
|---|---|
<any> |
editableKnowledgeGraph(RobotContext context)
Create an editableKnowledgeGraph which allows writing in a determined graph.
|
<any> |
isNodeEmpty(Node node)
Check whether a node is empty or not.
|
<any> |
isNodeValid(Node node)
Check whether a node is valid or not.
|
<any> |
isTriplePartial(Triple triple)
Check if a triple is partial or not.
|
<any> |
knowledgeBase()
Allow getting the KnowledgeBase which can be used to access the shared knowledge.
|
<any> |
makeDateNode(java.lang.String literalDate)
Create an Node encapsulating the given string.
|
<any> |
makeDateTimeNode(java.lang.String literalDateTime)
Create an Node encapsulating the given string.
|
<any> |
makeEmptyNode()
Create an empty Node which is considered as an empty node
or a wildcard withing triples.
|
<any> |
makeEmptyResourceNode()
Create an empty resource node which is considered as an empty node
or a wildcard withing triples.
|
<any> |
makeFloatNode(java.lang.Float literalFloat)
Create an Node encapsulating the given float.
|
<any> |
makeIntNode(java.lang.Integer literalInt)
Create an Node encapsulating the given int.
|
<any> |
makeLocalizedStringNode(java.lang.String string,
Locale language)
Create an Node encapsulating a localizedString.
|
<any> |
makeNodeFromResourceNode(ResourceNode resourceNode)
Create a Node encapsulating the given ResourceNode.
|
<any> |
makeResourceNodeFromName(java.lang.String name)
Create a resource node using a string
the method will use the method makeUrlFromName in order to create a URL.
|
<any> |
makeResourceNodeFromUrl(java.lang.String url)
Create a resourceNode using the given URL.
|
<any> |
makeResourceTripleFromNames(java.lang.String subjectName,
java.lang.String predicateName,
java.lang.String objectName)
Create a triple from which every node is a ResourceNode created
with the method makeResourceNodeFromName.
|
<any> |
makeStringNode(java.lang.String literalString)
Create an Node encapsulating the given string.
|
<any> |
makeTimeNode(java.lang.String literaTime)
Create an Node encapsulating the given string.
|
<any> |
makeTripleFromNames(java.lang.String subjectName,
java.lang.String predicateName,
Node object)
Create a triple which every node is a ResourceNode created with the
method makeResourceNodeFromName.
|
<any> |
makeTripleFromNodes(ResourceNode subject,
ResourceNode predicate,
Node object)
Create a triple which subject and predicate are ResourceNode created with the
method makeResourceNodeFromName and object the object given as last parameter.
|
<any> |
makeUniqueResourceNode()
Create a resource node with a unique URL using the method
makeUniqueUrl.
|
<any> |
makeUniqueUrl()
Create a unique URL of the form http://softbank.org/sharedKnowledge#
|
<any> |
makeUrlFromName(java.lang.String name)
Try to create a URL using a string.
|
<any> |
matchTriple(Triple tripleToMatch,
Triple otherTriple)
Check if a triple matches another triple.
|
<any> knowledgeBase()
<any> editableKnowledgeGraph(RobotContext context)
context - Context which is used to identify the client and the name of the graph editable
by this editableKnowledgeGraph.<any> makeUniqueUrl()
<any> makeUrlFromName(java.lang.String name)
name - string.<any> makeResourceNodeFromUrl(java.lang.String url)
url - a string which should be a valid a URL.<any> makeResourceNodeFromName(java.lang.String name)
<any> makeUniqueResourceNode()
<any> makeEmptyResourceNode()
<any> makeEmptyNode()
<any> makeLocalizedStringNode(java.lang.String string,
Locale language)
string - A string.language - The locale of the string.<any> makeStringNode(java.lang.String literalString)
literalString - A string.<any> makeIntNode(java.lang.Integer literalInt)
literalInt - An int.<any> makeFloatNode(java.lang.Float literalFloat)
literalFloat - A float.<any> makeDateTimeNode(java.lang.String literalDateTime)
A - string representing a dateTime in the yyyy-MM-ddThh:mm:ssZ format.<any> makeDateNode(java.lang.String literalDate)
literalDate - A string representing a date in the yyyy-MM-dd format.<any> makeTimeNode(java.lang.String literaTime)
literaTime - A string representing a time in the hh:mm:ss format.<any> makeNodeFromResourceNode(ResourceNode resourceNode)
resourceNode - A ResourceNode.<any> makeResourceTripleFromNames(java.lang.String subjectName,
java.lang.String predicateName,
java.lang.String objectName)
subjectName - A string used to create a valid ResourceNode, subject of the created triple.predicateName - A string used to create a valid ResourceNode, predicate of the created triple.objectName - A string used to create a valid ResourceNode, object of the created triple.<any> makeTripleFromNames(java.lang.String subjectName,
java.lang.String predicateName,
Node object)
subjectName - A string used to create a valid ResourceNode, subject of the created triple.predicateName - A string used to create a valid ResourceNode, predicate of the created triple.object - Node which will be the object of the created triple.<any> makeTripleFromNodes(ResourceNode subject, ResourceNode predicate, Node object)
subject - A ResourceNode which will be the subject of the created triple.predicate - A ResourceNode which will be the predicate of the created triple.object - Node which will be the object of the created triple.<any> matchTriple(Triple tripleToMatch, Triple otherTriple)
tripleToMatch - A triple which should be matched.otherTriple - A triple which can match or not the other triple.<any> isTriplePartial(Triple triple)
triple - The triple to check.<any> isNodeEmpty(Node node)
<any> isNodeValid(Node node)