Skip to content

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

Closed
vickitardif opened this issue Jul 31, 2015 · 24 comments
Closed

New type for barcode images [final task: add an example] #687

vickitardif opened this issue Jul 31, 2015 · 24 comments
Assignees
Labels
schema.org vocab General top level tag for issues on the vocabulary

Comments

@vickitardif
Copy link
Contributor

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.

@vickitardif vickitardif self-assigned this Jul 31, 2015
@vickitardif vickitardif added schema.org vocab General top level tag for issues on the vocabulary type:exact proposal labels Jul 31, 2015
@danbri
Copy link
Contributor

danbri commented Jul 31, 2015

Good idea. Is there any obvious structure here, or just pass it to the barcode tools to figure out?

@vickitardif
Copy link
Contributor Author

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.

@RLRichardson
Copy link

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

@danbri
Copy link
Contributor

danbri commented Jul 31, 2015

(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:

vickitardif added a commit to vickitardif/schemaorg that referenced this issue Sep 11, 2015
vickitardif added a commit to vickitardif/schemaorg that referenced this issue Sep 11, 2015
@vickitardif
Copy link
Contributor Author

I added a new type, but no properties in pull request #766.

@vickitardif vickitardif added this to the sdo-phobos release milestone Sep 11, 2015
vickitardif added a commit to vickitardif/schemaorg that referenced this issue Sep 14, 2015
danbri added a commit that referenced this issue Sep 14, 2015
Issue #687: Added Barcode as a subtype of ImageObject.
@danbri
Copy link
Contributor

danbri commented Sep 14, 2015

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.

@kevinp1
Copy link

kevinp1 commented Sep 15, 2015

This would be useful. +1

@danbri
Copy link
Contributor

danbri commented Sep 15, 2015

@chaals
Copy link
Contributor

chaals commented Sep 15, 2015

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.

@RichardWallis
Copy link
Contributor

Looks good - would a 'associatedCode' Text property be useful to identify
the code the barcode encodes?

~Richard.

On Tue, Sep 15, 2015 at 12:09 PM, chaals notifications@github.com wrote:

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.


Reply to this email directly or view it on GitHub
#687 (comment)
.

@chaals
Copy link
Contributor

chaals commented Sep 15, 2015

I would prefer we recommend using the text property (I think it is on CreativeWork actually) rather than minting a duplicate for this case...

@danbri
Copy link
Contributor

danbri commented Sep 15, 2015

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.

@RichardWallis
Copy link
Contributor

suggest we use http://schema.org/text ("The textual content of this
CreativeWork.") for now for textual serialization of the barcode's content.

+1

Associated example(s) should represent this.

~Richard.

On Tue, Sep 15, 2015 at 1:09 PM, Dan Brickley notifications@github.com
wrote:

Thanks @chaals https://github.com/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 https://github.com/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 https://github.com/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.


Reply to this email directly or view it on GitHub
#687 (comment)
.

@danbri
Copy link
Contributor

danbri commented Sep 15, 2015

@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...

@danbri
Copy link
Contributor

danbri commented Sep 15, 2015

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?)

9 780262 521123 90000

See also

Question for extra points: if we know the creative work, product etc that the barcode codes for, how are they associated? 'about' ?

@mfhepp
Copy link
Contributor

mfhepp commented Sep 15, 2015

We could also simply recommend the use of

http://schema.org/text ("The textual content of this CreativeWork.") 

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
mhepp@computer.org @mfhepp

On 15 Sep 2015, at 14:02, RichardWallis notifications@github.com wrote:

Looks good - would a 'associatedCode' Text property be useful to identify
the code the barcode encodes?

~Richard.

On Tue, Sep 15, 2015 at 12:09 PM, chaals notifications@github.com wrote:

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.


Reply to this email directly or view it on GitHub
#687 (comment)
.


Reply to this email directly or view it on GitHub.

@mfhepp
Copy link
Contributor

mfhepp commented Sep 15, 2015

Oops, this is the risk of commenting via email. You have already agreed upon schema:text ;-)

@danbri
Copy link
Contributor

danbri commented Sep 15, 2015

@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?

@RLRichardson
Copy link

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
1009 Lenox Drive, Suite 202, Lawrenceville, NJ 08648 | T +1 609.620.4526 | M +1 609.610.3806 | E rrichardson@gs1us.orgmailto:rrichardson@gs1us.org | www.GS1US.orghttp://www.gs1us.org/
The Global Language of Business | Making it possible for industries and companies to move their business forward

"The things we consider to be everyday have extraordinary effects on places we’ve never heard of." Kate Davies

@danbri
Copy link
Contributor

danbri commented Sep 15, 2015

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.

@danbri danbri changed the title New type for barcode images New type for barcode images [final task: add an example] Nov 6, 2015
@danbri
Copy link
Contributor

danbri commented Nov 6, 2015

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.

@danbri
Copy link
Contributor

danbri commented Nov 7, 2015

Ok, final works then:

@danbri
Copy link
Contributor

danbri commented Feb 21, 2019

was this ever used? examples?

@vickitardif
Copy link
Contributor Author

https://schema.org/Barcode exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
schema.org vocab General top level tag for issues on the vocabulary
Projects
None yet
Development

No branches or pull requests

7 participants