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

Change Interaction constructor to make rdf_type a keyword arg #119

Closed
tcmitchell opened this issue Mar 18, 2020 · 0 comments · Fixed by #120
Closed

Change Interaction constructor to make rdf_type a keyword arg #119

tcmitchell opened this issue Mar 18, 2020 · 0 comments · Fixed by #120
Assignees
Milestone

Comments

@tcmitchell
Copy link
Collaborator

See #113. Interaction needs this fix. See also SynBioDex/pySBOL#121 for a use case that would fail at least in part due to this error.

>>> import sbol
>>> 
>>> i = sbol.Interaction('foo')
>>> i.rdf_type
rdflib.term.URIRef('foo')
>>> 
>>> i2 = sbol.Interaction(uri='bar')
>>> i2.rdf_type
rdflib.term.URIRef('http://sbols.org/v2#Interaction')
>>> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant