Skip to content

Commit d37c652

Browse files
committed
Added documentation to index.ts to get into JSR
1 parent ccfa29b commit d37c652

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ previews/vcdm/vocabulary.yml
1515
previews/vcdm/vocabulary.drawio
1616
previews/vcdm/template.html
1717
publish
18+
npm_publish
1819
package-lock.json
1920
.vscode/
2021
notes.md
2122
.Attic/
23+
.gitignore
2224

2325

2426

index.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
/**
2-
* API entry point to the package.
2+
* # Generate RDFS vocabulary files from YAML
3+
*
4+
* This script in this module converts a simple [RDF](https://www.w3.org/TR/rdf11-concepts/) vocabulary, described in [YAML](https://yaml.org/spec/1.2.2/),
5+
* into a formal [RDFS](https://www.w3.org/TR/rdf-schema/) in [JSON-LD](https://www.w3.org/TR/json-ld11/), [Turtle](https://www.w3.org/TR/turtle/),
6+
* and [HTML+RDFa](https://www.w3.org/TR/rdfa-core/). Optionally, a simple [JSON-LD `@context`](https://www.w3.org/TR/json-ld11/#the-context)
7+
* is also generated for the vocabulary. Neither the script nor the YAML format is prepared for complex vocabularies; its primary goal is to simplify
8+
* the generation of simple, straightforward RDFS vocabularies not requiring, for instance, sophisticated OWL statements.
9+
*
10+
* When running, the script relies on two files:
11+
*
12+
* 1. 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.)
13+
* 2. 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.)
14+
*
15+
* For further details, see the more detailed documentation on [GitHub](https://w3c.github.io/yml2vocab/).
316
*
417
* @module
518
*/

0 commit comments

Comments
 (0)