-
|
Hi @dwinston, I'm sending this as a GitHub Discussion with the following quote in mind (from the office hours invite):
I took that to mean you generally prefer Q&A stuff like this happen on GitHub as opposed to Slack. I have a question about this code snippet in the if coll_name == "@type" and coll_docs in ("Database", "nmdc:Database"):
continueWhat is I see there are a couple reference to def test_metadata_validate_json_with_type_attribute(api_site_client):
rv = api_site_client.request(
"POST",
"/metadata/json:validate",
{"study_set": [], "@type": "Database"},
)
assert rv.json()["result"] != "errors"
rv = api_site_client.request(
"POST",
"/metadata/json:validate",
{"study_set": [], "@type": "nmdc:Database"},
)
assert rv.json()["result"] != "errors" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
|
Beta Was this translation helpful? Give feedback.
@typeis a special key for JSON-LD, used for JSON serialization of e.g. LinkML objects. That is, the value of@typelets a client know that the JSON object (adictin Python) should be interpreted as a https://w3id.org/nmdc/Database.