Overview
OkfParsingLibrary implements Google Cloud's Open Knowledge Format (OKF) v0.2 specification for OutSystems Developer Cloud. OKF represents data and analytics assets as Markdown files with YAML frontmatter, organised into linked bundles of concepts.
This library handles parsing and serialisation only. It reads OKF bundles into structured data and writes structured data back out as conformant OKF files. It does not store anything or decide anything about trust or status, that's the job of an app built on top of it, such as OKF Store.
Design principles
Installation
Via Forge (recommended): click Install on this page. ODC handles everything.
From a release package: download OkfParsingLibrary-ODC.zip from the latest GitHub release and upload it in ODC Portal under External Logic > Upload.
OkfParsingLibrary-ODC.zip
From source: the library targets net10.0 and builds with the standard .NET SDK. See the repository README for exact commands.
net10.0
Actions
UnzipBundle — Extracts every .md entry from a zip archive.
.md
archive
Files
OkfFileEntry
BuildBundleArchive — Builds a zip archive from a list of files.
filesJson
{"path": "...", "content": "..."}
Archive
SplitFrontmatter — Splits a concept file into its frontmatter block and body.
fileContent
FrontmatterSplitResult
HasFrontmatter
Body
ParseError
ParseFrontmatter — Parses an OKF v0.2 frontmatter block.
frontmatterRaw
---
ParsedFrontmatter
ExtractLinks — Extracts markdown inline links from a concept body.
body
Links
LinkRef
okf://
ExtractBodySection — Returns the content under a given heading.
heading
#
SectionContent
ParseCitationsSection — Parses a legacy v0.1 # Citations block.
# Citations
citationsBlock
SourcesJson
ParsedFrontmatter.SourcesJson
SerializeConcept — Serialises frontmatter fields plus body into a complete Markdown file.
conceptJson
MarkdownFile
ValidateConformance — Runs SPEC conformance checks against a set of files.
files
Issues
ConformanceIssue
Structures
OkfFileEntryOS — Path, Content, ReservedKind ("", "index", or "log")
Path
Content
ReservedKind
""
"index"
"log"
FrontmatterSplitResultOs — HasFrontmatter, FrontmatterRaw, Body, ParseError
FrontmatterRaw
ParsedFrontmatterOs — Type, Title, Description, Resource, TagsCsv, Status, StaleAfter, GeneratedBy, GeneratedAt, LegacyTimestamp, OkfVersion, VerifiedJson, SourcesJson, ExtraJson, ParseError
Type
Title
Description
Resource
TagsCsv
Status
StaleAfter
GeneratedBy
GeneratedAt
LegacyTimestamp
OkfVersion
VerifiedJson
ExtraJson
LinkRefOS — LinkText, RawPath, IsCrossBundle, TargetBundleName, TargetPath
LinkText
RawPath
IsCrossBundle
TargetBundleName
TargetPath
ConformanceIssueOS — FilePath, Severity ("error" or "warning"), Rule, Message
FilePath
Severity
"error"
"warning"
Rule
Message
Support
Source and issues are on the library's GitHub repository, linked from this listing.