schema-sidecar
Theme
Text size
GitHub Menu

LinkML schema

Linked Open Knowledge Format (LOKF)

LOKF is a semantic, ontology-grounded profile of the Google Open Knowledge Format (OKF v0.2). It preserves OKF's authoring model — a directory of markdown files, each with a small YAML frontmatter block describing one concept — but binds every concept, field, and relationship to established web vocabularies (schema.org, W3C DCAT, and W3C PROV-O). Because the frontmatter keys are LinkML slots mapped to IRIs, a LOKF concept file, once a LinkML-generated JSON-LD @context is attached, is simultaneously human-readable markdown AND valid JSON-LD that expands losslessly to RDF triples. The entire format is defined in this single LinkML schema, from which the JSON-LD context, JSON Schema, SHACL shapes, and an OWL ontology are generated.

This repository holds no LinkML schema of its own, so the site shows the one its knowledge bundle is written in, LOKF 0.10.0.

Schema file: lokf.yaml, from the lokf 0.10.0 package the sidecar installs

URI: https://w3id.org/lokf/schema

Name: lokf

Diagram#

erDiagram
Agent {
    uriorcurie id  
    string name  
    string email  
    string type  
}
Audience {
    string audienceType  
    integer suggestedMaxAge  
    integer suggestedMinAge  
}
Citation {
    string description  
    string title  
    uriorcurie url  
}
Concept {
    uriorcurie id  
    string description  
    string additionalType  
    string body  
    datetime created  
    string educationalLevel  
    DiataxisMode genre  
    uriorcurie license  
    uriorcurie resource  
    datetime stale_after  
    ConceptStatus status  
    stringList tags  
    datetime timestamp  
    string title  
    string type  
    string typicalAgeRange  
    string version  
}
Exclusion {
    string by  
    string reason  
    string resource  
}
Generation {
    datetime at  
    string by  
    string revision  
}
KnowledgeBundle {
    string description  
    uri base_iri  
    uri context  
    uriorcurie license  
    string lokf_version  
    string okf_version  
    string title  
}
Refutation {
    datetime at  
    string by  
    string reason  
    string revision  
}
Relation {
    RelationType predicate  
    string relation_label  
}
Revision {
    datetime at  
    string by  
    string revision  
}
Source {
    string id  
    string author  
    string excerpt  
    datetime last_modified  
    string resource  
    string title  
    integer usage_count  
}
UsageWindow {
    datetime from  
    datetime to  
}
Verification {
    datetime at  
    string by  
    string revision  
}

Concept ||--|o Audience : "audience"
Concept ||--|o Generation : "generated"
Concept ||--|o Revision : "revised"
Concept ||--|o UsageWindow : "usage_window"
Concept ||--}o Agent : "author"
Concept ||--}o Citation : "citations"
Concept ||--}o Concept : "about, definedBy, dependsOn, derivedFrom, hasPart, isPartOf, isReplacedBy, references, relatedTo, sameAs, source"
Concept ||--}o Exclusion : "exclusions"
Concept ||--}o Refutation : "refuted"
Concept ||--}o Relation : "relations"
Concept ||--}o Source : "sources"
Concept ||--}o Verification : "verified"
KnowledgeBundle ||--|o Agent : "publisher"
KnowledgeBundle ||--}o Concept : "concepts"
Relation ||--|| Concept : "target"
Source ||--|o UsageWindow : "usage_window"

Classes#

ClassDescription
AgentA person or organization responsible for a concept
        OrganizationAn organization, team, or group
        PersonAn individual person
