Package edu.isi.karma.controller.update

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


    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);
      return new UpdateContainer(new ErrorUpdate("Error occured while unassigning the semantic type!"));
    }
    c.add(new TagsUpdate());
View Full Code Here


    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!"));
    }
    return c;
View Full Code Here

                break;
        case "alignment":
        {
          Alignment alignment = AlignmentManager.Instance().getAlignmentOrCreateIt(
              workspace.getId(), worksheetId, workspace.getOntologyManager());
          uc.add(new AlignmentSVGVisualizationUpdate(worksheetId, alignment));
          break;
        }
        case "semanticTypes":
        {
          Alignment alignment = AlignmentManager.Instance().getAlignmentOrCreateIt(
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

        hc.removeUpdateByClass(AlignmentSVGVisualizationUpdate.class);
        c.append(hc);
      }
      alignment = alignMgr.getAlignment(workspace.getId(), worksheetId);
      if(alignment != null)
        c.add(new AlignmentSVGVisualizationUpdate(worksheetId, alignment));
    } catch (Exception e) {
      String msg = "Error occured while applying history!";
      logger.error(msg, e);
      return new UpdateContainer(new ErrorUpdate(msg));
    }
View Full Code Here

      // 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(
          "Error occured while generating the model for the source."));
View Full Code Here

TOP

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

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.