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

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


    Set<Resource> remove = new HashSet<Resource>();
    for (StmtIterator i = type.listProperties(RDFS.subClassOf); i.hasNext();) {
      Resource r = i.nextStatement().getResource();
      if (r.isAnon()) remove.add(r);
    }     
    for (Resource r: remove) r.removeProperties();
  }

  public void declareGlobalNS(Model model, Context ctx) {
    addPrefix("rdf",RDF.getURI(),model);
    if (_node instanceof Element) {
View Full Code Here


//          log.info(" Not Transferring: " +prd+ " from previous version because new value " +newValue);
        }
      } 
     
//      log.info("Removing original OWL.Ontology individual");
      ontRes.removeProperties();
      // TODO the following may be unnecesary but doesn't hurt:
      model.remove(ontRes, RDF.type, OWL.Ontology);
    }

   
View Full Code Here

        // (If we did this on a model with the same original namespace, we would remove the owl:Ontology
        // entry altogether and get an "rdf:Description" instead.
        //
       
        log.info("Removing original OWL.Ontology individual");
        ontRes.removeProperties();
        // TODO the following may be unnecesary but doesn't hurt:
        model.remove(ontRes, RDF.type, OWL.Ontology);
      }
    }
View Full Code Here

        // (If we did this on a model with the same original namespace, we would remove the owl:Ontology
        // entry altogether and get an "rdf:Description" instead.
        //
       
        log.info("Removing original OWL.Ontology individual");
        ontRes.removeProperties();
        // TODO the following may be unnecesary but doesn't hurt:
        model.remove(ontRes, RDF.type, OWL.Ontology);
      }
    }
View Full Code Here

        // (If we did this on a model with the same original namespace, we would remove the owl:Ontology
        // entry altogether and get an "rdf:Description" instead.
        //
       
        log.info("Removing original OWL.Ontology individual");
        ontRes.removeProperties();
        // TODO the following may be unnecesary but doesn't hurt:
        model.remove(ontRes, RDF.type, OWL.Ontology);
      }
    }
View Full Code Here

        // (If we did this on a model with the same original namespace, we would remove the owl:Ontology
        // entry altogether and get an "rdf:Description" instead.
        //
       
        log.info("Removing original OWL.Ontology individual");
        ontRes.removeProperties();
        // TODO the following may be unnecesary but doesn't hurt:
        model.remove(ontRes, RDF.type, OWL.Ontology);
      }
    }
View Full Code Here

    }
    // remove the properties of events which are no longer present
    for (Iterator iter = existingMap.values().iterator(); iter.hasNext();) {
      Resource current = (Resource) iter.next();
      if (!newEventSet.contains(current)) {
        current.removeProperties();
      }
    }
   

  }
View Full Code Here

                      otherLangLabels
                          .toArray(new Literal[otherLangLabels
                              .size()]));
              // TODO put in map of attachments to update
            }
            currentAttachment.removeProperties();

          } else {
            // remove attachment from sequence anyway and re-insert
            // it at the end at the best position
            // best position: for the moment the same index if
View Full Code Here

    Model model = target.getModel();
    Resource permissionsAlternatives;
    if (requiredPermssionStmt != null) {
      permissionsAlternatives = requiredPermssionStmt.getResource();
      target.removeAll(AUTHORIZATION.requires);
      permissionsAlternatives.removeProperties();
      permissionsAlternatives.addProperty(RDF.type,
          AUTHORIZATION.PermissionAlternatives);
    } else {
      permissionsAlternatives = model
          .createResource(AUTHORIZATION.PermissionAlternatives);
View Full Code Here

        delete = "delete".equals(body.getParameterValues("delete")[0]);
      } catch (Exception ex) {
      }

      if (delete) {
        user.removeProperties();
        new org.wymiwyg.rwcf.util.EnhancedResponse(response)
            .sendRedirect("/admin/user_manager");
        return;
      }
      user.removeAll(AUTHORIZATION.password);
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.