afs commented on issue #2987:
URL: https://github.com/apache/jena/issues/2987#issuecomment-2633318489
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.
```ttl
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](https://ref.gs1.org/voc/data/archive) 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.)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]