diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-05-26 21:18:32 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-05-26 21:18:32 +0200 |
| commit | 482c462c02b90d670a9798d644a8ff7420548f38 (patch) | |
| tree | 01f2e2e42f5d9d65fb2e456468f454d48d57b343 | |
| parent | 8874ca3fe9004c31991e7eb6630182476f3c3d19 (diff) | |
add example, fix typo, thanks to Bernelle
| -rw-r--r-- | _markdown.qmd | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/_markdown.qmd b/_markdown.qmd index 32934ee..35e29f3 100644 --- a/_markdown.qmd +++ b/_markdown.qmd @@ -250,10 +250,53 @@ Syntax of `SemWord`, `Curie` and `SEMPREFIX`. ::: +Here is an elaborate example written in Semantic Markdown: + +```markdown +# {=<#artwork> .:Image} Semantics + +Simple ontological annotation: +[This][painting] is not a [pipe]. + +Nested, mixed-use and custom-namespaced annotations: +[[Ceci][painting] n'est pas une [pipe].]{lang=fr bibo:shortDescription} + +[painting]: {wd:Q1061035} + "A painting of a smoking pipe {:depiction}" + +[pipe]: {wd:Q104526} + "A smoking pipe {:depicts}" + +{@default}: foaf + +{bibo}: http://purl.org/ontology/bibo/ + +{wd}: http://www.wikidata.org/entity/ +``` + +...which with filter applied should become this: + +```markdown +--- +# Semantics + +Simple ontological annotation: +[This][painting] is not a [pipe]. + +Nested, mixed-use and custom-namespaced annotations: +[[Ceci][painting] n'est pas une [pipe].]{lang=fr} + +[painting]: https://www.wikidata.org/entity/Q1061035 + "A painting of a smoking pipe" + +[pipe]: https://www.wikidata.org/entity/Q104526 + "A smoking pipe" +``` + ## Suggestions for processors The purpose of these analyses is parsing, -as covered in the follwing chapters. +as covered in the following chapters. To conclude follows some general suggestions for parsing the Markdown extension Semantic Markdown. |
