biolink / biolinkml

DEPRECATED: replaced by linkml
https://github.com/linkml/linkml
Creative Commons Zero v1.0 Universal
23 stars 12 forks source link

gen-jsonld generates an incorrect @context #332

Closed cmungall closed 3 years ago

cmungall commented 3 years ago

e.g.

$ gen-jsonld tests/test_issues/input/issue_14.yaml 

makes:

...
  ],
  "metamodel_version": "1.6.1",
  "source_file": "issue_112.yaml",
  "source_file_date": "Tue Sep 15 11:28:56 2020",
  "source_file_size": 142,
  "generation_date": "2021-01-14 13:05",
  "type": "SchemaDefinition",
  "@context": [
    "h",
    "t",
    "t",
    "p",
    "s",
    ":",
    "/",
    "/",
    "w",
    "3",
    "i",
    "d",
    ".",
    "o",
    "r",
    "g",
    "/",
    "b",
    "i",
    "o",
    "l",
    "i",
    "n",
    "k",
    "/",
    "b",
    "i",
    "o",
    "l",
    "i",
    "n",
    "k",
    "m",
    "l",
    "/",
    "c",
    "o",
    "n",
    "t",
    "e",
    "x",
    "t",
    ".",
    "j",
    "s",
    "o",
    "n",
    "l",
    "d",
    "https://w3id.org/biolink/biolinkml/types.context.jsonld",
    {
      "@base": "https://example.com/test112/"
    }
  ]
}
hsolbrig commented 3 years ago

@cmungall -- this should be fixed in v1.7.0, which should now be available. Can I get you to check and close issue if ok?