Skip to content
This repository was archived by the owner on May 31, 2023. It is now read-only.

More reliable permalink for crate.js #18

Open
stain opened this issue Apr 14, 2021 · 1 comment
Open

More reliable permalink for crate.js #18

stain opened this issue Apr 14, 2021 · 1 comment

Comments

@stain
Copy link
Contributor

stain commented Apr 14, 2021

The generated ro-crate-preview.html links to https://data.research.uts.edu.au/examples/ro-crate/examples/src/crate.js in a <script> tag, unless overriden with -c flag.

Awaiting #16 to instead put the JS in ro-crate-preview-files/ could we change the default URL for crate.js to use a https://w3id.org/ permalink redirect, given that this URL will be hardcoded into the outputted HTML files, potentially saved for 10+ years?

Another problem is that older RO-Crates then assume that whatever new version of crate.js on https://data.research.uts.edu.au/examples/ro-crate/examples/src/crate.js is still backwards compatible to the fixed HTML and RO-Crate JSON-LD.

The companion https://github.com/UTS-eResearch/ro-crate-html-js uses https://unpkg.com/[email protected]/dist/ro-crate-dynamic.js which at least is versioned - but again this direct URL relies on third-party unkpg.com to remain available.

I suggest using a major.minor versioned w3id permalink, which could link to a specific compatible unkpg.com release. These redirects can then be updated when known to work, or left frozen for outputs of older releases of ro-crate-js.

@stain
Copy link
Contributor Author

stain commented Apr 14, 2021

See also #17 on ro-crate-js vs ro-crate-html-js

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant