Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid reporting of error sbol-11003 #621

Open
jakebeal opened this issue Sep 10, 2021 · 1 comment
Open

Invalid reporting of error sbol-11003 #621

jakebeal opened this issue Sep 10, 2021 · 1 comment
Labels

Comments

@jakebeal
Copy link
Contributor

I have a valid SBOL2 file for which the converter is reporting errors incorrectly, which I believe indicates an issue in the implementation of libSBOLj's validator.

Specifically, when validating this file (.txt added for GitHub upload): error_example.xml.txt

I get the following error:

sbol-11003: Strong Validation Error:
The sequence property of a Location is OPTIONAL. If present, it MUST contain the URI of a Sequence referenced by the ComponentDefinition containing the Location.
Reference: SBOL Version 2.3.0 Section 7.7.5 on page 36
: https://synbiohub.org/public/igem/pSB1C3/annotation2119048/range2119048

If I read the document in and check, however, I find that this is not the case:

> dx = sbol2.Document()
> dx.read('foo.xml')
> x = dx.find('https://synbiohub.org/public/igem/pSB1C3/annotation2119048/range2119048')
> y = dx.find('https://synbiohub.org/public/igem/pSB1C3')
> x.sequence
'https://synbiohub.org/public/igem/pSB1C3_sequence'
> y.sequences
['https://synbiohub.org/public/igem/pSB1C3_sequence']
> y.sequences[0] == x.sequence
True
@jakebeal jakebeal added the bug label Sep 10, 2021
@jakebeal
Copy link
Contributor Author

Workaround for this bug: remove all sequence references in locations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant