Closed schristley closed 5 months ago
I haven't seen any followup that suggests this is becoming commonly used, or supported by more tools, etc. We could define our own convention within x-airr
or use something like LinkML where you can specify what it points to (the range) and the cardinality of the relation.
Closing as I don't think we should consider this further.
I've been working with a fork of the encoded project which uses JSON schema to describes it's objects yet also stores them in an SQL database. They utilize a
linkTo
property to specify 1-to-1 and 1-to-many relationships among their objects. I initially thought this was part of JSON-LD but I've not really been able to find any description oflinkTo
in the spec, the best I can find is this description in the encoded paper.For example, the biospecimen schema has a
linkTo
to a patient like this:This seems like a simple technique that we could utilize to explicitly describe the relationships in the AIRR Data Model. One criticism I have though is that it doesn't specify the identifier(s) for the linkage.