Package edu.isi.karma.controller.update

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


      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) {
        JSONObject outputObject = new JSONObject();
View Full Code Here


     
      Node node = workspace.getFactory().getNode(nodeId);
      rdfGen.generateTriplesForCell(node, existingTopRowTriples, node.getHNodeId(),
        predicatesCovered, predicatesFailed, predicatesSuccessful);*/
     
      return new UpdateContainer(new AbstractUpdate() {
        @Override
        public void generateJson(String prefix, PrintWriter pw,
            VWorkspace vWorkspace) {
          JSONObject outputObject = new JSONObject();
         
View Full Code Here

    Alignment alignment = AlignmentManager.Instance().getAlignment(workspace.getId(), worksheetId);
    if (alignment == null || alignment.GetTreeRoot() == null)
      modelExist = false;
    else
      modelExist = true;
    return new UpdateContainer(new AbstractUpdate() {

      @Override
      public void generateJson(String prefix, PrintWriter pw, VWorkspace vWorkspace) {
        JSONObject obj = new JSONObject();
        obj.put("modelExist", modelExist);
View Full Code Here

      }
    }
   
    final Map<String, Label> finalLinksSet = linkList;
   
    UpdateContainer upd = new UpdateContainer(new AbstractUpdate() {
      @Override
      public void generateJson(String prefix, PrintWriter pw,
          VWorkspace vWorkspace) {
        JSONObject obj = new JSONObject();
        JSONArray nodesArray = new JSONArray();
View Full Code Here

    }
   
    logger.debug("Got back " + properties.size() + " results");
    final Set<LabeledLink> finalProperties = properties;
   
    UpdateContainer upd = new UpdateContainer(new AbstractUpdate() {
      @Override
      public void generateJson(String prefix, PrintWriter pw,
          VWorkspace vWorkspace) {
        JSONObject obj = new JSONObject();
        JSONArray resultArray = new JSONArray();
View Full Code Here

  }

  @Override
  public UpdateContainer doIt(Workspace workspace) throws CommandException {
    if(TripleStoreUtil.checkConnection(this.tripleStoreUrl)) {
      return new UpdateContainer(new AbstractUpdate() {
        @Override
        public void generateJson(String prefix, PrintWriter pw, VWorkspace vWorkspace) {
          JSONObject obj = new JSONObject();
          try {
            obj.put(JsonKeys.updateType.name(), "TestSPARQLEndPoint");
            obj.put(JsonKeys.connectionStatus.name(), 1);
            pw.println(obj.toString());
          } catch (JSONException e) {
            logger.error("Error occurred while performing connection test for sparql endpoint!", e);
          }
        }
      });
    }
   
    return new UpdateContainer(new AbstractUpdate() {
      @Override
      public void generateJson(String prefix, PrintWriter pw, VWorkspace vWorkspace) {
        JSONObject obj = new JSONObject();
        try {
          obj.put(JsonKeys.updateType.name(), "TestSPARQLEndPoint");
View Full Code Here

    }
   
    if (!result.containsKey("Error")) {
      logger.info("Returning Update for csv file name");
      uc = new UpdateContainer();
      uc.add(new AbstractUpdate() {
        public void generateJson(String prefix, PrintWriter pw, 
            VWorkspace vWorkspace) {
          JSONObject outputObject = new JSONObject();
          try {
            outputObject.put(JsonKeys.updateType.name(), "ExportCSVUpdate");
View Full Code Here

      this.graphUriTobeValidated += String.valueOf(System.nanoTime());
    }
    final String graphUri = this.graphUriTobeValidated;
    logger.info("GraphUri generated : " + graphUri);
    try {
      return new UpdateContainer(new AbstractUpdate() {
        @Override
        public void generateJson(String prefix, PrintWriter pw, VWorkspace vWorkspace) {
          JSONObject obj = new JSONObject();
          try {
            obj.put(JsonKeys.updateType.name(), "GetUniqueGraphUrl");
View Full Code Here

      return new UpdateContainer(new ErrorUpdate("Error occurred while fetching graphs!"));
    }
    logger.info("Graphs fetched : " + graphs.size());
   
    try {
      return new UpdateContainer(new AbstractUpdate() {
       
        @Override
        public void generateJson(String prefix, PrintWriter pw, VWorkspace vWorkspace) {
          JSONObject obj = new JSONObject();
          try {
View Full Code Here

        logger.error("Error in parsing json response", e2);
      }
     
      logger.info("Total Columns fetched : " + cols.size());
      final HashMap<String,String> columns = cols;
      return new UpdateContainer(new AbstractUpdate() {
       
        @Override
        public void generateJson(String prefix, PrintWriter pw, VWorkspace vWorkspace) {
          JSONObject obj = new JSONObject();
          try {
View Full Code Here

TOP

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

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.