Skip to content

Type Alias: OsfqlSemantics

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OsfqlSemantics

OsfqlSemantics = "osf" | "rdf"

Defined in: src/types/osfql.ts:34

The data model an OSFQL program is answered under.

  • osf — the native term model, the engine’s default. A bound Psi-term is its term id, and a list-valued feature is ONE value, so f: [1, 2, 3] binds the list.
  • rdf — the model POST /api/v1/sparql answers under. A bound Psi-term is named by its RDF identity (the original source_uri, the blank-node label, or the minted urn:reasoninglayer:term:<id>; the engine still reads the deprecated urn:osfkb:term:<id> as input); a list-valued feature is a multi-valued property and fans out into one solution per element; named-graph terms leave the default-graph scan; and a variable bound to the native null is UNBOUND, because RDF has no null term.

Serialized verbatim as the lowercase string.

const semantics: OsfqlSemantics = 'rdf';