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

JSON-LD: incorrect capitalisation of InChIKey property #318

Open
sneumann opened this issue Nov 9, 2021 · 0 comments
Open

JSON-LD: incorrect capitalisation of InChIKey property #318

sneumann opened this issue Nov 9, 2021 · 0 comments
Labels

Comments

@sneumann
Copy link
Member

sneumann commented Nov 9, 2021

Hi, another report came in from @AlasdairGray (keep it flowing !)

We’ve found that you have not used the correct character sequence for the InChIKey property. Your markup has inchikey while the Schema.org property is inChIKey. Strangely the Schema.org validator does not create an error message for this. I’ve raised this with Dan Brickley to get his thoughts, but it will certainly raise problems for people trying to consume your markup.

This would be in

if (InChiKey!=null) sb.append("\"inchikey\": \"" + InChiKey + "\",\n");

We're currently moving to create the JSON via a proper JSON library to also handle #316, so the fix should directly go into that.

Yours,
Steffen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant