schema-sidecar
Theme
Text size
GitHub Menu

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#

NameDescriptionModifies Slot
UsageWindowThe { from, to } date range framing every usage_count signal (OKF v0no

Properties#

Type and Range#

PropertyValue
RangeDatetime
Domain OfUsageWindow
Slot URIdcat:startDate

In Subsets#

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.

Identifier and Mapping Information#

Schema Source#

Mappings#

Mapping TypeMapped Value
selfdcat:startDate
nativelokf:from
closeschema: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