Class in Linked Open Knowledge Format (LOKF)
Source
A material a concept derives from (OKF v0.2 §5.1) — a pointer (resource) plus objective per-source credibility signals (author, usage_count, last_modified) from which consumers infer trust; OKF stores signals, never a score. Markdown footnotes whose label equals id attribute individual claims to this entry. Supersedes Citation.
URI: schema:CreativeWork
classDiagram
class Source
click Source href "../../classes/Source/"
Source : author
Source : excerpt
Source : id
Source : last_modified
Source : resource
Source : title
Source : usage_count
Source : usage_window
Source --> "0..1" UsageWindow : usage_window
click UsageWindow href "../../classes/UsageWindow/"
Class Properties#
| Property | Value |
|---|---|
| Class URI | schema:CreativeWork |
Slots#
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| resource | 1 String | REQUIRED | direct |
| title | 0..1 String | Human-readable display name | direct |
| author | 0..1 String | Who or what produced the source, as an actor string (e | direct |
| usage_count | 0..1 Integer | How often the source’s resource was exercised (views, executions, reads) over… | direct |
| last_modified | 0..1 Datetime | When the SOURCE itself last changed, an ISO 8601 datetime (a bare YYYY-MM-DD … | direct |
| usage_window | 0..1 UsageWindow | The { from, to } date range framing every usage_count | direct |
| excerpt | 0..1 String | A verbatim copy of the passage in resource that the concept relies on, take… | direct |
| id | 0..1 String | Optional stable key joining markdown footnote labels to this entry (e | direct |
Usages#
| used by | used in | type | used |
|---|---|---|---|
| Concept | sources | range | Source |
| Dataset | sources | range | Source |
| Table | sources | range | Source |
| Metric | sources | range | Source |
| Service | sources | range | Source |
| Playbook | sources | range | Source |
| Tutorial | sources | range | Source |
| Explanation | sources | range | Source |
| Policy | sources | range | Source |
| GlossaryTerm | sources | range | Source |
| Reference | sources | range | Source |
| Document | sources | range | Source |
| Role | sources | range | Source |
| AttestedComputation | sources | range | Source |
| Person | sources | range | Source |
| Organization | sources | range | Source |
Identifier and Mapping Information#
Schema Source#
- from schema: https://w3id.org/lokf/schema
Mappings#
| Mapping Type | Mapped Value |
|---|---|
| self | schema:CreativeWork |
| native | lokf:Source |
| close | prov:Entity, dcterms:BibliographicResource |
LinkML Source#
Direct#
YAML
name: Source
description: A material a concept derives from (OKF v0.2 §5.1) — a pointer (`resource`)
plus objective per-source credibility signals (`author`, `usage_count`, `last_modified`)
from which consumers infer trust; OKF stores signals, never a score. Markdown footnotes
whose label equals `id` attribute individual claims to this entry. Supersedes Citation.
from_schema: https://w3id.org/lokf/schema
close_mappings:
- prov:Entity
- dcterms:BibliographicResource
slots:
- resource
- title
- author
- usage_count
- last_modified
- usage_window
- excerpt
slot_usage:
resource:
name: resource
implements:
- dcterms:source
description: REQUIRED. An absolute URL, a bundle-relative path, or a population/scope
descriptor string (e.g. "all queries in BigQuery project X"). Range is widened
to string to admit scope descriptors; non-URI values are lossy on the RDF projection
(they serialize as xsd:anyURI-typed literals).
range: string
required: true
author:
name: author
description: 'Who or what produced the source, as an actor string (e.g. `team:analytics`,
`human:jsmith@acme`, `ga4-docs/v2`) — an authority signal carried as a plain
literal, not an inlined Agent object. Deliberately looser than `by`: source
authorship is commonly a team or an org, so any `<prefix>:<id>` is admitted,
where `by` stays confined to the §7 provenance actors the trust tiers read.'
range: string
multivalued: false
inlined_as_list: false
pattern: ^[^\s:/]+:\S+$|^[^\s/]+/[^\s/]+$
attributes:
id:
name: id
description: Optional stable key joining markdown footnote labels to this entry
(e.g. `ga4-schema`).
comments:
- 'Declared as a class-local attribute rather than the global identifier slot
so it stays optional (LinkML''s falsy-merge silently drops an `identifier: false`
slot_usage override and generation then fails).'
- Under the published flat context `id` maps to @id, so the value resolves against
the bundle base and mints the source node's IRI — the same id used across concepts
merges into one RDF node; schema:identifier applies only on the LinkML RDF-dump
path.
from_schema: https://w3id.org/lokf/schema
slot_uri: schema:identifier
domain_of:
- Concept
- Agent
- Source
range: string
class_uri: schema:CreativeWork
Induced#
YAML
name: Source
description: A material a concept derives from (OKF v0.2 §5.1) — a pointer (`resource`)
plus objective per-source credibility signals (`author`, `usage_count`, `last_modified`)
from which consumers infer trust; OKF stores signals, never a score. Markdown footnotes
whose label equals `id` attribute individual claims to this entry. Supersedes Citation.
from_schema: https://w3id.org/lokf/schema
close_mappings:
- prov:Entity
- dcterms:BibliographicResource
slot_usage:
resource:
name: resource
implements:
- dcterms:source
description: REQUIRED. An absolute URL, a bundle-relative path, or a population/scope
descriptor string (e.g. "all queries in BigQuery project X"). Range is widened
to string to admit scope descriptors; non-URI values are lossy on the RDF projection
(they serialize as xsd:anyURI-typed literals).
range: string
required: true
author:
name: author
description: 'Who or what produced the source, as an actor string (e.g. `team:analytics`,
`human:jsmith@acme`, `ga4-docs/v2`) — an authority signal carried as a plain
literal, not an inlined Agent object. Deliberately looser than `by`: source
authorship is commonly a team or an org, so any `<prefix>:<id>` is admitted,
where `by` stays confined to the §7 provenance actors the trust tiers read.'
range: string
multivalued: false
inlined_as_list: false
pattern: ^[^\s:/]+:\S+$|^[^\s/]+/[^\s/]+$
attributes:
id:
name: id
description: Optional stable key joining markdown footnote labels to this entry
(e.g. `ga4-schema`).
comments:
- 'Declared as a class-local attribute rather than the global identifier slot
so it stays optional (LinkML''s falsy-merge silently drops an `identifier: false`
slot_usage override and generation then fails).'
- Under the published flat context `id` maps to @id, so the value resolves against
the bundle base and mints the source node's IRI — the same id used across concepts
merges into one RDF node; schema:identifier applies only on the LinkML RDF-dump
path.
from_schema: https://w3id.org/lokf/schema
slot_uri: schema:identifier
owner: Source
domain_of:
- Concept
- Agent
- Source
range: string
resource:
name: resource
implements:
- dcterms:source
description: REQUIRED. An absolute URL, a bundle-relative path, or a population/scope
descriptor string (e.g. "all queries in BigQuery project X"). Range is widened
to string to admit scope descriptors; non-URI values are lossy on the RDF projection
(they serialize as xsd:anyURI-typed literals).
in_subset:
- okf_core
from_schema: https://w3id.org/lokf/schema
close_mappings:
- dcat:landingPage
- prov:specializationOf
rank: 1000
slot_uri: schema:url
owner: Source
domain_of:
- Concept
- Source
- Exclusion
- Executor
- Attester
range: string
required: true
title:
name: title
description: Human-readable display name.
in_subset:
- okf_core
from_schema: https://w3id.org/lokf/schema
close_mappings:
- dcterms:title
- rdfs:label
rank: 1000
slot_uri: schema:name
owner: Source
domain_of:
- KnowledgeBundle
- Concept
- Citation
- Source
range: string
author:
name: author
description: 'Who or what produced the source, as an actor string (e.g. `team:analytics`,
`human:jsmith@acme`, `ga4-docs/v2`) — an authority signal carried as a plain
literal, not an inlined Agent object. Deliberately looser than `by`: source
authorship is commonly a team or an org, so any `<prefix>:<id>` is admitted,
where `by` stays confined to the §7 provenance actors the trust tiers read.'
in_subset:
- lokf_semantic
from_schema: https://w3id.org/lokf/schema
close_mappings:
- dcterms:creator
- prov:wasAttributedTo
rank: 1000
slot_uri: schema:author
owner: Source
domain_of:
- Concept
- Source
range: string
multivalued: false
inlined_as_list: false
pattern: ^[^\s:/]+:\S+$|^[^\s/]+/[^\s/]+$
usage_count:
name: usage_count
description: How often the source's resource was exercised (views, executions,
reads) over the governing usage_window. An adoption/liveness signal read as
order-of-magnitude and trend, not a score.
comments:
- 'Minted in lokf: no established vocabulary has a bare-integer usage property
(schema:userInteractionCount is domained to the InteractionCounter reification).'
in_subset:
- okf_v02
from_schema: https://w3id.org/lokf/schema
close_mappings:
- schema:userInteractionCount
rank: 1000
slot_uri: lokf:usageCount
owner: Source
domain_of:
- Source
range: integer
last_modified:
name: last_modified
description: When the SOURCE itself last changed, an ISO 8601 datetime (a bare
YYYY-MM-DD is read as that day at 00:00:00Z). A recency signal about the source,
distinct from `generated.at`, which records when this concept's content was
produced. Same predicate as the deprecated `timestamp`, on a different subject
node (source vs concept).
in_subset:
- okf_v02
from_schema: https://w3id.org/lokf/schema
exact_mappings:
- dcterms:modified
rank: 1000
slot_uri: schema:dateModified
owner: Source
domain_of:
- Source
range: datetime
usage_window:
name: usage_window
description: The `{ from, to }` date range framing every `usage_count`. Attached
both to Concept (the shared window, sibling of `sources`) and to Source (a per-entry
override).
comments:
- 'Minted in lokf: dcterms:temporal (and schema:temporalCoverage) assert the resource''s
own temporal coverage, not the measurement window of its usage signals — borrowing
either would be a category error. dcterms:temporal is the nearest real term,
kept as a close mapping.'
in_subset:
- okf_v02
from_schema: https://w3id.org/lokf/schema
close_mappings:
- dcterms:temporal
rank: 1000
slot_uri: lokf:usageWindow
owner: Source
domain_of:
- Concept
- Source
range: UsageWindow
inlined: true
excerpt:
name: excerpt
implements:
- linkml:excerpt
description: A verbatim copy of the passage in `resource` that the concept relies
on, taken as retrieved. Lets a claim be re-checked against its source without
re-reading the whole of it.
notes:
- Proposed for OKF §5.1 as GoogleCloudPlatform/knowledge-catalog#438, under this
name. Kept in lokf_semantic until OKF adopts it, then moved to okf_v02. Shipped
as `supporting_text` in 0.8.0 only.
- '`implements: linkml:excerpt` marks the slot as text a reference validator can
look for in `resource`; it does not make it required.'
- '`lokf validate --check-excerpts` finds it in a local `resource`, whitespace
collapsed and case folded, `...` joining at most two spans in source order inside
one heading section (SPEC §9).'
in_subset:
- lokf_semantic
from_schema: https://w3id.org/lokf/schema
see_also:
- https://github.com/linkml/linkml-reference-validator
- https://github.com/GoogleCloudPlatform/knowledge-catalog/issues/438
aliases:
- supporting_text
rank: 1000
slot_uri: lokf:excerpt
owner: Source
domain_of:
- Source
range: string
class_uri: schema:CreativeWork