Skip to content

Commit

Permalink
fix(JSON-LD): Add CiTO to context
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Apr 14, 2021
1 parent dcc3344 commit 3bdfe23
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ts/bindings/jsonld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ export const build = async (): Promise<void> => {
// conflict with https://schema.org/value.

// Other contexts referred to, including this one
// Note that http vs https is important!
// Note that http vs https, and trailing slashes are important!
schema: 'http://schema.org/',
bioschemas: 'http://bioschemas.org/',
codemeta: 'http://doi.org/10.5063/schema/codemeta-2.0#',
cito: 'http://purl.org/spar/cito/',
stencila: STENCILA_CONTEXT_URL,

// Define that in this context all terms derive from this vocabulary
Expand Down Expand Up @@ -149,5 +148,4 @@ export const build = async (): Promise<void> => {
/**
* Run `build()` when this file is run as a Node script
*/
// eslint-disable-next-line @typescript-eslint/no-floating-promises
if (module.parent === null) build()
if (require.main) build()

0 comments on commit 3bdfe23

Please sign in to comment.