use of org.vcell.pathway.persistence.PathwayProducerBiopax3 in project vcell by virtualcell.
the class Xmlproducer method getXML.
private Element getXML(PathwayModel pathwayModel, RDFXMLContext context) {
Element pathwayElement = new Element(XMLTags.PathwayModelTag);
String biopaxVersion = "3.0";
// create root element of rdf for BioPAX level 3
Namespace rdf = Namespace.getNamespace("rdf", DefaultNameSpaces.RDF.uri);
Element rootElement = new Element("RDF", rdf);
rootElement.setAttribute("version", biopaxVersion);
// get element from producer and add it to root element
PathwayProducerBiopax3 xmlProducer = new PathwayProducerBiopax3(context);
// here is work done
xmlProducer.getXML(pathwayModel, rootElement);
pathwayElement.addContent(rootElement);
return pathwayElement;
}
Aggregations