Class KonceptGlossaryProcessor

java.lang.Object
org.asciidoctor.extension.BaseProcessor
org.asciidoctor.extension.Postprocessor
network.ike.docs.koncept.KonceptGlossaryProcessor
All Implemented Interfaces:
org.asciidoctor.extension.Processor

public class KonceptGlossaryProcessor extends org.asciidoctor.extension.Postprocessor
AsciidoctorJ postprocessor that generates a "Referenced Koncepts" glossary section and a colophon at the end of the document.

Uses a Postprocessor rather than a Treeprocessor because inline macros (including KonceptInlineMacro) are resolved during the conversion phase, which runs after tree processing.

The glossary is built from the koncept registry populated by KonceptInlineMacro during document conversion. Each referenced koncept gets a single glossary entry containing:

  • An anchor target matching the inline SVG badge links
  • Natural language definition
  • Description logic axiom in Unicode notation
  • Optional SNOMED CT identifier
  • Optional OWL IRI

The colophon describes the rendering pipeline used to produce the document, including the AsciiDoc backend, build timestamp, and document version.

Definitions are resolved via KonceptDefinitionSource. The source is configured by document attributes:

  • :koncept-definitions-file: — filesystem path to YAML
  • :koncept-definitions-classpath: — classpath resource path
  • Default: /koncepts.yml on classpath
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new glossary processor instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    process(org.asciidoctor.ast.Document document, String output)
     

    Methods inherited from class org.asciidoctor.extension.BaseProcessor

    createBlock, createBlock, createBlock, createBlock, createBlock, createBlock, createBlock, createDocument, createList, createList, createList, createListItem, createListItem, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createPhraseNode, createSection, createSection, createSection, createSection, createSection, createTable, createTable, createTableCell, createTableCell, createTableCell, createTableCell, createTableColumn, createTableColumn, createTableRow, getConfig, log, newCursor, newCursor, newCursor, newReader, newReader, newReader, newReader, parseContent, setConfig, unwrap, updateConfig

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KonceptGlossaryProcessor

      public KonceptGlossaryProcessor()
      Creates a new glossary processor instance.
  • Method Details

    • process

      public String process(org.asciidoctor.ast.Document document, String output)
      Specified by:
      process in class org.asciidoctor.extension.Postprocessor