Skip to content

Type Alias: OsfqlSemantics

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OsfqlSemantics

OsfqlSemantics = "osf" | "rdf"

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

The data model an OSFQL program is answered under.

  • osf — native OSF, 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:osfkb:term:<id>); 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 OSF null is UNBOUND, because RDF has no null term.

Serialized verbatim as the lowercase string.

const semantics: OsfqlSemantics = 'rdf';