Markdown YAML-LD Codeblocks¶
Author: Michael Vorburger.ch
Status: Idea
Abstract¶
As an extension of Markdown YAML-LD Frontmatter, we propose that YAML-LD also be extracted from code blocks.
Description¶
For example:
---
"@context": https://enola.dev/spec.jsonld
$id: https://example.org/spec1
$type: enola:Spec
author: https://www.vorburger.ch
---
# Heading...
Let's define more stuff:
` ` `yaml-ld
author: https://example.org/YOU
` ` `
and also separately:
` ` `yaml-ld
/spec2:
author: https://example.org/THEY
becomes the following RDF, if written as TTL:
@prefix enola: <https://enola.dev/>.
@prefix schema: <https://schema.org/>.
@prefix example: <https://example.org/>.
example:spec1 a enola:Spec;
schema:author <https://www.vorburger.ch>, <https://example.org/YOU>.
example:spec2
schema:author <https://example.org/THEY>.
Implementations¶
Enola.dev’s Loader may implement this.
References¶
We are not aware of any existing tools permitting mixing Markdown, YAML and RDF this conveniently.