Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDF-like Models in Markdown #846

Open
vorburger opened this issue Aug 20, 2024 · 0 comments
Open

RDF-like Models in Markdown #846

vorburger opened this issue Aug 20, 2024 · 0 comments
Labels
enhancement New feature or request format File Formats for I/O model/markdown Models of MD / Markdown Docs

Comments

@vorburger
Copy link
Member

vorburger commented Aug 20, 2024

After #607, allow embedding that within Markdown:

```yaml !!RDF
BASE: https://enola.dev/markdown
load: https://enola.dev/contexts.yaml
contexts:
  - meta: https://enola.dev/meta
type: meta:Ontology
---
# Markdown

Model of Markdown files.

```yaml !!RDF
emoji: 📃 
---
## Document {#doc}

...

## Links {#link} {:emoji 🔗}

A link to another [#doc] of [enola:] with {properties:}

<!-- (Un)ordered list soon after property name means RDF blank node list? Or just write this in YAML, and let it be replaced by generated? -->

* Target {#target}: 
* Label

The fact that YAML front matter appears not just at the start but also inline can easily be handled by a converter. Note how we're using code blocks marked with a special language. This will get filtered out and replaced by the pre-processor.

Note how links can use prefixes, and just IRI without label.

Note how it's possible to specify properties inline!

@vorburger vorburger added enhancement New feature or request model/markdown Models of MD / Markdown Docs format File Formats for I/O labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request format File Formats for I/O model/markdown Models of MD / Markdown Docs
Projects
None yet
Development

No branches or pull requests

1 participant