Skip to content

Type Alias: SparqlResultTerm

@kortexya/reasoninglayer


@kortexya/reasoninglayer / SparqlResultTerm

SparqlResultTerm = { type: "uri"; value: string; } | { type: "bnode"; value: string; } | { datatype?: string; type: "literal"; value: string; xml:lang?: string; }

Defined in: src/types/vocabulary.ts:6003

One RDF term of a SPARQL 1.1 Query Results JSON binding.

{ type: "uri"; value: string; }

type: "uri"

An IRI.

value: string

The IRI.


{ type: "bnode"; value: string; }

type: "bnode"

A blank node.

value: string

Its label.


{ datatype?: string; type: "literal"; value: string; xml:lang?: string; }

optional datatype?: string

The datatype IRI of a typed literal.

type: "literal"

A literal.

value: string

The lexical form.

optional xml:lang?: string

The language tag of an rdf:langString.

Kept as the W3C document spells it, including the xml:lang key.