This script in this module converts a simple RDF vocabulary, described in YAML,
into a formal RDFS in JSON-LD, Turtle,
and HTML+RDFa. Optionally, a simple JSON-LD @context
is also generated for the vocabulary. Neither the script nor the YAML format is prepared for complex vocabularies; its primary goal is to simplify
the generation of simple, straightforward RDFS vocabularies not requiring, for instance, sophisticated OWL statements.
When running, the script relies on two files:
The vocabulary.yml file, containing the definition for the vocabulary entries. (It is also possible to use a different name for the YAML file, see below.)
The template.html file, used to create the HTML file version of the vocabulary. (It is also possible to use a different name for the template file, see below.)
For further details, see the more detailed documentation on GitHub.
Generate RDFS vocabulary files from YAML
This script in this module converts a simple RDF vocabulary, described in YAML, into a formal RDFS in JSON-LD, Turtle, and HTML+RDFa. Optionally, a simple JSON-LD
@contextis also generated for the vocabulary. Neither the script nor the YAML format is prepared for complex vocabularies; its primary goal is to simplify the generation of simple, straightforward RDFS vocabularies not requiring, for instance, sophisticated OWL statements.When running, the script relies on two files:
vocabulary.ymlfile, containing the definition for the vocabulary entries. (It is also possible to use a different name for the YAML file, see below.)template.htmlfile, used to create the HTML file version of the vocabulary. (It is also possible to use a different name for the template file, see below.)For further details, see the more detailed documentation on GitHub.