Skip to content

Interface: SparqlTripleTermValue

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SparqlTripleTermValue

Defined in: src/types/sparql.ts:36

The three constituents of an RDF 1.2 triple-term binding value.

The nested {subject, predicate, object} object carried as the value of a triple-typed binding (SPARQL 1.2 Query Results). Each constituent is itself a SparqlRdfTerm, so triple terms nest recursively.

const triple: SparqlTripleTermValue = {
subject: { type: 'uri', value: 'http://example.org/alice' },
predicate: { type: 'uri', value: 'http://example.org/knows' },
object: { type: 'uri', value: 'http://example.org/bob' },
};

object: SparqlRdfTerm

Defined in: src/types/sparql.ts:42

The triple term’s object.


predicate: SparqlRdfTerm

Defined in: src/types/sparql.ts:40

The triple term’s predicate.


subject: SparqlRdfTerm

Defined in: src/types/sparql.ts:38

The triple term’s subject.