Class in Linked Open Knowledge Format (LOKF)
Field
A single column / property within a Table or Dataset schema. Maps to schema:PropertyValue.
URI: schema:PropertyValue
classDiagram
class Field
click Field href "../../classes/Field/"
Field : constraints
Field : datatype
Field --> "0..1" FieldType : datatype
click FieldType href "../../enums/FieldType/"
Field : description
Field : is_key
Field : name
Field : unit
Class Properties#
| Property | Value |
|---|---|
| Class URI | schema:PropertyValue |
Slots#
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| name | 0..1 String | A name | direct |
| datatype | 0..1 FieldType | The data type of a field | direct |
| description | 0..1 String | A single-sentence summary of the concept | direct |
| unit | 0..1 String | The unit of measurement (e | direct |
| is_key | 0..1 Boolean | Whether the field is (part of) the primary key | direct |
| constraints | 0..1 String | Free-text or expression describing constraints on a field | direct |
Usages#
| used by | used in | type | used |
|---|---|---|---|
| Dataset | fields | range | Field |
| Table | fields | range | Field |
Identifier and Mapping Information#
Schema Source#
- from schema: https://w3id.org/lokf/schema
Mappings#
| Mapping Type | Mapped Value |
|---|---|
| self | schema:PropertyValue |
| native | lokf:Field |
LinkML Source#
Direct#
YAML
name: Field
description: A single column / property within a Table or Dataset schema. Maps to
schema:PropertyValue.
from_schema: https://w3id.org/lokf/schema
slots:
- name
- datatype
- description
- unit
- is_key
- constraints
class_uri: schema:PropertyValue
Induced#
YAML
name: Field
description: A single column / property within a Table or Dataset schema. Maps to
schema:PropertyValue.
from_schema: https://w3id.org/lokf/schema
attributes:
name:
name: name
description: A name.
in_subset:
- lokf_semantic
from_schema: https://w3id.org/lokf/schema
rank: 1000
slot_uri: schema:name
owner: Field
domain_of:
- Agent
- Field
- Distribution
- Parameter
range: string
datatype:
name: datatype
description: The data type of a field.
in_subset:
- lokf_semantic
from_schema: https://w3id.org/lokf/schema
close_mappings:
- schema:rangeIncludes
rank: 1000
slot_uri: lokf:datatype
owner: Field
domain_of:
- Field
range: FieldType
description:
name: description
description: A single-sentence summary of the concept.
in_subset:
- okf_core
from_schema: https://w3id.org/lokf/schema
close_mappings:
- dcterms:description
rank: 1000
slot_uri: schema:description
owner: Field
domain_of:
- KnowledgeBundle
- Concept
- Field
- Distribution
- Citation
range: string
unit:
name: unit
description: The unit of measurement (e.g. USD, seconds, count).
in_subset:
- lokf_semantic
from_schema: https://w3id.org/lokf/schema
rank: 1000
slot_uri: schema:unitText
owner: Field
domain_of:
- Metric
- Field
range: string
is_key:
name: is_key
description: Whether the field is (part of) the primary key.
in_subset:
- lokf_semantic
from_schema: https://w3id.org/lokf/schema
rank: 1000
slot_uri: lokf:isKey
owner: Field
domain_of:
- Field
range: boolean
constraints:
name: constraints
description: Free-text or expression describing constraints on a field.
in_subset:
- lokf_semantic
from_schema: https://w3id.org/lokf/schema
rank: 1000
slot_uri: lokf:constraints
owner: Field
domain_of:
- Field
range: string
class_uri: schema:PropertyValue