Skip to content

Interface: SparqlTripleTermValue

@kortexya/reasoninglayer


@kortexya/reasoninglayer / Sparql / SparqlTripleTermValue

Interface: SparqlTripleTermValue

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

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

Remarks

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.

Example

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' },
};

Properties

object

object: SparqlRdfTerm

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

The triple term’s object.


predicate

predicate: SparqlRdfTerm

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

The triple term’s predicate.


subject

subject: SparqlRdfTerm

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

The triple term’s subject.