UNPKG

1.12 kBTypeScriptView Raw
1/**
2 * Script to imports [Citation Typing Ontology (CiTO)](http://www.sparontologies.net/ontologies/cito)
3 * citation types as the `CitationIntentEnumeration`.
4 *
5 * Fetches the CiTO JSON spec from GitHub and converts it into a type that extends `Enumeration`.
6 * The names of citation types are all made PascalCase, linked to their CiTo `@id`, and description
7 * copied over.
8 *
9 * Excludes CiTO types `Citation` and `cites` since these are already implicit in the `stencila:Cite`
10 * type and are not a type of citation. Excludes `Likes` because it does not represent a formal citation type:
11 * "Use of this property does NOT imply the existence of a formal citation of the entity that is 'liked'."
12 *
13 * Excludes `hasCitationCharacterization`, `hasCitationTimeSpan`, etc since these describe properties
14 * of a citation other than it's type.
15 *
16 * Excludes `*Citation` and `Shares*` since these are related to citation "distance", not citation
17 * intent. See https://github.com/stencila/schema/pull/260#pullrequestreview-636331806.
18 *
19 * Run using `npx ts-node src/imports/cito.ts`.
20 */
21export {};