Class in Linked Open Knowledge Format (LOKF)
Generation
How and when the current content was produced (OKF v0.2 generated, §5.2). Modeled as the PROV activity that generated the concept, so "who wrote this, when" is a one-hop join from the concept via prov:wasGeneratedBy, with both slots keeping PROV's activity-side semantics (prov:wasAssociatedWith, prov:endedAtTime) — domain/range correct with no reasoner or subproperty entailment required.
URI: prov:Activity
classDiagram
class Generation
click Generation href "../../classes/Generation/"
Generation : at
Generation : by
Generation : revision
Class Properties#
| Property | Value |
|---|---|
| Class URI | prov:Activity |
Slots#
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| by | 1 String | The actor that performed the event, as a plain OKF §7 actor string (`<produce… | direct |
| at | 0..1 Datetime | ISO 8601 datetime at which the event completed | direct |
| revision | 0..1 String | The state of the resource this event refers to: a commit id, an ETag or versi… | direct |
Usages#
Identifier and Mapping Information#
Schema Source#
- from schema: https://w3id.org/lokf/schema
Mappings#
| Mapping Type | Mapped Value |
|---|---|
| self | prov:Activity |
| native | lokf:Generation |
| close | schema:CreateAction |
LinkML Source#
Direct#
YAML
name: Generation
description: How and when the current content was produced (OKF v0.2 `generated`,
§5.2). Modeled as the PROV activity that generated the concept, so "who wrote this,
when" is a one-hop join from the concept via prov:wasGeneratedBy, with both slots
keeping PROV's activity-side semantics (prov:wasAssociatedWith, prov:endedAtTime)
— domain/range correct with no reasoner or subproperty entailment required.
from_schema: https://w3id.org/lokf/schema
close_mappings:
- schema:CreateAction
slots:
- by
- at
- revision
slot_usage:
by:
name: by
required: true
class_uri: prov:Activity
Induced#
YAML
name: Generation
description: How and when the current content was produced (OKF v0.2 `generated`,
§5.2). Modeled as the PROV activity that generated the concept, so "who wrote this,
when" is a one-hop join from the concept via prov:wasGeneratedBy, with both slots
keeping PROV's activity-side semantics (prov:wasAssociatedWith, prov:endedAtTime)
— domain/range correct with no reasoner or subproperty entailment required.
from_schema: https://w3id.org/lokf/schema
close_mappings:
- schema:CreateAction
slot_usage:
by:
name: by
required: true
attributes:
by:
name: by
description: The actor that performed the event, as a plain OKF §7 actor string
(`<producer>/<version>`, `human:<id>`, `process:<id>`) — a literal, never an
IRI. Trust tiers derive from the `human:` prefix via string inspection (SPARQL
STRSTARTS). Required on a generation, revision, verification or refutation event,
optional on an exclusion.
comments:
- prov:wasAssociatedWith is an object property (range prov:Agent); carrying a
literal actor designator is a documented, RDF-consistent pragmatic flattening
— chosen over coined actor IRIs because a flat JSON-LD context cannot rewrite
strings into IRIs, and "reference_agent/gemini-2.5-pro" (no colon) would resolve
as an unstable document-base-relative IRI, while "human:kliu" would silently
become an absolute IRI in an unregistered URI scheme.
in_subset:
- okf_v02
from_schema: https://w3id.org/lokf/schema
close_mappings:
- schema:agent
rank: 1000
slot_uri: prov:wasAssociatedWith
owner: Generation
domain_of:
- Exclusion
- Generation
- Revision
- Verification
- Refutation
range: string
required: true
pattern: ^(human|process):\S+$|^[^\s/]+/[^\s/]+$
at:
name: at
description: ISO 8601 datetime at which the event completed.
in_subset:
- okf_v02
from_schema: https://w3id.org/lokf/schema
close_mappings:
- prov:atTime
- schema:endTime
rank: 1000
slot_uri: prov:endedAtTime
owner: Generation
domain_of:
- Generation
- Revision
- Verification
- Refutation
range: datetime
revision:
name: revision
description: 'The state of the resource this event refers to: a commit id, an
ETag or version label, or a content digest of the resource as retrieved (`<algorithm>:<hex>`).
Absent means unrecorded, never unchanged.'
notes:
- 'Proposed for OKF §5.2 as GoogleCloudPlatform/knowledge-catalog#437, under this
name. Kept in lokf_semantic until OKF adopts it, then moved to okf_v02. A per-source
`checked: [{ resource, revision }]` list, for a concept with several sources,
waits on that design.'
comments:
- 'A literal on the event, not prov:used: the value is an opaque version token,
not the IRI of an entity. pav:version describes the resource itself; here the
subject is the act of checking it.'
- Quote it in YAML. An all-digit commit id (`1234567`) is otherwise read as a
number and fails the string range, and an ETag carries its own double quotes.
in_subset:
- lokf_semantic
from_schema: https://w3id.org/lokf/schema
see_also:
- https://github.com/GoogleCloudPlatform/knowledge-catalog/issues/437
rank: 1000
slot_uri: lokf:revision
owner: Generation
domain_of:
- Generation
- Revision
- Verification
- Refutation
range: string
class_uri: prov:Activity