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

libSBOLj serializes Boolean annotations as strings #565

Open
jakebeal opened this issue Mar 4, 2019 · 2 comments
Open

libSBOLj serializes Boolean annotations as strings #565

jakebeal opened this issue Mar 4, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@jakebeal
Copy link
Contributor

jakebeal commented Mar 4, 2019

While annotations retain their types internally, when you send a Boolean annotation to SynBioHub, it comes back as a string. This appears to be due to an issue in libSBOLj serialization, which is not adding the appropriate rdf:datatype annotations.

For example:
<ns0:stub_object>true</ns0:stub_object>
should instead be:
<ns0:stub_object rdf:datatype="http://www.w3.org/2001/XMLSchema#boolean" >true</ns0:stub_object>

When this is resolved, tests should be added to see if this issue is also afflicting other libraries. Likewise, are there other places in SBOL where Booleans are used?

@cjmyers
Copy link
Contributor

cjmyers commented Mar 4, 2019

I'm not aware of any other booleans in SBOL other than annotations.

@jakebeal
Copy link
Contributor Author

jakebeal commented Mar 4, 2019

I thought we'd used them in a property somewhere, but I just went through and find it nowhere except on annotations, so it looks like that's the only place where this is a problem.

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

2 participants