Examples of removeProperties()


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

    return manuallyDeletedReif;
  }
 
  protected void treatStatement(Object s) {
    ReifiedStatement current = (ReifiedStatement) s;
    current.removeProperties();
  }
}
View Full Code Here

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

            log.debug("will delete: " + currentRP);
          }
          reifProps.close();
        }
        base.removeReification(reified);
        reified.removeProperties();
        statement.remove();
      } else {
        deletedStatements.add(statement);
      }
      processedStatements.add(statement);
View Full Code Here

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

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

//          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

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

        // (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

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

        // (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

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

        // (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

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

        // (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

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

    }
    // 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

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

                      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
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.