Package org.mcisb.beacon.pierre.model

Examples of org.mcisb.beacon.pierre.model.ExperimentDescription


        inStream.setCharacterStream(new StringReader(queryResults[i]));
        Document queryResult = db.parse(inStream);
        StringBuffer linkText = new StringBuffer();
        linkText.append("http://tdb.mc.manchester.ac.uk/tamino/beacon_XML/experiments/Experiment/@");
        String titleID=getValue(queryResult,"titleID");
        ExperimentDescription newDescription = new ExperimentDescription(titleID);
        StringBuffer person = new StringBuffer();
        person.append(getValue(queryResult,"firstName"));
        person.append(" ");
        if (getValue(queryResult,"midInitials").length()>0){
          person.append(getValue(queryResult,"midInitials"));
          person.append(". ");
        }
        person.append(getValue(queryResult,"lastName"));
        linkText.append(getValue(queryResult,"docID"));
        newDescription.setLink(linkText.toString());
        newDescription.setPerson(person.toString());
        newDescription.setStartDate(getValue(queryResult,"start_date"));
        tuples.add(newDescription);
      }
     
    }catch (Exception e) {
      e.printStackTrace();
View Full Code Here


        inStream.setCharacterStream(new StringReader(queryResults[j]));
        Document queryResult = db.parse(inStream);
        StringBuffer linkText = new StringBuffer();
        linkText.append("http://tdb.mc.manchester.ac.uk/tamino/beacon_XML/experiments/Experiment/@");
        String titleID=databaseOperations.getValue(queryResult,"titleID");
        ExperimentDescription newDescription = new ExperimentDescription(titleID);
        StringBuffer person = new StringBuffer();
        person.append(databaseOperations.getValue(queryResult,"firstName"));
        person.append(" ");
        if (databaseOperations.getValue(queryResult,"midInitials").length()>0){
          person.append(databaseOperations.getValue(queryResult,"midInitials"));
          person.append(". ");
        }
        person.append(databaseOperations.getValue(queryResult,"lastName"));
        linkText.append(databaseOperations.getValue(queryResult,"docID"));
        newDescription.setLink(linkText.toString());
        newDescription.setPerson(person.toString());
        newDescription.setStartDate(databaseOperations.getValue(queryResult,"start_date"));
        tempTuples.add(newDescription.getTuple());
      }

    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.mcisb.beacon.pierre.model.ExperimentDescription

Copyright © 2018 www.massapicom. 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.