Class: SemanticTriple
Semantics.SemanticTriple(subject, predicate, object)
new SemanticTriple(subject, predicate, object)
Parameters:
Name | Type | Description |
---|---|---|
subject | string | |
predicate | string | |
object | string |
Methods
equals(statement) → {boolean}
Check for equality
Parameters:
Name | Type | Description |
---|---|---|
statement | Semantics.SemanticTriple |
Returns:
is both triples are equal
Type
boolean
subsets(partialStatement) → {boolean}
Check for similarity
Parameters:
Name | Type | Description |
---|---|---|
partialStatement | object | Subset of triple properties |
Returns:
is both triples are similar
Type
boolean