-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create stub methods for Python-native conversion between SBOL3 and SBOL2
- Loading branch information
Showing
2 changed files
with
38 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import sbol3 | ||
import sbol2 | ||
|
||
|
||
class SBOL2SBOL3Converter: | ||
@staticmethod | ||
def convert3to2(doc3: sbol3.Document) -> sbol2.Document: | ||
"""Convert an SBOL3 document to an SBOL2 document | ||
:param doc3: SBOL3 document to convert | ||
:returns: SBOL2 document | ||
""" | ||
doc2 = sbol2.Document() | ||
# TODO: build converter here | ||
return doc2 | ||
|
||
@staticmethod | ||
def convert2to3(doc2: sbol2.Document) -> sbol3.Document: | ||
"""Convert an SBOL2 document to an SBOL3 document | ||
:param doc2: SBOL2 document to convert | ||
:returns: SBOL3 document | ||
""" | ||
doc3 = sbol3.Document() | ||
# TODO: build converter here | ||
return doc3 |