Examples of SemanticTypesUpdate


Examples of edu.isi.karma.controller.update.SemanticTypesUpdate

   
    if(trainAndShowUpdates) {
      new SemanticTypeUtil().trainOnColumn(workspace, worksheet, newType, selection);
    }
   
    c.add(new SemanticTypesUpdate(worksheet, worksheetId, alignment));
    c.add(new AlignmentSVGVisualizationUpdate(worksheetId,
        alignment));     
    return c;
  }
View Full Code Here

Examples of edu.isi.karma.controller.update.SemanticTypesUpdate

//    GraphUtil.printGraph(oldAlignment.getGraph());
//    GraphUtil.printGraph(oldAlignment.getSteinerTree());
   
    // Get the alignment update if any
    try {
      c.add(new SemanticTypesUpdate(worksheet, worksheetId, oldAlignment));
      c.add(new AlignmentSVGVisualizationUpdate(worksheetId, oldAlignment));
    } catch (Exception e) {
      logger.error("Error occured while unsetting the semantic type!", e);
      return new UpdateContainer(new ErrorUpdate(
          "Error occured while unsetting the semantic type!"));
View Full Code Here

Examples of edu.isi.karma.controller.update.SemanticTypesUpdate

    AlignmentManager.Instance().addAlignmentToMap(alignmentId, alignment);
    UpdateContainer c = new UpdateContainer();
    try {
      // Add the visualization update
      c.append(WorksheetUpdateFactory.createRegenerateWorksheetUpdates(worksheetId, getSuperSelection(workspace)));
      c.add(new SemanticTypesUpdate(wk, worksheetId, alignment));
      c.add(new AlignmentSVGVisualizationUpdate(worksheetId, alignment));
    } catch (Exception e) {
      logger.error("Error occured while populating the worksheet with service data!", e);
      return new UpdateContainer(new ErrorUpdate(
          "Error occured while populating the worksheet with service data!"));
View Full Code Here

Examples of edu.isi.karma.controller.update.SemanticTypesUpdate

      // Add the visualization update
      workspace.getFactory().replaceWorksheet(worksheetId, worksheetBeforeInvocation);
      c.add(new ReplaceWorksheetUpdate(worksheetId, worksheetBeforeInvocation));
      c.add(new AlignmentSVGVisualizationUpdate(worksheetId, alignment));
      c.append(WorksheetUpdateFactory.createRegenerateWorksheetUpdates(worksheetId, getSuperSelection(workspace)));
      c.add(new SemanticTypesUpdate(wk, worksheetId, alignment));
    } catch (Exception e) {
      logger.error("Error occured while populating the worksheet with service data!", e);
      return new UpdateContainer(new ErrorUpdate(
          "Error occured while populating the worksheet with service data!"));
    }
View Full Code Here

Examples of edu.isi.karma.controller.update.SemanticTypesUpdate

    try {
      // Save the semantic types in the input parameter JSON
      saveSemanticTypesInformation(worksheet, workspace, worksheet.getSemanticTypes().getListOfTypes());
     
      // Add the visualization update
      c.add(new SemanticTypesUpdate(worksheet, worksheetId, alignment));
      c.add(new AlignmentSVGVisualizationUpdate(
          worksheetId, alignment));

    } catch (Exception e) {
      logger.error("Error occured while generating the model Reason:.", e);
View Full Code Here

Examples of edu.isi.karma.controller.update.SemanticTypesUpdate

    try {
      // Save the semantic types in the input parameter JSON
      saveSemanticTypesInformation(worksheet, workspace, worksheet.getSemanticTypes().getListOfTypes());
     
      // Add the visualization update
      c.add(new SemanticTypesUpdate(worksheet, worksheetId, alignment));
      c.add(new AlignmentSVGVisualizationUpdate(
          worksheetId, alignment));
    } catch (Exception e) {
      logger.error("Error occured while generating the model Reason:.", e);
      return new UpdateContainer(new ErrorUpdate(
View Full Code Here

Examples of edu.isi.karma.controller.update.SemanticTypesUpdate

  // TODO this is in worksheetcommand
  private UpdateContainer getAlignmentUpdateContainer(Alignment alignment,
      Worksheet worksheet, Workspace workspace) {
    // Add the visualization update
    UpdateContainer c = new UpdateContainer();
    c.add(new SemanticTypesUpdate(worksheet, worksheetId, alignment));
    c.add(new AlignmentSVGVisualizationUpdate(worksheetId, alignment));
    return c;
  }
View Full Code Here

Examples of edu.isi.karma.controller.update.SemanticTypesUpdate

    if (trainAndShowUpdates) {
      new SemanticTypeUtil().trainOnColumn(workspace, worksheet, newType, selection);
    }
   
    c.add(new SemanticTypesUpdate(worksheet, worksheetId, alignment));
    c.add(new AlignmentSVGVisualizationUpdate(worksheetId,
        alignment));
    return c;
  }
View Full Code Here

Examples of edu.isi.karma.controller.update.SemanticTypesUpdate

    AlignmentManager.Instance()
        .addAlignmentToMap(alignmentId, oldAlignment);
    oldAlignment.setGraph(oldGraph);
    // Get the alignment update if any
    try {
      c.add(new SemanticTypesUpdate(worksheet, worksheetId, oldAlignment));
      c.add(new AlignmentSVGVisualizationUpdate(worksheetId, oldAlignment));
    } catch (Exception e) {
      logger.error("Error occured while unsetting the semantic type!", e);
      return new UpdateContainer(new ErrorUpdate(
          "Error occured while unsetting the semantic type!"));
View Full Code Here

Examples of edu.isi.karma.controller.update.SemanticTypesUpdate

        .removeNodeIds(nodeIds);

    // Update the container
    UpdateContainer c = new UpdateContainer();
   
    c.add(new SemanticTypesUpdate(worksheet, worksheetId, alignment));
    // Add the alignment update
    try {
      c.add(new AlignmentSVGVisualizationUpdate(worksheetId, alignment));
    } catch (Exception e) {
      logger.error("Error occured while unassigning the semantic type!",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.