Class in Linked Open Knowledge Format (LOKF)
Revision
The latest in-place edit of the content, for a producer that keeps generated as the production event: who changed it last, and when. One mapping, never a list; a later edit overwrites it. PROV has no class for it, so the class IRI is lokf-minted and the generated ontology declares it a subclass of prov:Activity.
URI: lokf:Revision
classDiagram
class Revision
click Revision href "../../classes/Revision/"
Revision : at
Revision : by
Revision : revision
Class Properties#
| Property | Value |
|---|---|
| Class URI | lokf:Revision |
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#
| used by | used in | type | used |
|---|---|---|---|
| Concept | revised | range | Revision |
| Dataset | revised | range | Revision |
| Table | revised | range | Revision |
| Metric | revised | range | Revision |
| Service | revised | range | Revision |
| Playbook | revised | range | Revision |
| Tutorial | revised | range | Revision |
| Explanation | revised | range | Revision |
| Policy | revised | range | Revision |
| GlossaryTerm | revised | range | Revision |
| Reference | revised | range | Revision |
| Document | revised | range | Revision |
| Role | revised | range | Revision |
| AttestedComputation | revised | range | Revision |
| Person | revised | range | Revision |
| Organization | revised | range | Revision |
Identifier and Mapping Information#
Schema Source#
- from schema: https://w3id.org/lokf/schema
Mappings#
| Mapping Type | Mapped Value |
|---|---|
| self | lokf:Revision |
| native | lokf:Revision |
| close | prov:Activity, schema:UpdateAction |
LinkML Source#
Direct#
YAML
name: Revision
description: 'The latest in-place edit of the content, for a producer that keeps `generated`
as the production event: who changed it last, and when. One mapping, never a list;
a later edit overwrites it. PROV has no class for it, so the class IRI is lokf-minted
and the generated ontology declares it a subclass of prov:Activity.'
from_schema: https://w3id.org/lokf/schema
close_mappings:
- prov:Activity
- schema:UpdateAction
slots:
- by
- at
- revision
slot_usage:
by:
name: by
required: true
class_uri: lokf:Revision
Induced#
YAML
name: Revision
description: 'The latest in-place edit of the content, for a producer that keeps `generated`
as the production event: who changed it last, and when. One mapping, never a list;
a later edit overwrites it. PROV has no class for it, so the class IRI is lokf-minted
and the generated ontology declares it a subclass of prov:Activity.'
from_schema: https://w3id.org/lokf/schema
close_mappings:
- prov:Activity
- schema:UpdateAction
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: Revision
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: Revision
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: Revision
domain_of:
- Generation
- Revision
- Verification
- Refutation
range: string
class_uri: lokf:Revision