-
Notifications
You must be signed in to change notification settings - Fork 857
New type for barcode images [final task: add an example] #687
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
Comments
Good idea. Is there any obvious structure here, or just pass it to the barcode tools to figure out? |
At a minimum, it lets barcode tools do the Right Thing(tm). One thought is to add all of the gtin properties, so you don't even have to scan the barcode. |
The vast majority of barcodes don't include GTINs, and there's a potentially complicated structure associated with those that carry more than just the GTIN. QR's can be even more complicated as there aren't many structured approaches in place. Dan's suggestion to just pass it along is a good one IMHO |
(and as I'm writing this, RLRichardson comments before I could even look up his GitHub ID :) yes - thinking of gtin - https://github.com/zxing/zxing has a list ... probably the main thing to do is figure out how barcode images relate to the various /Product codes. I hear from the GS1 team that the numerous gtin* properties may converge on a single unified representation btw. So hypothetically, a 'gtin' property would apply directly on the image, for example? Our definitions for gtin13 and gtin8 mention EAN (e.g. gtin13 "The GTIN-13 code of the product, or the product to which the offer refers. This is equivalent to 13-digit ISBN codes and EAN UCC-13."). See also: |
I added a new type, but no properties in pull request #766. |
Issue #687: Added Barcode as a subtype of ImageObject.
Merged for review/discussion. http://sdo-phobos.appspot.com/Barcode Also note that we have http://schema.org/ticketToken http://www.w3.org/2000/01/rdf-schema#comment "Reference to an asset (e.g., Barcode, QR code image or PDF) usable for entrance." . ... in the schemas nearby. It seems complementary. We could add Barcode or CreativeWork to the range values for ticketToken but I don't think that is essential. |
This would be useful. +1 |
@shankarnat @mfhepp @chaals @tilid @ajax-als @scor @mfhepp ... please review! http://sdo-phobos.appspot.com/Barcode |
Looks OK to me. Reminds me that I need to tweak the examples for imageObjects to have descriptions… QR codes and barcodes often have text (property inherited from Thing), which should be in the examples when we get some. |
Looks good - would a 'associatedCode' Text property be useful to identify ~Richard. On Tue, Sep 15, 2015 at 12:09 PM, chaals notifications@github.com wrote:
|
I would prefer we recommend using the text property (I think it is on CreativeWork actually) rather than minting a duplicate for this case... |
Thanks @chaals. Yeah - better examples would be great. I made a pass through fairly recently adding alt text to any HTML examples using img element but you're right, there are lots of under-described images elsewhere. @RichardWallis (on the related point), I'd suggest we use http://schema.org/text ("The textual content of this CreativeWork.") for now for textual serialization of the barcode's content. And @chaals just agreed before I finished typing this :) Ok, fine! For codes, when we clean up 'code' property and do something to align closer to SKOS we could at treating this as a more controlled string, but given the chaotic variety of barcoding systems, text is more than adequate for now in my experience. |
suggest we use http://schema.org/text ("The textual content of this +1 Associated example(s) should represent this. ~Richard. On Tue, Sep 15, 2015 at 1:09 PM, Dan Brickley notifications@github.com
|
@RichardWallis is right - we should have at least one example of a barcode whose content as text we also supply. Proposals / contribs welcome! I'd love a book example and something like food packaging... |
Hmm we don't actually have any precedent for schema.org examples that have inline visible images, they're all just URLs since we only show markup. I was thinking we needed an image to include. Anyway, http://i.imgur.com/ghgr2hF.png?1 is the barcode from the back of a book - text is "9 780262 521123 90000" roughly (transcribed by me; how strict are the whitespace rules?) See also
Question for extra points: if we know the creative work, product etc that the barcode codes for, how are they associated? 'about' ? |
We could also simply recommend the use of
for this purpose, or http://schema.org/caption or name/description. But I think "text" is best. I also briefly thought about including the new type in the domain of schema:productID, but barcodes and QR codes can be used for a very broad range of things So my proposal is to use schema:text and add "Use 'text' for a textual representation of the code" to the description of the new type. Martin martin hepp http://www.heppnetz.de
|
Oops, this is the risk of commenting via email. You have already agreed upon schema:text ;-) |
@mfhepp wouldn't adding ""Use 'text' for a textual representation of the code"" duplicate the existing schema documentation structure? I'd rather the indication that 'text' is particularly appropriate be communicated via examples. Which brings us back to: what shall we show in the examples w.r.t. associating the Barcode with other entities? Simplest for now is just a Barcode item, nothing more, and a text property. Can we do better? |
I haven’t followed this string, but depending on what you’re attempting to do here, there are multiple options: If it’s a simple reference example, no worries, except that you don’t provide a framework for understanding and using the textural data. If you’re attempting to create a more useful approach that includes explanation and context, it becomes very complex very quickly. Given the wide variety of symbologies, and associated data formats for same, you may want to consider reaching out to GS1 as a resource for feedback. Rich Richardson | Vice President, Emerging Capabilities and Industries | GS1 US "The things we consider to be everyday have extraordinary effects on places we’ve never heard of." Kate Davies |
To answer my own question, 'image' (linking to a barcode from something it represents) is probably better than 'about' (linking in the other direction). @RLRichardson thanks - the goal for now is to define a simple Barcode type without trying to represent the many varied types of barcode system and content that they carry. We could potentially go deeper later in collaboration with GS1 but it is important to start simple. The working assumption so far in this thread is that we should add a basic Barcode example, and that it should also show in the form of a 'text' property, a textual representation of the barcode's contents. It is quite possible that richer knowledge of the barcode type, workflow context etc., would allow the code to map into richer properties (e.g. gtins) than plain text. But to establish a basic structure let's do something with 'text' first. In this context, can we work up a product-oriented example here? I'd like to have a Book example and maybe some kind of packaged food too if possible. |
Fixed in http://schema.org/docs/releases.html#v2.2 - thanks all. Leaving this open as we still need to add an example of Barcode markup. |
Ok, final works then:
|
was this ever used? examples? |
https://schema.org/Barcode exists. |
It would be useful if there were a child type of http://schema.org/ImageObject for barcodes (including QR codes) so that readers of the data can handle them appropriately.
The text was updated successfully, but these errors were encountered: