This is a set of libraries and vocabularies supporting the use of RO-Crate lanaguage data.
It contains:
- A vocabulary (Classes, Properties, Defined Terms and Defined Term Sets) for the Language Data Commons RO-Crate Profile
- Other vocabularies for collections held by the Lanaguage Data Commons of Australia (e.g. AusTalk)
- A library for using these vocabularies in Node code to generate RO-Crates.
Updates to the Language Data Commons Schema Terms can be made in ontology/ro-crate-metadata.json
which is used to create ontology.md
.
Class and Property terms require definitions in rdfs:comment
, whereas Defined Term and Defined Term Sets require defintions in description
, otherwise the defintions won't populate.
Classes, Defined Terms and Defined Term Sets should have uppercase names (e.g. CollectionEvent) and Properties should have lowercase (e.g. annotationOf). Capitalisation can be checked using the following regexes:
- Find Properties that should be lowercase:
terms#[A-Z].*$\n.*Property
- Find Classes, Defined Terms and Defined Term Sets that should be uppercase:
terms#[^A-Z].*$\n.*(Class|Defined)
To generate a new version of ontology.md
run:
make ont