Package com.hp.hpl.jena.rdf.model

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


        Model origModel = ModelFactory.createModelForGraph(origGraph);
        editableModel.add(origModel);
        Resource locationResource = editableModel
            .createResource(locationString);
        locationResource.addProperty(RDF.type, DISCOBITS.InfoDiscoBit);
        locationResource.removeAll(DISCOBITS.infoBit);
        locationResource.addProperty(DISCOBITS.infoBit, infoBitResource);
        storeView.revokeGraph(origGraph);
        storeView.assertGraph(new FCAGraphImpl(editableModel));
      }
View Full Code Here


      String uid = eventUIDStrings[i];
      if (!uid.equals("") && existingMap.containsKey(uid)) {
        vevent = (Resource) existingMap.get(uid);
        deletePropertiesByLanguage(vevent, CALENDAR.summary, language);
        deletePropertiesByLanguage(vevent, CALENDAR.location, language);
        vevent.removeAll(CALENDAR.dtstart);
        vevent.removeAll(CALENDAR.dtend);
        vevent.removeAll(SPACE.location);
      } else {
        if (uid.equals("")) {
          try {
View Full Code Here

      if (!uid.equals("") && existingMap.containsKey(uid)) {
        vevent = (Resource) existingMap.get(uid);
        deletePropertiesByLanguage(vevent, CALENDAR.summary, language);
        deletePropertiesByLanguage(vevent, CALENDAR.location, language);
        vevent.removeAll(CALENDAR.dtstart);
        vevent.removeAll(CALENDAR.dtend);
        vevent.removeAll(SPACE.location);
      } else {
        if (uid.equals("")) {
          try {
            uid = generateUID(new URI(target.getURI()).getAuthority());
View Full Code Here

        vevent = (Resource) existingMap.get(uid);
        deletePropertiesByLanguage(vevent, CALENDAR.summary, language);
        deletePropertiesByLanguage(vevent, CALENDAR.location, language);
        vevent.removeAll(CALENDAR.dtstart);
        vevent.removeAll(CALENDAR.dtend);
        vevent.removeAll(SPACE.location);
      } else {
        if (uid.equals("")) {
          try {
            uid = generateUID(new URI(target.getURI()).getAuthority());
          } catch (URISyntaxException e) {
View Full Code Here

    MultiPartBody body = (MultiPartBody) request.getBody();
    String target = body.getParameter("target");
    String statusCode = body.getParameter("statusCode");
    String redirectionURI = body.getParameter("redirectionURI");
    Resource redirectionResource = model.getResource(redirectionURI);
    redirectionResource.removeAll(REDIRECTIONS.target);
    redirectionResource.removeAll(REDIRECTIONS.statusCode);   
    Resource targetResource = model.getResource(target);
    redirectionResource.addProperty(REDIRECTIONS.target, targetResource);
    Literal statusLiteral = model.createTypedLiteral(Integer.parseInt(statusCode));
    redirectionResource.addProperty(REDIRECTIONS.statusCode, statusLiteral);
View Full Code Here

    String target = body.getParameter("target");
    String statusCode = body.getParameter("statusCode");
    String redirectionURI = body.getParameter("redirectionURI");
    Resource redirectionResource = model.getResource(redirectionURI);
    redirectionResource.removeAll(REDIRECTIONS.target);
    redirectionResource.removeAll(REDIRECTIONS.statusCode);   
    Resource targetResource = model.getResource(target);
    redirectionResource.addProperty(REDIRECTIONS.target, targetResource);
    Literal statusLiteral = model.createTypedLiteral(Integer.parseInt(statusCode));
    redirectionResource.addProperty(REDIRECTIONS.statusCode, statusLiteral);
    new EnhancedResponse(response).sendRedirect(redirectionURI+"?mode=edit");
View Full Code Here

      }
    }
    if (uriNew != null) {
      Resource permission = model.getResource(uriNew);
      permission.addProperty(RDF.type, AUTHORIZATION.Permission);
      permission.removeAll(RDFS.comment);
      if (!comment.equals("")) {
        permission.addProperty(RDFS.comment, comment);
      }
      permission.removeAll(RDFS.label);
      if (!label.equals("")) {
View Full Code Here

      permission.addProperty(RDF.type, AUTHORIZATION.Permission);
      permission.removeAll(RDFS.comment);
      if (!comment.equals("")) {
        permission.addProperty(RDFS.comment, comment);
      }
      permission.removeAll(RDFS.label);
      if (!label.equals("")) {
        permission.addProperty(RDFS.label, label);
      }
    }
    chain.doNext(request, response);
View Full Code Here

   
  //Setting KnoBot default email
    Resource defaults = model.createResource("urn://wymiwyg.org/knobot/defaults");
    Property notEmail = model
    .createProperty("urn://wymiwyg.org/knobot/default/notificationEmail");
    defaults.removeAll(notEmail);
    defaults.addProperty(notEmail, model.createResource(mbox));
    EnhancedResponse ehResponse = new EnhancedResponse(response);
    ehResponse.sendRedirect("/?login=any");
  }
View Full Code Here

        user.removeProperties();
        new org.wymiwyg.rwcf.util.EnhancedResponse(response)
            .sendRedirect("/admin/user_manager");
        return;
      }
      user.removeAll(AUTHORIZATION.password);
      user.removeAll(AUTHORIZATION.pass_sha1sum);
      user.addProperty(AUTHORIZATION.pass_sha1sum, Util.sha1(password));
      String[] permissionStrings = body.getParameterValues("permission");
      user.removeAll(AUTHORIZATION.permission);
      if (permissionStrings != null) {
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.