Class in Linked Open Knowledge Format (LOKF)
Parameter
A typed, named hole in an Attested Computation that the agent may fill (OKF v0.2 §10.2). Binding semantics (SQL bind variable, dbt var, Python argument) follow the concept's runtime. The type key deliberately shares the global JSON-LD @type alias — see the attribute comment for the exact triple that results.
URI: lokf:Parameter
classDiagram
class Parameter
click Parameter href "../../classes/Parameter/"
Parameter : name
Parameter : required
Parameter : type
Parameter --> "0..1" ParameterType : type
click ParameterType href "../../enums/ParameterType/"
Class Properties#
| Property | Value |
|---|---|
| Class URI | lokf:Parameter |
Slots#
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| name | 1 String | The parameter’s name, as the runtime addresses it | direct |
| required | 0..1 Boolean | Whether a value for the parameter must be supplied | direct |
| type | 0..1 ParameterType | The parameter’s datatype, written with the authoring key type verbatim and … | direct |
Usages#
| used by | used in | type | used |
|---|---|---|---|
| AttestedComputation | parameters | range | Parameter |
Identifier and Mapping Information#
Schema Source#
- from schema: https://w3id.org/lokf/schema
Mappings#
| Mapping Type | Mapped Value |
|---|---|
| self | lokf:Parameter |
| native | lokf:Parameter |
| close | schema:PropertyValueSpecification |
LinkML Source#
Direct#
YAML
name: Parameter
description: A typed, named hole in an Attested Computation that the agent may fill
(OKF v0.2 §10.2). Binding semantics (SQL bind variable, dbt var, Python argument)
follow the concept's `runtime`. The `type` key deliberately shares the global JSON-LD
@type alias — see the attribute comment for the exact triple that results.
from_schema: https://w3id.org/lokf/schema
close_mappings:
- schema:PropertyValueSpecification
slots:
- name
- required
slot_usage:
name:
name: name
description: The parameter's name, as the runtime addresses it.
required: true
attributes:
type:
name: type
description: The parameter's datatype, written with the authoring key `type` verbatim
and drawn from ParameterType.
comments:
- 'Declared as a class-local attribute rather than slot_usage over the global
type slot, because LinkML''s falsy-merge silently drops a `designates_type:
false` override and gen-python then hard-fails.'
- 'Because the flat context aliases `type` to @type, the value expands as the
node''s rdf:type; every ParameterType value therefore means a designed lokf
Parameter-kind class, so `type: integer` yields the true, OWL-DL-safe triple
`_:p rdf:type lokf:IntegerParameter`. slot_uri rdf:type makes the LinkML RDF-dump
path emit the same triple (enum meanings expand to their IRIs).'
from_schema: https://w3id.org/lokf/schema
slot_uri: rdf:type
domain_of:
- Concept
- Agent
- Parameter
range: ParameterType
class_uri: lokf:Parameter
Induced#
YAML
name: Parameter
description: A typed, named hole in an Attested Computation that the agent may fill
(OKF v0.2 §10.2). Binding semantics (SQL bind variable, dbt var, Python argument)
follow the concept's `runtime`. The `type` key deliberately shares the global JSON-LD
@type alias — see the attribute comment for the exact triple that results.
from_schema: https://w3id.org/lokf/schema
close_mappings:
- schema:PropertyValueSpecification
slot_usage:
name:
name: name
description: The parameter's name, as the runtime addresses it.
required: true
attributes:
type:
name: type
description: The parameter's datatype, written with the authoring key `type` verbatim
and drawn from ParameterType.
comments:
- 'Declared as a class-local attribute rather than slot_usage over the global
type slot, because LinkML''s falsy-merge silently drops a `designates_type:
false` override and gen-python then hard-fails.'
- 'Because the flat context aliases `type` to @type, the value expands as the
node''s rdf:type; every ParameterType value therefore means a designed lokf
Parameter-kind class, so `type: integer` yields the true, OWL-DL-safe triple
`_:p rdf:type lokf:IntegerParameter`. slot_uri rdf:type makes the LinkML RDF-dump
path emit the same triple (enum meanings expand to their IRIs).'
from_schema: https://w3id.org/lokf/schema
slot_uri: rdf:type
owner: Parameter
domain_of:
- Concept
- Agent
- Parameter
range: ParameterType
name:
name: name
description: The parameter's name, as the runtime addresses it.
in_subset:
- lokf_semantic
from_schema: https://w3id.org/lokf/schema
rank: 1000
slot_uri: schema:name
owner: Parameter
domain_of:
- Agent
- Field
- Distribution
- Parameter
range: string
required: true
required:
name: required
description: Whether a value for the parameter must be supplied.
in_subset:
- okf_v02
from_schema: https://w3id.org/lokf/schema
rank: 1000
slot_uri: schema:valueRequired
owner: Parameter
domain_of:
- Parameter
range: boolean
class_uri: lokf:Parameter