Search in sources :

Example 1 with PathwayProducerBiopax3

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;
}
Also used : Element(org.jdom.Element) PathwayProducerBiopax3(org.vcell.pathway.persistence.PathwayProducerBiopax3) Namespace(org.jdom.Namespace)

Aggregations

Element (org.jdom.Element)1 Namespace (org.jdom.Namespace)1 PathwayProducerBiopax3 (org.vcell.pathway.persistence.PathwayProducerBiopax3)1