SynBioDex-archive / libSBOLj

deprecated libSBOL Java library
http://SynBioDex.github.com/libSBOLj
2 stars 0 forks source link

using SBOLutil.toJson or .toRDF should work for any SBOL object #24

Open mgaldzic opened 13 years ago

mgaldzic commented 13 years ago

feeding a null Library like below throws " java.lang.NoClassDefFoundError: org/sbolstandard/libSBOLj/Library" Library could be optional if spec allowed for it. - might require change of spec

Library library = new Library(); DnaComponent dnaComponent; String sbolString; dnaComponent = SBOLutil.readRichSequence(richSequence); library.addComponent(dnaComponent); sbolString = SBOLutil.toJson(library);