Class in Linked Open Knowledge Format (LOKF)
UsageWindow
The { from, to } date range framing every usage_count signal (OKF v0.2 §5.1). Written once as a sibling of sources; a single Source entry MAY carry its own override.
URI: dcterms:PeriodOfTime
classDiagram
class UsageWindow
click UsageWindow href "../../classes/UsageWindow/"
UsageWindow : from
UsageWindow : to
Class Properties#
| Property | Value |
|---|---|
| Class URI | dcterms:PeriodOfTime |
Slots#
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| from | 0..1 Datetime | Start (inclusive) of a usage window, an ISO 8601 datetime | direct |
| to | 0..1 Datetime | End (inclusive) of a usage window, an ISO 8601 datetime | direct |
Usages#
Identifier and Mapping Information#
Schema Source#
- from schema: https://w3id.org/lokf/schema
Mappings#
| Mapping Type | Mapped Value |
|---|---|
| self | dcterms:PeriodOfTime |
| native | lokf:UsageWindow |
LinkML Source#
Direct#
YAML
name: UsageWindow
description: The `{ from, to }` date range framing every `usage_count` signal (OKF
v0.2 §5.1). Written once as a sibling of `sources`; a single Source entry MAY carry
its own override.
from_schema: https://w3id.org/lokf/schema
slots:
- from
- to
class_uri: dcterms:PeriodOfTime
Induced#
YAML
name: UsageWindow
description: The `{ from, to }` date range framing every `usage_count` signal (OKF
v0.2 §5.1). Written once as a sibling of `sources`; a single Source entry MAY carry
its own override.
from_schema: https://w3id.org/lokf/schema
attributes:
from:
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
owner: UsageWindow
domain_of:
- UsageWindow
range: datetime
to:
name: to
description: End (inclusive) of a usage window, an ISO 8601 datetime. A bare YYYY-MM-DD
is read as that day at 00:00:00Z.
in_subset:
- okf_v02
from_schema: https://w3id.org/lokf/schema
close_mappings:
- schema:endDate
rank: 1000
slot_uri: dcat:endDate
owner: UsageWindow
domain_of:
- UsageWindow
range: datetime
class_uri: dcterms:PeriodOfTime