Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the two contexts are not used in the ontology; ensure stable URL, updatability, content type #183

Open
VladimirAlexiev opened this issue Sep 25, 2023 · 0 comments

Comments

@VladimirAlexiev
Copy link

VladimirAlexiev commented Sep 25, 2023

If you look at the uncefact and unlocode ontologies:

curl https://vocabulary.uncefact.org/ -H 'Accept: application/ld+json'
curl https://vocabulary.uncefact.org/unlocode# -H 'Accept: application/ld+json'

both use inline contexts (that define a few prefixes), and don't use the respective contexts, which are:

  • unece-context.jsonld
  • unlocode-vocab-context.jsonld

Then what is the purpose of these dedicated (network-available) contexts?
Are they to be used in instance data only?
How do you guarantee that the inline and network contexts are in sync (I think they are not)?

Pros for using network contexts:

  • the contexts will grow in the future, to specify which prop is a URL (@id) and which is datatyped (eg xsd:boolean, xsd:float)
  • while adding a hefty context to an ontology that's already much bigger is not a big deal, adding a few kB of context to every instance file is a big deal and should be avoided

Requirements for using network contexts so they can be used eg on the JSONLD Playground:

  • they must be available at a stable network location (because the URL will be embedded in thousands of instance files)
  • the location must be updated as soon as the source file is updated
  • they must be served with appropriate Content-Type
@VladimirAlexiev VladimirAlexiev changed the title unlocode-vocab-context.jsonld is unused the two contexts are not used in the ontology; ensure stable URL, updatability, content type Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant