Examples of SemanticTypesUpdate


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

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

        }
        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

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

  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

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