intbio-ncl / shortbol

ShortBOL - A abstract language implementing the SBOL Data Model.
3 stars 1 forks source link

List expression type #6

Open MattyCrowther opened 4 years ago

MattyCrowther commented 4 years ago

From Lewis Grozinger: ShortBOL2 needs a list expression type so that multiple value property expressions can be implemented.

This is so that templates for things like SBOL2 ComponentDefinitions can have many sequence properties.

MattyCrowther commented 4 years ago

Recently became an issue, Some examples of where this is needed: Interactions that have arbitrary length of participation objects. SequenceAnnotation that contains 2 or more Locations in a sequence.

MattyCrowther commented 4 years ago

Need to think that if lists are implemented how would this affect the Template libaries. Would we need to add some sort of iterator? Idea of **kwargs could be an idea.

MattyCrowther commented 4 years ago

code to Reproduce problem:

nonCovalentBonding(cas9_generic, gRNA_generic)

This interaction requires three participants. It is not feasible or correct to create a template for every possible length of interaction. Also, how do we know what componentDefinition pertains to which participant (different types of participants in the same interaction).

MattyCrowther commented 4 years ago

Note for self: During Experiment template one or more ExperimentalData objects are required so when this feature is implemented fix this.

Essentially any class that REQUIRES ONE or more references to anything would suffer from this language limitation.