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

Is the MESH ID expansion in the example correct? #9

Open
cmungall opened this issue Apr 20, 2018 · 3 comments
Open

Is the MESH ID expansion in the example correct? #9

cmungall opened this issue Apr 20, 2018 · 3 comments

Comments

@cmungall
Copy link
Member

{
  "@context": {
    "drugbank" : "http://identifiers.org/drugbank/",
    "mesh"     : "http://identifiers.org/mesh/",
    "schema"   : "http://schema.org/",
    "object"   : "schema:object",
    "ChemicalName" : {
      "@type" : "schema:name",
      "@id"   : "schema:name"
    },
    "ChemicalID"     : {
      "@type" : "mesh:",
      "@id"   : "mesh:"
    },

the data looks like this:

(0.017ferrocene)amylose,MESH:C089250,,,MESH:D000688|MESH:D005296,D01.490.200/C089250|D02.691.550.200/C089250|D09.301.915.361/C089250|D09.698.365.855.361/C089250,D01.490.200|D02.691.550.200|D09.301.915.361|D09.698.365.855.361,(0.017 ferrocene)amylose,

Expansion from values in a CSV is not covered in the JSON-LD spec but I understand the intention to be to treat the value like it's a string in a JSON doc

in which case shouldn't the context say

   "MESH"     : "http://identifiers.org/mesh/",

Which will make col2 expand to

http://identifiers.org/mesh/MESH:C089250

@balhoff
Copy link
Member

balhoff commented Apr 20, 2018

MeSH themselves provide an expansion of http://id.nlm.nih.gov/mesh/, eg. https://id.nlm.nih.gov/mesh/C089250

@cmungall
Copy link
Member Author

But either way, the prefix in the context file must be capitalized to match the prefix in the data file?

@balhoff
Copy link
Member

balhoff commented Apr 21, 2018

Ah yes, sorry, that is true. Getting distracted.

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

No branches or pull requests

2 participants