Class: TripleStore
Semantics.TripleStore()
new TripleStore()
Properties:
Name | Type | Description |
---|---|---|
statements | Array.<Semantics.SemanticTriple> |
Methods
add(…statements)
Adds one or more statements in current store
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
statements | VarArgs.<Semantics.SemanticTriple> | <repeatable> |
addTriple(subject, predicate, object)
Create new statement based on arguments for this store
Parameters:
Name | Type | Description |
---|---|---|
subject | string | |
predicate | string | |
object | string |
clone() → Semantics.SemanticTriple
Create copy instance
Returns:
copy instance
Type
remove(…statements)
Removes one or more statements from current store
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
statements | VarArgs.<Semantics.SemanticTriple> | function | <repeatable> |
search(query) → {Array.<Semantics.SemanticTriple>}
Finds statements that covers query values
Parameters:
Name | Type | Description |
---|---|---|
query | Semantics.SemanticTriple | Partial statement |
Returns:
Search result
Type
Array.<Semantics.SemanticTriple>