Examples of makeListItem()


Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.makeListItem()

      String urlInchi = URLEncoder.encode(inchi, "UTF-8");
      list.appendChild(doc.makeListItem(doc.makeLink("http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&db=pccompound&term=" +
            URLEncoder.encode("\"" + inchi + "\"[InChI]", "UTF-8"), "Search PubChem by InChI")));       
      if(!cutDown) list.appendChild(doc.makeListItem(doc.makeLink("Search?query=" + urlInchi +
          "&type=inchi&resultsType=snippets", "Search local by InChI")));
      if(!cutDown) list.appendChild(doc.makeListItem(doc.makeLink("Search?query=" + urlInchi +
          "&type=inchi&resultsType=compoundsList", "Search local for co-occuring compounds")));
    }
   
    if(ontIDs != null) {
      String [] oo = ontIDs.split("\\s+");
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.makeListItem()

    if(ontIDs != null) {
      String [] oo = ontIDs.split("\\s+");
      for(int i=0;i<oo.length;i++) {
        String ontID = oo[i];
        String urlOntID = URLEncoder.encode(ontID, "UTF-8");
        list.appendChild(doc.makeListItem("Ontology ID: " + ontID));
        String def = OBOOntology.getInstance().getDefinitionForID(ontID);
        if(def != null) {
          list.appendChild(doc.makeListItem(def));
        }
       
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.makeListItem()

        String ontID = oo[i];
        String urlOntID = URLEncoder.encode(ontID, "UTF-8");
        list.appendChild(doc.makeListItem("Ontology ID: " + ontID));
        String def = OBOOntology.getInstance().getDefinitionForID(ontID);
        if(def != null) {
          list.appendChild(doc.makeListItem(def));
        }
       
        if (ontID.startsWith("PID")) {
         
          String pid = ontID.substring(4, ontID.length());
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.makeListItem()

         
          String pid = ontID.substring(4, ontID.length());
          String lastDigit = pid.substring(pid.length()-1, pid.length());
          String penultimateDigit = pid.substring(pid.length()-2, pid.length()-1);
         
          list.appendChild(doc.makeListItem(doc.makeLink("http://wwmm.ch.cam.ac.uk/polymers/polyinfo/" +
              penultimateDigit + "/" + lastDigit + "/" + pid + "/" + pid + ".html", "Get polymer data for " + ontID)));
         
        }
       
       
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.makeListItem()

        }
       
       
        else {

          list.appendChild(doc.makeListItem(doc.makeLink("http://www.ebi.ac.uk/ontology-lookup/browse.do?termId=" +
            urlOntID, "Look up " + ontID + " using EBI Ontology Lookup Service")));
        }
      }
    }
   
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.makeListItem()

      File [] dirs = new File(Oscar3Props.getInstance().workspace, "corpora").listFiles();
      for(int i=0;i<dirs.length;i++) {
        String name = dirs[i].getName();
        if(dirs[i].isDirectory() && !name.startsWith("."))  {
          Element a = doc.makeLink("Search?setcorpus=" + URLEncoder.encode(name, "UTF-8"), name);
          list.appendChild(doc.makeListItem(a));
        }
      }

      Element a = doc.makeLink("Search?settoscrap", "ScrapBook");
      list.appendChild(doc.makeListItem(a));
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.makeListItem()

          list.appendChild(doc.makeListItem(a));
        }
      }

      Element a = doc.makeLink("Search?settoscrap", "ScrapBook");
      list.appendChild(doc.makeListItem(a));

      a = doc.makeLink("Search?indexall", "Index entire workspace");
      list.appendChild(doc.makeListItem(a));

      doc.addServerProcessingInstructions();
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.makeListItem()

      Element a = doc.makeLink("Search?settoscrap", "ScrapBook");
      list.appendChild(doc.makeListItem(a));

      a = doc.makeLink("Search?indexall", "Index entire workspace");
      list.appendChild(doc.makeListItem(a));

      doc.addServerProcessingInstructions();
      response.setContentType("application/xml");
      new Serializer(response.getOutputStream()).write(doc);
      return;
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.makeListItem()

      File [] dirs = new File(Oscar3Props.getInstance().workspace, "corpora").listFiles();
      for(int i=0;i<dirs.length;i++) {
        String name = dirs[i].getName();
        if(dirs[i].isDirectory() && !name.startsWith("."))  {
          Element a = doc.makeLink("TermSimilarity?setcorpus=" + URLEncoder.encode(name, "UTF-8"), name);
          list.appendChild(doc.makeListItem(a));
        }
      }

      //Element a = doc.makeLink("Search?settoscrap", "ScrapBook");
      //list.appendChild(doc.makeListItem(a));
View Full Code Here

Examples of uk.ac.cam.ch.wwmm.ptclib.scixml.SciXMLDocument.makeListItem()

   
    Element list = doc.addList();
   
    for(String k : keys) {
      //System.out.printf("%s: %d\n", k, counts.get(k));
      Element li = doc.makeListItem();
      list.appendChild(li);
      if(countsPerInChI.containsKey(k)) {
        String s = "";
        int tot = 0;
        for(String kk : countsPerInChI.get(k).keySet()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.