Examples of makeListItem()


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

    if(smiles != null) ne.addAttribute(new Attribute("SMILES", smiles));
    if(inchi != null) ne.addAttribute(new Attribute("InChI", inchi));
    doc.setTitle(ne);
    Element list = doc.addList();
         
    list.appendChild(doc.makeListItem("Name: " + name));
    list.appendChild(doc.makeListItem("Type: " + type));
    if(smiles != null) list.appendChild(doc.makeListItem("SMILES: " + smiles));
    if(inchi != null) list.appendChild(doc.makeListItem("InChI: " + inchi));
   
    if(inchi != null) {
View Full Code Here

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

    if(inchi != null) ne.addAttribute(new Attribute("InChI", inchi));
    doc.setTitle(ne);
    Element list = doc.addList();
         
    list.appendChild(doc.makeListItem("Name: " + name));
    list.appendChild(doc.makeListItem("Type: " + type));
    if(smiles != null) list.appendChild(doc.makeListItem("SMILES: " + smiles));
    if(inchi != null) list.appendChild(doc.makeListItem("InChI: " + inchi));
   
    if(inchi != null) {
      Collection<String> synonyms = ChemNameDictSingleton.getNamesFromInChI(inchi);
View Full Code Here

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

    doc.setTitle(ne);
    Element list = doc.addList();
         
    list.appendChild(doc.makeListItem("Name: " + name));
    list.appendChild(doc.makeListItem("Type: " + type));
    if(smiles != null) list.appendChild(doc.makeListItem("SMILES: " + smiles));
    if(inchi != null) list.appendChild(doc.makeListItem("InChI: " + inchi));
   
    if(inchi != null) {
      Collection<String> synonyms = ChemNameDictSingleton.getNamesFromInChI(inchi);
      if(synonyms != null) {
View Full Code Here

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

    Element list = doc.addList();
         
    list.appendChild(doc.makeListItem("Name: " + name));
    list.appendChild(doc.makeListItem("Type: " + type));
    if(smiles != null) list.appendChild(doc.makeListItem("SMILES: " + smiles));
    if(inchi != null) list.appendChild(doc.makeListItem("InChI: " + inchi));
   
    if(inchi != null) {
      Collection<String> synonyms = ChemNameDictSingleton.getNamesFromInChI(inchi);
      if(synonyms != null) {
        Element li = doc.makeListItem("Synonyms:");
View Full Code Here

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

    if(inchi != null) list.appendChild(doc.makeListItem("InChI: " + inchi));
   
    if(inchi != null) {
      Collection<String> synonyms = ChemNameDictSingleton.getNamesFromInChI(inchi);
      if(synonyms != null) {
        Element li = doc.makeListItem("Synonyms:");
        li.appendChild(doc.makeList(synonyms));
        list.appendChild(li);
      }
    }
   
View Full Code Here

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

    String scrubbedName = name;
    if(scrubbedName.endsWith("s")) scrubbedName = scrubbedName.substring(0, scrubbedName.length()-1);
    scrubbedName = scrubbedName.replaceAll("\u00ad", "");
    String urlName = URLEncoder.encode(scrubbedName, "UTF-8");
   
    list.appendChild(doc.makeListItem(doc.makeLink("http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&amp;db=pccompound&amp;term=" +
        URLEncoder.encode("\"" + scrubbedName + "\"[CSYN]", "UTF-8"), "Search PubChem for " + scrubbedName)));
    //list.appendChild(doc.makeListItem(doc.makeLink("PubChem?name=" + urlName, "Fetch structures for " + scrubbedName + " from PubChem")));
    if(!cutDown) list.appendChild(doc.makeListItem(doc.makeLink("Search?query=" + urlName +
        "&type=word&resultsType=snippets", "Search local by name")));
    if(!cutDown) list.appendChild(doc.makeListItem(doc.makeLink("/ChemNameDict?action=stop&word=" + urlName, "Add " + scrubbedName + " as stopword")));
View Full Code Here

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

    String urlName = URLEncoder.encode(scrubbedName, "UTF-8");
   
    list.appendChild(doc.makeListItem(doc.makeLink("http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&amp;db=pccompound&amp;term=" +
        URLEncoder.encode("\"" + scrubbedName + "\"[CSYN]", "UTF-8"), "Search PubChem for " + scrubbedName)));
    //list.appendChild(doc.makeListItem(doc.makeLink("PubChem?name=" + urlName, "Fetch structures for " + scrubbedName + " from PubChem")));
    if(!cutDown) list.appendChild(doc.makeListItem(doc.makeLink("Search?query=" + urlName +
        "&type=word&resultsType=snippets", "Search local by name")));
    if(!cutDown) list.appendChild(doc.makeListItem(doc.makeLink("/ChemNameDict?action=stop&word=" + urlName, "Add " + scrubbedName + " as stopword")));

    if(inchi != null) {
      String urlInchi = URLEncoder.encode(inchi, "UTF-8");
View Full Code Here

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

    list.appendChild(doc.makeListItem(doc.makeLink("http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&amp;db=pccompound&amp;term=" +
        URLEncoder.encode("\"" + scrubbedName + "\"[CSYN]", "UTF-8"), "Search PubChem for " + scrubbedName)));
    //list.appendChild(doc.makeListItem(doc.makeLink("PubChem?name=" + urlName, "Fetch structures for " + scrubbedName + " from PubChem")));
    if(!cutDown) list.appendChild(doc.makeListItem(doc.makeLink("Search?query=" + urlName +
        "&type=word&resultsType=snippets", "Search local by name")));
    if(!cutDown) list.appendChild(doc.makeListItem(doc.makeLink("/ChemNameDict?action=stop&word=" + urlName, "Add " + scrubbedName + " as stopword")));

    if(inchi != null) {
      String urlInchi = URLEncoder.encode(inchi, "UTF-8");
      list.appendChild(doc.makeListItem(doc.makeLink("http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&amp;db=pccompound&amp;term=" +
            URLEncoder.encode("\"" + inchi + "\"[InChI]", "UTF-8"), "Search PubChem by InChI")));       
View Full Code Here

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

        "&type=word&resultsType=snippets", "Search local by name")));
    if(!cutDown) list.appendChild(doc.makeListItem(doc.makeLink("/ChemNameDict?action=stop&word=" + urlName, "Add " + scrubbedName + " as stopword")));

    if(inchi != null) {
      String urlInchi = URLEncoder.encode(inchi, "UTF-8");
      list.appendChild(doc.makeListItem(doc.makeLink("http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&amp;db=pccompound&amp;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")));
View Full Code Here

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

    if(inchi != null) {
      String urlInchi = URLEncoder.encode(inchi, "UTF-8");
      list.appendChild(doc.makeListItem(doc.makeLink("http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?CMD=search&amp;db=pccompound&amp;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")));
    }
   
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.