Skip to main content

Class: TripleStore

Semantics.TripleStore()

new TripleStore()

Properties:
NameTypeDescription
statementsArray.<Semantics.SemanticTriple>

Methods

add(…statements)

Adds one or more statements in current store

Parameters:
NameTypeAttributesDescription
statementsVarArgs.<Semantics.SemanticTriple><repeatable>

addTriple(subject, predicate, object)

Create new statement based on arguments for this store

Parameters:
NameTypeDescription
subjectstring
predicatestring
objectstring

clone() → Semantics.SemanticTriple

Create copy instance

Returns:

copy instance

Type

Semantics.SemanticTriple

remove(…statements)

Removes one or more statements from current store

Parameters:
NameTypeAttributesDescription
statementsVarArgs.<Semantics.SemanticTriple>function<repeatable>

search(query) → {Array.<Semantics.SemanticTriple>}

Finds statements that covers query values

Parameters:
NameTypeDescription
querySemantics.SemanticTriplePartial statement
Returns:

Search result

Type

Array.<Semantics.SemanticTriple>

Home