Beispiel #1
0
 //	public static URI getTypeBySubpartType(subpart_type type)
 //	{
 //		switch(type)
 //		{
 //			case Terminator:return SequenceOntology.TERMINATOR;
 //			case Primers:return SequenceOntology.PRIMER_BINDING_SITE;
 //		}
 //		return SequenceOntology.CDS;
 //	}
 public xmlToSbol(String xml, String sbol) throws IOException {
   SBOLDocument document = createDocument(xml);
   System.out.println(
       "Created a new SBOL document with " + document.getContents().size() + " element(s)");
   FileOutputStream fileoutStream = new FileOutputStream(sbol);
   SBOLFactory.write(document, fileoutStream);
   fileoutStream.close();
 }
Beispiel #2
0
 @Override
 public void visit(SBOLDocument doc) {
   super.visit(doc);
   removeDuplicates(doc.getContents());
 }