Skip to main content

Class: SemanticTriple

Semantics.SemanticTriple(subject, predicate, object)

new SemanticTriple(subject, predicate, object)

Parameters:
NameTypeDescription
subjectstring
predicatestring
objectstring

Methods

equals(statement) → {boolean}

Check for equality

Parameters:
NameTypeDescription
statementSemantics.SemanticTriple
Returns:

is both triples are equal

Type

boolean

subsets(partialStatement) → {boolean}

Check for similarity

Parameters:
NameTypeDescription
partialStatementobjectSubset of triple properties
Returns:

is both triples are similar

Type

boolean

Home