If we run sbol3.Sequence('foo/bar'), this will create an object with displayID bar, assuming that the foo part is the local component of the URI.
This is a reasonable behavior. However, another reasonable behavior would be to assume the person meant to make a displayID named foo/bar, which is not legal, and to complain.
I think that we want the more permissive (first) behavior, but we should consider it and document the choice one way or another.
If we run
sbol3.Sequence('foo/bar')
, this will create an object with displayIDbar
, assuming that thefoo
part is the local component of the URI.This is a reasonable behavior. However, another reasonable behavior would be to assume the person meant to make a displayID named
foo/bar
, which is not legal, and to complain.I think that we want the more permissive (first) behavior, but we should consider it and document the choice one way or another.