AttesterThe deterministic, non-LLM check for an Attested Computation (OKF v0
AudienceThe readers a concept is written for, as schema
ChecksumA digest of a distribution’s bytes, which a consumer recomputes before trusti…
CitationA reference to an external source supporting a claim in a concept’s body
ConceptA single unit of knowledge within a bundle, represented as one markdown docum…
        AttestedComputationA sanctioned, immutable recipe for computing a value (OKF v0
        DatasetA collection of data, published or curated for access and reuse
                TableA structured, tabular dataset (e
        DocumentA general knowledge document that does not fit a more specific type
        ExplanationAn understanding-oriented, discursive treatment of a topic that permits refle…
        GlossaryTermA defined term in a controlled vocabulary or glossary
        MetricA precisely defined, measurable quantity — the canonical definition of a busi…
        PlaybookA procedure or runbook — an ordered set of steps to accomplish a task or resp…
        PolicyA governance, compliance, or operational policy document
        ReferenceA concept that mirrors an external source (a page, paper, or document) as a f…
        RoleA role an agent holds within an organization over a period of time — a job, a…
        ServiceA callable service or API endpoint
        TutorialA learning-oriented lesson: a guided, end-to-end practical activity through w…
DistributionA specific accessible form of a Dataset (a file, feed, or endpoint)
ExclusionA material the concept’s author looked at and left out on purpose, with the r…
ExecutorHow an Attested Computation is run (OKF v0
FieldA single column / property within a Table or Dataset schema
GenerationHow and when the current content was produced (OKF v0
KnowledgeBundleA self-contained, hierarchical collection of concept documents — the unit of …
ParameterA typed, named hole in an Attested Computation that the agent may fill (OKF v…
RefutationOne refutation event: an actor found the content wrong against its sources or…
RelationA typed, reified relationship from the containing concept to a target, used w…
RevisionThe latest in-place edit of the content, for a producer that keeps `generated…
SourceA material a concept derives from (OKF v0
UsageWindowThe { from, to } date range framing every usage_count signal (OKF v0
VerificationOne verification event (OKF v0

Slots#

SlotDescription
abbreviationA short form or acronym for a term
aboutThe subject matter this concept is about
access_urlA URL that gives access to a distribution
additionalTypeThe producer’s own type string when it names no LOKF class
algorithmThe algorithm that computed a checksum
atISO 8601 datetime at which the event completed
attesterThe deterministic, non-LLM verdict check over a receipt
audienceThe readers this concept is written for, such as readers aged 13 to 18, as an…
audienceTypeThe kind of reader, in words, such as students or dyslexic readers
authorThe agent(s) responsible for authoring the concept
base_iriThe base IRI against which Concept IDs are resolved to produce each concept’s…
bodyThe markdown body of the concept document (everything after the frontmatter)
byThe actor that performed the event, as a plain OKF §7 actor string (`<produce…
byte_sizeThe size of the distribution in bytes
checksumA digest of the distribution’s bytes, for checking a download
checksum_valueThe checksum as lowercase hexadecimal digits, as many as the algorithm’s dige…
citationsExternal sources supporting claims in the body
computationOptional path to a file holding the computation; absent means the body’s `# C…
conceptsThe concepts contained in a bundle
constraintsFree-text or expression describing constraints on a field
contextThe URL of the JSON-LD @context to attach to this bundle’s concepts to interp…
createdISO 8601 datetime the concept was created
datatypeThe data type of a field
definedByA resource that formally defines this concept
definitionThe formal definition of a term
dependsOnA concept this concept depends on
derivedFromAn entity this concept was derived from (provenance)
descriptionA single-sentence summary of the concept
distributionAccessible forms of the dataset
documentationA link to the service’s documentation
educationalLevelThe level of education the concept is written for, in words or as the IRI of …
emailContact email address
endDateThe date the role ended; omit for a role still held
endpointThe base URL or invocation endpoint of a service
excerptA verbatim copy of the passage in resource that the concept relies on, take…
exclusionsThe materials this concept’s author considered and left out on purpose, each …
executorHow the computation is run and what evidence a run must return
fieldsThe columns / properties that make up a dataset’s schema
formulaThe calculation or definition expression for a metric
fromStart (inclusive) of a usage window, an ISO 8601 datetime
generatedHow and when the current content was produced: by (REQUIRED actor) and at…
genreThe Diátaxis documentation mode of the concept’s markdown body (tutorial, how…
hasPartA concept that is a part of this concept
holderThe agent (typically a Person) who holds the role
http_methodThe HTTP method used to invoke the service, if applicable
idThe concept’s stable IRI
is_keyWhether the field is (part of) the primary key
isPartOfThe target concept that this concept is a part of
isReplacedByA concept that supersedes this one, without asserting equivalence
last_modifiedWhen the SOURCE itself last changed, an ISO 8601 datetime (a bare YYYY-MM-DD …
licenseThe license under which the concept or bundle is offered
lokf_versionThe LOKF version the bundle targets (e
measuresWhat the metric measures (a concept IRI or description)
media_typeThe media (MIME) type of a distribution
memberOfThe organization within which the role is held
nameA name
okf_versionThe OKF version the bundle remains compatible with (e
parametersThe typed, named holes the agent may fill — the ONLY surface the agent may bi…
predicateThe relationship type
publisherThe agent responsible for making the bundle available
reasonThe grounds for a decision, in a sentence a reviewer can check: why a materia…
receiptThe field names a run must return (e
referencesA concept or resource this concept refers to
refutedRefutation events: an actor found the content wrong against its sources or re…
relatedToA generic association to another concept
relation_labelAn optional human-readable label for the relationship
relationsTyped relationships whose predicate is not covered by a named relation slot
requiredWhether a value for the parameter must be supplied
resourceA URI that uniquely identifies the underlying real-world asset the concept de…
revisedThe latest in-place edit of the content, as {by, at}, kept apart from `gene…
revisionThe state of the resource this event refers to: a commit id, an ETag or versi…
roleNameThe name/title of the role held (e
runtimeREQUIRED on an Attested Computation
sameAsAn IRI asserting this concept is the same entity as another
sourceA resource from which this concept is derived or sourced
sourcesThe materials this concept derives from, each carrying objective credibility …
stale_afterThe absolute instant on or after which the concept is stale (OKF §5
startDateThe date the role began (ISO 8601 date or year)
statusLifecycle status of the concept: draft
suggestedMaxAgeThe oldest age, in years, the concept is written for
suggestedMinAgeThe youngest age, in years, the concept is written for
tagsShort cross-cutting keywords for categorization
targetThe IRI (or Concept ID) of the relationship’s object
timestampISO 8601 datetime of the last meaningful change
titleHuman-readable display name
toEnd (inclusive) of a usage window, an ISO 8601 datetime
typeThe concept’s type - OKF’s single required field
typicalAgeRangeThe typical age range of the concept’s readers, as schema
unitThe unit of measurement (e
urlA URL
usage_countHow often the source’s resource was exercised (views, executions, reads) over…
usage_windowThe { from, to } date range framing every usage_count
verifiedVerification events confirming the content against its sources or resource
versionA version string for the concept’s content

Enumerations#

EnumerationDescription
ChecksumAlgorithmDigest algorithms for a Checksum, each mapped to its SPDX individual
ConceptStatusLifecycle status of a concept (OKF v0
DiataxisModeThe Diátaxis documentation mode of a concept’s body - an orthogonal facet des…
FieldTypeDatatypes for dataset/table fields, each mapped to its XSD (or RDF) type
HttpMethodThe IANA HTTP request method registry, restricted to the methods a LOKF Servi…
ParameterTypeDatatypes for Attested Computation parameters
RelationTypeThe recommended controlled vocabulary of relationship predicates for reified …

Types#

TypeDescription
BooleanA binary (true or false) value
Curiea compact URI
Datea date (year, month and day) in an idealized calendar
DateOrDatetimeEither a date or a datetime
DatetimeThe combination of a date and time
DecimalA real number with arbitrary precision that conforms to the xsd:decimal speci…
DoubleA real number that conforms to the xsd:double specification
FloatA real number that conforms to the xsd:float specification
HexBinaryBinary data written as hexadecimal digits; maps to xsd:hexBinary
IntegerAn integer
JsonpathA string encoding a JSON Path
JsonpointerA string encoding a JSON Pointer
NcnamePrefix part of CURIE
NodeidentifierA URI, CURIE or BNODE that represents a node in a model
NonNegativeIntegerA whole number, 0 or more; maps to xsd:nonNegativeInteger
ObjectidentifierA URI or CURIE that represents an object in the model
SparqlpathA string encoding a SPARQL Property Path
StringA character string
TimeA time object represents a (local) time of day, independent of any particular…
Uria complete URI
Uriorcuriea URI or a CURIE

Subsets#

SubsetDescription
lokf_semanticExtensions LOKF layers on top of OKF to achieve JSON-LD / RDF grounding, type…
okf_coreFields and structural rules that already exist in OKF v0
okf_v02Fields and structural rules introduced by OKF v0