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

GS1 namespace #2987

Closed
ziodave opened this issue Feb 4, 2025 · 2 comments
Closed

GS1 namespace #2987

ziodave opened this issue Feb 4, 2025 · 2 comments
Labels
enhancement Incrementally add new feature

Comments

@ziodave
Copy link

ziodave commented Feb 4, 2025

Version

5.3.0

Feature

GS1 is a schema.org vocabulary extension managed by the GS1 consortium and published here https://ref.gs1.org/voc/

Are you interested in contributing a solution yourself?

Yes

@ziodave ziodave added the enhancement Incrementally add new feature label Feb 4, 2025
ziodave added a commit to ziodave/jena that referenced this issue Feb 4, 2025
@ziodave ziodave mentioned this issue Feb 4, 2025
4 tasks
@afs
Copy link
Member

afs commented Feb 4, 2025

Hi @ziodave

A vocabulary does not have to registered with the Jena core system to be used.

The files in "vocabularies/" aren't special - the code does not react to their presence and a constants file can be in any java package,

Mostly, they are W3C related or Jena-specific (W3C vocabaularies are usually quite stable).

The files provide convenience constants in Java, but they don't contain java for any domain/range declarations or any labels, or (as in the GS1 case) the owl:sameAs declarations.

To use in data, simply use the URIs, with or without a prefix declaration. No Jena setup necessary.

PREFIX gs1:      <https://ref.gs1.org/voc/>

To use in code, a schemagen translation of GS1 can be placed in any java package including your application.

The GS1 vocabulary changed in 2025-01 and changed several times in 2024. A copy in Jena is going to become out-of-date quite quickly. (The schema.org copy in vocabularies/ is over 4 years out of date.)

@ziodave
Copy link
Author

ziodave commented Feb 4, 2025

Hi @afs , understood, I thought it would be helpful to have it.

Thanks for your quick reply.

@afs afs closed this as completed Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Incrementally add new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants