Package edu.isi.karma.modeling.alignment

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


          alignment.changeLinkStatus(newLink.getId(),
              LinkStatus.ForcedByUser);
        }
        // Update the alignment
        if(!this.isExecutedInBatch())
          alignment.align();

      } catch (JSONException e) {
        logger.error("JSON Exception occured", e);
      }
    }
View Full Code Here


        .getGraph().clone();

    try {
      alignment.deleteForcedInternalNode(nodeId);
      if(!this.isExecutedInBatch())
        alignment.align();
    } catch (JSONException e) {
      logger.error("Error adding Internal Node:" , e);
    }

    return WorksheetUpdateFactory.createSemanticTypesAndSVGAlignmentUpdates(worksheetId, workspace, alignment);
View Full Code Here

   
    String alignmentId = AlignmentManager.Instance().constructAlignmentId(workspace.getId(), worksheetId);
    Alignment alignment = initialAlignment;
    alignment.setGraph(initialGraph);
    if(!this.isExecutedInBatch())
      alignment.align();
    AlignmentManager.Instance().addAlignmentToMap(alignmentId, alignment);
    try {
      // Add the visualization update
      workspace.getFactory().replaceWorksheet(worksheetId, worksheetBeforeInvocation);
      c.add(new ReplaceWorksheetUpdate(worksheetId, worksheetBeforeInvocation));
View Full Code Here

    } 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

//    }

    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

        .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

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

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

    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

      // 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

    }
   
    // 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

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.