Examples of removeProperties()


Examples of com.hp.hpl.jena.rdf.model.Resource.removeProperties()

        if (action.equals("deleteDefault")) {
          ResIterator defaultIter = model.listSubjectsWithProperty(
              RDF.type, HOSTCANONICALIZER.DefaultCanonicalizer);
          Resource resource = defaultIter.nextResource();
          defaultIter.close();
          resource.removeProperties();
        } else {
          if (action.equals("registerDefault")) {

            Resource participant = model
                .createResource(HOSTCANONICALIZER.DefaultCanonicalizer);
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Resource.removeProperties()

            otherStmtPointsToThisObject = true;
          }
        }
        statementsWithThisObject.close();
        if (!otherStmtPointsToThisObject) {
          object.removeProperties();
        }
      }
    }
    requiresIter.close();
    for (Iterator iter = removingStmts.iterator(); iter.hasNext();) {
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Resource.removeProperties()

        if (!language.equals(variantLanguage)) {
          variantLeft = true;
          continue;
        }
      }
      variant.removeProperties()

    }
    if (!variantLeft) {
      removeDocument(resource);
     
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Resource.removeProperties()

        contentTypeString = variant.getRequiredProperty(
          DOCUMENT.contentType).getString();
      } catch (PropertyNotFoundException ex) {
        log.warn("found property of "+document+" without contentType, removing");
        variantsStmts.remove();
        variant.removeProperties();
        continue;
      }
      MimeType contentType;
      try {
        contentType = new MimeType(contentTypeString);
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Resource.removeProperties()

        while (mboxes.hasNext()) {
          Statement current = mboxes.nextStatement();
          current.getResource().removeProperties();
        }
        mboxes.close();
        existingAgent.removeProperties();
        // Remove properties of mboxes
        // no need, as this has already been done by IFPPResolver
        // JenaUtil.replace(importing, agent, existingAgent);
        agent = (Resource) existingAgent.inModel(importing);
        addParticipants(existingAgent); // reconstruct
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Resource.removeProperties()

            Statement currentStmt = (Statement) inversePropertiesIter
                .next();
            model.remove(currentStmt);
          }
        }
        current.removeProperties();
      }
    }
  }

  /**
 
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Resource.removeProperties()

    while (deletingIter.hasNext()) {
      deletingSet.add(deletingIter.nextResource());
    }
    for (Iterator iter = deletingSet.iterator(); iter.hasNext();) {
        Resource current = (Resource) iter.next();
        current.removeProperties();
      }
  }
  /* (non-Javadoc)
   * @see org.wymiwyg.rwcf.Handler#handle(org.wymiwyg.rwcf.Request, org.wymiwyg.rwcf.Response, org.wymiwyg.rwcf.HandlerChain)
   */
 
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Resource.removeProperties()

                target);
        while (relations.hasNext()) {
            Resource current = relations.nextResource();
            if (current.hasProperty(KNOBOT.source, source)) {
                RelationManager.removeRelation(current);
                current.removeProperties();
            } else {
                log.debug("Resource unequal: "
                        + current.getProperty(KNOBOT.source).getResource()
                        + " ," + source);
            }
View Full Code Here

Examples of com.hp.hpl.jena.rdf.model.Seq.removeProperties()

              if (!allreadyInSeq.contains(current)) {
                personalHistory.add(current);
                allreadyInSeq.add(current);
              }
            }
            oldPersonalHistory.removeProperties();
          }
          StmtIterator phStmts = subject
              .listProperties(HISTORY.personalHistory);
          Set stmtsToRemove = new HashSet();
          while (phStmts.hasNext()) {
View Full Code Here

Examples of org.switchyard.Context.removeProperties()

            Assert.assertTrue(entry.getKey().equals("one"));
            Assert.assertTrue(values.get(0).equals("1"));
        }
       
        RESTEasyBindingData rbd2 = new RESTEasyBindingData();
        context.removeProperties();
        List<Integer> list = new ArrayList<Integer>();
        list.add(Integer.valueOf(1));
        list.add(Integer.valueOf(2));
        list.add(Integer.valueOf(3));
        context.setProperty("numbers", list);
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.