Examples of load()


Examples of edu.pitt.dbmi.nlp.noble.ontology.IOntology.load()

        setBusy(true);
        (new Thread(new Runnable(){
          public void run(){
            IOntology ont = (IOntology) value;
            try{
              ont.load();
              ont.write(new FileOutputStream(f),IOntology.OWL_FORMAT);
              JOptionPane.showMessageDialog(frame,ont.getName()+" saved as "+f.getAbsolutePath());
            }catch(Exception ex){
              ex.printStackTrace();
              JOptionPane.showMessageDialog(frame,ex.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);             
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.impl.NobleCoderTerminology.load()

      if(name == null){
        name = (new File(obo)).getName();
        if(name.endsWith(".obo"))
          name = name.substring(0,name.length()-4);
      }
      terminology.load(name);
      ConceptImporter.getInstance().addPropertyChangeListener(this);
      ConceptImporter.getInstance().loadOBO(terminology,new File(obo));
      ConceptImporter.getInstance().removePropertyChangeListener(this);
      terminology.save();
    }else if(bioportal != null){
View Full Code Here

Examples of edu.pitt.ontology.IOntology.load()

    // preload ontology
    if(isPreLoad() && sourceRoots.length > 0){
      IOntology ont = sourceRoots[0].getOntology();
      try{
        ont.addPropertyChangeListener(this);
        ont.load();
      }catch(IOntologyException ex){
        System.out.println("Error: Could not load ontology "+ont);
        ex.printStackTrace();
      }
    }
View Full Code Here

Examples of edu.pitt.terminology.client.IndexFinderTerminology.load()

      if(name == null){
        name = (new File(obo)).getName();
        if(name.endsWith(".obo"))
          name = name.substring(0,name.length()-4);
      }
      terminology.load(name);
      ConceptImporter.getInstance().addPropertyChangeListener(this);
      ConceptImporter.getInstance().loadOBO(terminology,new File(obo));
      ConceptImporter.getInstance().removePropertyChangeListener(this);
      terminology.save();
    }else if(bioportal != null){
View Full Code Here

Examples of edu.uci.ics.jung.io.GraphMLFile.load()

    String wholePath = graphDir.getAbsolutePath()+System.getProperty("file.separator");
    GraphMLFile graphmlFile = new GraphMLFile();
    graphmlFile.setGraphMLFileHandler(new ExperimentGraphMLHandler());
    DirectedSparseGraph dg = new DirectedSparseGraph();
    dg.getEdgeConstraints().clear();
    dg = (DirectedSparseGraph)graphmlFile.load(wholePath+args[1]);
    GraphMLVisualiser gmlVis = new GraphMLVisualiser();
    gmlVis.construct(dg);
  }

}
View Full Code Here

Examples of edu.uci.ics.jung.io.PajekNetReader.load()

    public static Graph getGraph() throws IOException
    {
        PajekNetReader pnr = new PajekNetReader(FactoryUtils.instantiateFactory(Object.class));
        Graph g = new UndirectedSparseGraph();
       
        pnr.load("src/main/resources/datasets/simple.net", g);
        return g;
    }
}
View Full Code Here

Examples of edu.ucla.sspace.matrix.MatrixFile.load()

    public Assignments cluster(Matrix matrix,
                               int numClusters,
                               Properties props) {
        MatrixFile affinityMatrix = creator.calculate(matrix);
        return linkCluster.cluster(affinityMatrix.load(), numClusters, props);
    }

    public Assignments cluster(Matrix matrix, Properties props) {
        MatrixFile affinityMatrix = creator.calculate(matrix);
        return linkCluster.cluster(affinityMatrix.load(), props);
View Full Code Here

Examples of engine.parameters.AbstractParam.load()

      String t;
      while (!(t = s.next()).equals("endparameters")) {
        AbstractParam param;
        if ((param = c.getParamByName(t.replace('_', ' '))) != null) {
          param.load(s);
        } else {
          Logger.logWarning(null, " loading of param " + t + " failed.");
        }
      }
      AbstractParam.GLOBAL_SILENT = false;
View Full Code Here

Examples of etc.aloe.cscw2013.WekaModel.load()

        out.close();
        byte[] serializedStr = out.toByteArray();

        ByteArrayInputStream in = new ByteArrayInputStream(serializedStr);
        WekaModel model = new WekaModel();
        assertTrue(model.load(in));
        in.close();

        Classifier classifier = model.getClassifier();
        assertTrue(classifier instanceof J48);
        J48 j48 = (J48) classifier;
View Full Code Here

Examples of etc.aloe.data.FeatureSpecification.load()

        FeatureSpecification spec = new FeatureSpecification();

        try {
            System.out.println("Reading feature spec from " + inputFeatureSpecFile);
            InputStream inputFeatureSpec = new FileInputStream(inputFeatureSpecFile);
            spec.load(inputFeatureSpec);
            inputFeatureSpec.close();
        } catch (FileNotFoundException e) {
            System.err.println("Feature specification file " + inputFeatureSpecFile + " not found.");
            System.exit(1);
        } catch (InvalidObjectException e) {
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.