-
Notifications
You must be signed in to change notification settings - Fork 7
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
add example Web URLs
with CBV URLs and Digital Link URLs
#237
Comments
We're not deprecating or dropping the URNs. The Web URI alternatives for CBV code list values and the use of GS1 Digital Link URIs as permitted alternatives for EPC URNs and EPC class URNs is additional rather than a complete replacement. We therefore should not make this change in all examples. For those who defend the continued use of URNs, it is important that some examples should still show them. In terms of CURIEs and QNames, the problem with Regarding the EPC identifiers, we need to preserve a mixture across the examples of some EPC URNs and some GS1 Digital Link URIs. However, where equivalent examples are prepared using both formats, then the conversion must be done correctly. For example, The GS1 resolver is operational but probably does not resolve most example values based on GS1 Company Prefix 0614141 or GS1 Prefix 952, nor does it provide much of a welcome page at https://id.gs1.org . Yes, we did have alphabetic identifier types in GS1 Digital Link URIs to make them more developer-friendly but they're dropped in v1.2 because some members of the work group were concerned about needing to support all of those mappings e.g. |
I'm glad of it :-). Let's keep existing examples as they are, but add a few examples to showcase all options
You can declare a prefix on a URN just as well as you can do it on a URL. And prefixed names can include colon. So this works: @prefix cbv: <urn:epcglobal:cbv:>.
@prefix epcis: <https://ns.gs1.org/epcis/>.
@prefix ex: <http://example.org/>.
ex:bizTransaction epcis:type cbv:btt:po. If you save it to a file, you can convert it to other formats to confirm it's correct:
Yes. We could use uppercase
Yes! We can use that same And thanks for providing correct Digital Links! |
cbv:
namespace instead of urn:epcglobal:cbv
Web URLs
with CBV URLs and Digital Link URLs
|
@VladimirAlexiev suggested that we could write a CURIE such as cbv:btt:po - but from a quick test using JSON-LD playground it appears that only the part before the first colon is expanded. If the intention of cbv:btt:po is to support either a mapping to a CBV v1.2 URN or to a CBV v2.0 Web URI then I can't find a way to get this to work. If @VladimirAlexiev has a working example for a CURIE that uses more than one colon and which can expand cbv:btt:po to something like https://ns.gs1.org/cbv/BTT-po then please provide a working example. |
Yes, that's what I showed. I didn't claim more. My point is that if we define two prefixes: "CBV": "urn:epcglobal:cbv:"
"cbv": "https://ns.gs1.org/cbv/" Then the user can write "type": "CBV:btt:po" # old-style BTT URI
"type": "cbv:BTT-po" # new-style BTT URL and doesn't have to write Guess I misunderstood your comment
But all this is beside the point: I'm not advocating that I'm advocating that the new style URL |
OK, I now understand better what you meant. Yes, that all looks fine.
…On Wed, Apr 28, 2021 at 3:18 PM Vladimir Alexiev ***@***.***> wrote:
CURIE such as cbv:btt:po - but from a quick test using JSON-LD playground
it appears that only the part before the first colon is expanded.
Yes, that's what I showed. I didn't claim more.
My point is that if we define two prefixes:
"CBV": "urn:epcglobal:cbv:""cbv": "https://ns.gs1.org/cbv/"
Then the user can write
"type": "CBV:btt:po" # old-style BTT URI"type": "cbv:BTT-po" # new-style BTT URL
and doesn't have to write urn:epcglobal:cbv:bizstep:shipping.
Guess I misunderstood your comment
we can never declare that cbv = urn:epcglobal:cbv: ...
But all this is beside the point: I'm not advocating that CBV:btt:po is
better than urn:epcglobal:cbv:bizstep:shipping.
I'm advocating that the new style URL cbv:BTT-po is the modern way, and
we should give examples (eg rework the 4 EPCIS/JSON/WithDigitalLinkID/
examples) that use only URLs and not URNs.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#237 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSXRL424RWJEH67BBCNLVTTLAKLPANCNFSM42CMWOIQ>
.
|
Can we set Also can we apply |
Dear @mkotoff , |
For properties such as For For example, the same SGLN might now be expressed in v2.0 as
so it should be clear that choosing a default namespace of I therefore think that it is safest to only define default namespaces for properties that expect URIs from enumerated code lists in CBV, in which the same standardised simple string terminal value such as Even then, since EPCIS/CBV 2.0 is all about modernisation and making the standard more usable, intuitive and accessible, I'd always recommend choosing the Web URI format for the stem, e.g. choosing 'https://ns.gs1.org/cbv/BizStep-` over |
Agree with everything in Mark's comment. I'd also quote the saying |
Fix some examples to use
cbv:
namespace instead ofurn:epcglobal:cbv
.For example, we should do these replacements:
<urn:epcglobal:cbv:btt:po> -> cbv:BTT-po
<urn:epcglobal:cbv:disp:in_transit> -> cbv:Disp-in_transit
How about EPC identifiers? Do we dare do this:
<urn:epc:id:sgtin:0614141.107346.2018> -> <https://id.gs1.org/01/06141411073462018X>
<urn:epc:id:sgln:0614141.07346.1234> -> <https://id.gs1.org/414/061414107346X/254/1234>
I'm much less keen on this:
The text was updated successfully, but these errors were encountered: