Slot in Linked Open Knowledge Format (LOKF)
from
Start (inclusive) of a usage window, an ISO 8601 datetime. A bare YYYY-MM-DD is read as that day at 00:00:00Z.
URI: dcat:startDate
Applicable Classes#
| Name | Description | Modifies Slot |
|---|---|---|
| UsageWindow | The { from, to } date range framing every usage_count signal (OKF v0 | no |
Properties#
Type and Range#
| Property | Value |
|---|---|
| Range | Datetime |
| Domain Of | UsageWindow |
| Slot URI | dcat:startDate |
In Subsets#
Comments#
- dcat:startDate is defined by DCAT 2 precisely for dcterms:PeriodOfTime — exactly this shape.
fromis a Python reserved word: the authored YAML key and JSON-LD term stayfrom, but generated Python needs the induced attribute aliased. LinkML currently generatesfrom_without mapping the authoredfromkey when loading dataclasses (https://github.com/linkml/linkml/pull/4083). LOKF’s build patches its own generated module; domain vocabularies importing LOKF and generating their own dataclasses do not receive that patch. Keep the authored keyfrom; after an upstream release fixes loading, update the LinkML minimum and remove the local workaround and expected failure in tests/test_keyword_dataclasses.py.
Identifier and Mapping Information#
Schema Source#
- from schema: https://w3id.org/lokf/schema
Mappings#
| Mapping Type | Mapped Value |
|---|---|
| self | dcat:startDate |
| native | lokf:from |
| close | schema:startDate |
LinkML Source#
YAML
name: from
description: Start (inclusive) of a usage window, an ISO 8601 datetime. A bare YYYY-MM-DD
is read as that day at 00:00:00Z.
comments:
- 'dcat:startDate is defined by DCAT 2 precisely for dcterms:PeriodOfTime — exactly
this shape. `from` is a Python reserved word: the authored YAML key and JSON-LD
term stay `from`, but generated Python needs the induced attribute aliased. LinkML
currently generates `from_` without mapping the authored `from` key when loading
dataclasses (https://github.com/linkml/linkml/pull/4083). LOKF''s build patches
its own generated module; domain vocabularies importing LOKF and generating their
own dataclasses do not receive that patch. Keep the authored key `from`; after an
upstream release fixes loading, update the LinkML minimum and remove the local workaround
and expected failure in tests/test_keyword_dataclasses.py.'
in_subset:
- okf_v02
from_schema: https://w3id.org/lokf/schema
close_mappings:
- schema:startDate
rank: 1000
slot_uri: dcat:startDate
domain_of:
- UsageWindow
range: datetime