Package edu.isi.karma.controller.update

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


    } catch (JSONException e) {
      e.printStackTrace();
      return new UpdateContainer(new ErrorUpdate("Malformed properties object received"));
    }
   
    return new UpdateContainer(new InfoUpdate("Properties set successfully"));
  }
View Full Code Here


      cmd.setColumnName(hnode.getColumnName()+" Extractions");
      cmd.doIt(workspace);

      newHNodeId = cmd.getNewHNodeId();
     
      UpdateContainer c = new UpdateContainer(new InfoUpdate("Extracted Entities"));
      c.append(WorksheetUpdateFactory
          .createRegenerateWorksheetUpdates(worksheetId, getSuperSelection(worksheet)));
      c.append(computeAlignmentAndSemanticTypesAndCreateUpdates(workspace));
      //c.append(new InfoUpdate("Extracted Entities"));
      return c;
View Full Code Here

      histExecutor.executeAllCommands(historyJson);
     
      // Add worksheet updates that could have resulted out of the transformation commands
      UpdateContainer c = WorksheetUpdateFactory.createRegenerateWorksheetUpdates(worksheetId, SuperSelectionManager.DEFAULT_SELECTION);
      c.append(computeAlignmentAndSemanticTypesAndCreateUpdates(workspace));
      c.add(new InfoUpdate("Model successfully applied!"));
      return c;
     
    } catch (Exception e) {
      logger.error("Error applying model from triple store!", e);
      return new UpdateContainer(new ErrorUpdate("Error applying model from triple store!"));
View Full Code Here

      ServletContextParameterMap.setParameterValue(ContextParameter.USER_DIRECTORY_PATH, directory);
      Preferences preferences = Preferences.userRoot().node("WebKarma");
      preferences.put("KARMA_USER_HOME", directory);
     
     
      uc.add(new InfoUpdate("Successfully changed Karma Home Directory"));
      uc.add(new AbstractUpdate() {
 
        @Override
        public void generateJson(String prefix, PrintWriter pw,
            VWorkspace vWorkspace) {
View Full Code Here

      }
      RamblerTransformationOutput rtf = applyRamblerTransformation(rows,dpp,msg);
      if (rtf.getTransformations().keySet().size() <= 0) {
        c.append(WorksheetUpdateFactory
            .createRegenerateWorksheetUpdates(worksheetId, getSuperSelection(workspace)));
        c.add(new InfoUpdate("No Result Submitted"));
        return c;
      }


      ValueCollection rvco = getValueCollectionFromRamblerTranformationOutput(rtf);
     
      findNewHNodeIdAndHNodeAsDerived(workspace, selectedPath);
      // create edit multiple cells command
      createAndExecuteMultiCellCmd(workspace, selectedPath, rvco);
    } catch (Exception e) {
      logger.error("Unable to complete processing of cleaning command", e);
      c.add(new ErrorUpdate(
          "Unable to complete processing of cleaning command"));
      // TODO do we need to clean up?
    }

    if (selectedPath != null) {
      c.append(WorksheetUpdateFactory
          .createRegenerateWorksheetUpdates(worksheetId, getSuperSelection(workspace)));
      /** Add the alignment update **/
      c.append(computeAlignmentAndSemanticTypesAndCreateUpdates(
          workspace, selectedPath));
    }

    c.add(new InfoUpdate("Column transformation complete"));
    return c;
  }
View Full Code Here

    }
   
    // Add worksheet updates that could have resulted out of the transformation commands
    UpdateContainer c = WorksheetUpdateFactory.createRegenerateWorksheetUpdates(worksheetId, SuperSelectionManager.DEFAULT_SELECTION);
    c.append(computeAlignmentAndSemanticTypesAndCreateUpdates(workspace));
    c.add(new InfoUpdate("History successfully applied!"));
    return c;
  }
View Full Code Here

    c.append(WorksheetUpdateFactory.createRegenerateWorksheetUpdates(worksheetId, getSuperSelection(worksheet)));
   
    /** Add the alignment update **/
    c.append(computeAlignmentAndSemanticTypesAndCreateUpdates(workspace, workspace.getFactory().getHNode(newHNodeId).getHNodePath(workspace.getFactory())));
   
    c.add(new InfoUpdate("Transformation complete"));
    return c;
  }
View Full Code Here

        }
      });
   
   
   
    c.add(new InfoUpdate("Reset complete"));
    return c;
  }
View Full Code Here

    } catch (Exception e) {
      String msg = "Error occured while applying history!";
      logger.error(msg, e);
      return new UpdateContainer(new ErrorUpdate(msg));
    }
    c.add(new InfoUpdate("Model successfully applied!"));
    c.add(new AbstractUpdate() {

      @Override
      public void generateJson(String prefix, PrintWriter pw,
          VWorkspace vWorkspace) {
View Full Code Here

    WorksheetR2RMLJenaModelParser parser = new WorksheetR2RMLJenaModelParser(id);
    KR2RMLMapping mapping = parser.parse();
    KR2RMLVersion version = mapping.getVersion();
    if(version.compareTo(KR2RMLVersion.current) < 0)
    {
      uc.add(new InfoUpdate("Model version is " + version.toString() + ".  Current version is " + KR2RMLVersion.current.toString() + ".  Please publish it again."));
    }
    return mapping.getWorksheetHistory();

  }
View Full Code Here

TOP

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

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.