Package edu.isi.karma.modeling.alignment

Examples of edu.isi.karma.modeling.alignment.GraphBuilderTopK


  private GraphBuilder cloneGraphBuilder(GraphBuilder graphBuilder) {

    GraphBuilder clonedGraphBuilder = null;
    if (graphBuilder == null || graphBuilder.getGraph() == null) {
      clonedGraphBuilder = new GraphBuilderTopK(this.ontologyManager, false);
    } else {
      clonedGraphBuilder = new GraphBuilderTopK(this.ontologyManager, graphBuilder.getGraph());
    }
    return clonedGraphBuilder;
  }
View Full Code Here


    } else {
      logger.info("loading the alignment graph ...");
      DirectedWeightedMultigraph<Node, DefaultLink> graph =
          GraphUtil.importJson(getGraphJsonName());
      if (type == ModelLearningGraphType.Compact)
        this.graphBuilder = new GraphBuilderTopK(ontologyManager, graph);
      else
        this.graphBuilder = new GraphBuilder(ontologyManager, graph);
      this.nodeIdFactory = this.graphBuilder.getNodeIdFactory();
      logger.info("loading is done!");
    }
View Full Code Here

  }
 
  protected ModelLearningGraph(OntologyManager ontologyManager, boolean emptyInstance, ModelLearningGraphType type) {
    this.ontologyManager = ontologyManager;
    if (type == ModelLearningGraphType.Compact)
      this.graphBuilder = new GraphBuilderTopK(ontologyManager, false);
    else
      this.graphBuilder = new GraphBuilder(ontologyManager, false);
    this.nodeIdFactory = this.graphBuilder.getNodeIdFactory();
    this.lastUpdateTime = System.currentTimeMillis();
  }
View Full Code Here

  public GraphBuilder getGraphBuilderClone() {
    GraphBuilder clonedGraphBuilder = null;
    if (this instanceof ModelLearningGraphSparse) {
      clonedGraphBuilder = new GraphBuilder(this.ontologyManager, this.getGraphBuilder().getGraph());
    } else if (this instanceof ModelLearningGraphCompact) {
      clonedGraphBuilder = new GraphBuilderTopK(this.ontologyManager, this.getGraphBuilder().getGraph());
    }
    return clonedGraphBuilder;
  }
View Full Code Here

    logger.info("initializing the graph from models in the json repository ...");
   
    if (this instanceof ModelLearningGraphSparse)
      this.graphBuilder = new GraphBuilder(ontologyManager, false);
    else
      this.graphBuilder = new GraphBuilderTopK(ontologyManager, false);
    this.nodeIdFactory = new NodeIdFactory();
   
    Set<InternalNode> addedNodes = new HashSet<InternalNode>();
    Set<InternalNode> temp;
    File ff = new File(ServletContextParameterMap.getParameterValue(ContextParameter.JSON_MODELS_DIR));
View Full Code Here

  private GraphBuilder cloneGraphBuilder(GraphBuilder graphBuilder) {

    GraphBuilder clonedGraphBuilder = null;
    if (graphBuilder == null || graphBuilder.getGraph() == null) {
      clonedGraphBuilder = new GraphBuilderTopK(this.ontologyManager, false);
    } else {
      clonedGraphBuilder = new GraphBuilderTopK(this.ontologyManager, graphBuilder.getGraph());
    }
    return clonedGraphBuilder;
  }
View Full Code Here

        if (new File(graphName).exists()) {
          // read graph from file
          try {
            logger.info("loading the graph ...");
            DirectedWeightedMultigraph<Node, DefaultLink> graph = GraphUtil.importJson(graphName);
            modelLearner.graphBuilder = new GraphBuilderTopK(ontologyManager, graph);
            modelLearner.nodeIdFactory = modelLearner.graphBuilder.getNodeIdFactory();
          } catch (Exception e) {
            e.printStackTrace();
          }
        } else
View Full Code Here

TOP

Related Classes of edu.isi.karma.modeling.alignment.GraphBuilderTopK

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.