Converter of vocabulary in YAML format into Turtle/JSON-LD/HTML+RDFa - v1.12.0
    Preparing search index...

    Function getData

    • Parse and interpret the YAML file's raw content. This is, essentially, a translation of the YAML file structure into its internal equivalent representation with only a very few changes. See the interface definition of RawVocabEntry for the details.

      The result is ephemeral, in the sense that it is then immediately transformed into a proper internal representation of the vocabulary using the Vocab interface. This is done in a separate function for a better readability of the code.

      Parameters

      • vocab_source: string

        YAML file content (reading in the file must be done beforehand)

      Returns Vocab

      Error in the schema validation or when parsing the YAML content