schema-sidecar
Theme
Text size
GitHub Menu

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#

PropertyValue
Class URIlokf:Revision

Slots#

NameCardinality and RangeDescriptionInheritance
by1
String
The actor that performed the event, as a plain OKF §7 actor string (`<produce…direct
at0..1
Datetime
ISO 8601 datetime at which the event completeddirect
revision0..1
String
The state of the resource this event refers to: a commit id, an ETag or versi…direct

Usages#

used byused intypeused
ConceptrevisedrangeRevision
DatasetrevisedrangeRevision
TablerevisedrangeRevision
MetricrevisedrangeRevision
ServicerevisedrangeRevision
PlaybookrevisedrangeRevision
TutorialrevisedrangeRevision
ExplanationrevisedrangeRevision
PolicyrevisedrangeRevision
GlossaryTermrevisedrangeRevision
ReferencerevisedrangeRevision
DocumentrevisedrangeRevision
RolerevisedrangeRevision
AttestedComputationrevisedrangeRevision
PersonrevisedrangeRevision
OrganizationrevisedrangeRevision

Identifier and Mapping Information#

Schema Source#

Mappings#

Mapping TypeMapped Value
selflokf:Revision
nativelokf:Revision
closeprov: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