Package edu.isi.karma.controller.update

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


    // Update with old alignment
    String alignmentId = AlignmentManager.Instance().constructAlignmentId(workspace.getId(), worksheetId);
    AlignmentManager.Instance().addAlignmentToMap(alignmentId, oldAlignment);
    oldAlignment.setGraph(oldGraph);
    try {
      c.add(new SemanticTypesUpdate(worksheet, worksheetId, oldAlignment));
      c.add(new AlignmentSVGVisualizationUpdate(worksheetId, oldAlignment));
    } catch (Exception e) {
      logger.error("Error occured during undo of unassigning the semantic type!", e);
      return new UpdateContainer(new ErrorUpdate("Error occured during undo of unassigning the semantic type!"));
    }
View Full Code Here


        }
        case "semanticTypes":
        {
          Alignment alignment = AlignmentManager.Instance().getAlignmentOrCreateIt(
              workspace.getId(), worksheetId, workspace.getOntologyManager());
          uc.add(new SemanticTypesUpdate(workspace.getWorksheet(worksheetId), worksheetId, alignment));
          break;
        }
        case "regenerate":
          uc.add(new RegenerateWorksheetUpdate(worksheetId));
          break;
View Full Code Here

  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

    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

TOP

Related Classes of edu.isi.karma.controller.update.SemanticTypesUpdate

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.