Examples of align()


Examples of edu.isi.karma.modeling.alignment.Alignment.align()

    } else {
    // Replace the current alignment with the old alignment
      alignment = initialAlignment;
      alignment.setGraph(initialGraph);
      if(!this.isExecutedInBatch())
        alignment.align();
      AlignmentManager.Instance().addAlignmentToMap(alignmentId, alignment);
    }

    steinerNodes = alignment.computeSteinerNodes();
    ModelLearner modelLearner = null;
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

//    }

    alignment = initialAlignment;
    alignment.setGraph(initialGraph);
    if(!this.isExecutedInBatch())
      alignment.align();
    AlignmentManager.Instance().addAlignmentToMap(alignmentId, alignment);
   

    try {
      // Save the semantic types in the input parameter JSON
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

        .getGraph().clone();

    try {
      alignment.addForcedInternalNode(new Label(nodeUri));
      if(!this.isExecutedInBatch())
        alignment.align();
     
    } catch (JSONException e) {
      logger.error("Error adding Internal Node:" , e);
    }
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

    try {
      deleteLinks(worksheet, alignment);
      addNewLinks(alignment, ontMgr);
     
      if(!this.isExecutedInBatch())
        alignment.align();

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

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

    columnNode.setUserSelectedSemanticType(newType);

    // Update the alignment
    if(!this.isExecutedInBatch())
      alignment.align();


    UpdateContainer c = new UpdateContainer();

    // Save the old SemanticType object and CRF Model for undo
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

      // Remove the source node
//      alignment.removeNode(domainNodeId);
     
    }
    if(!this.isExecutedInBatch())
      alignment.align();
   
    // Get the column name
    HNodePath currentPath = null;
    List<HNodePath> columnPaths = worksheet.getHeaders().getAllPaths();
    for (HNodePath path : columnPaths) {
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

    }
   
    // Change the status of the user selected edge
    alignment.changeLinkStatus(edgeId, LinkStatus.ForcedByUser);
    if(!this.isExecutedInBatch())
      alignment.align();
   
    return getAlignmentUpdateContainer(alignment, worksheet, workspace);
  }

  @Override
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

      } else {
        alignment.updateLiteralNode(nodeId, literalValue, literalType, isUri);
      }
     
      if(!this.isExecutedInBatch())
        alignment.align();
     
    } catch (Exception e) {
      logger.error("Error adding Literal Node:" , e);
      uc.add(new ErrorUpdate("Error adding Literal Node"));
      return uc;
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

      } else {
        // User-defined: do nothing
      }
    }
    if(!this.isExecutedInBatch())
      alignment.align();
   
    try {
      // Save the semantic types in the input parameter JSON
      saveSemanticTypesInformation(worksheet, workspace, worksheet.getSemanticTypes().getListOfTypes());
     
View Full Code Here

Examples of edu.isi.karma.modeling.alignment.Alignment.align()

        uc.append(update);
    }
   
    Alignment alignment = AlignmentManager.Instance().getAlignment(workspace.getId(), worksheetId);
    if(alignment != null)
      alignment.align();
   
    return uc;
  }

  private UpdateContainer executeCommand(JSONObject commObject, boolean saveToHistory)
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.