Examples of removeProperties()


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

        }
        String lang = langStmt.getString();
        if (!acceptedLang.contains(lang)) {
          // remove
          currentSeq.remove(i--);
          currentAttachment.removeProperties();
        }
      }
    }
    // listSubjectsWithProperty(RDF.type, ATTACH.Attachment);
View Full Code Here

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

        Model resultModel = ModelFactory.createDefaultModel();
        seqTypeStmts.close();
        for (Iterator iter = deletingRes.iterator(); iter.hasNext();) {
            Resource current = (Resource) iter.next();
            resultModel.add(JenaUtil.getExpandedResource(current,1));
            current.removeProperties();
        }
                response.setBody(resultModel);
    }
    /*
     * (non-Javadoc)
 
View Full Code Here

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

                                .getString();
                        if (acceptLanguagesStringList.contains(currentLang)) {
                            continue ATTACHMENTS;
                        }
                    }
                    attachment.removeProperties();
                    try {
                        attachmentsSeq.remove(i--);
                    } catch (PropertyNotFoundException ex) {
                        log
                                .warn("sequence with missing elements, faled removing "
View Full Code Here

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

        try {
          RelationManager.removeRelation(current);
        } catch (Exception ex) {
          log.info(ex);
        }
        current.removeProperties()
      }
    }
  }

  /*
 
View Full Code Here

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

          }
        }
        if (!matches) {
          // remove
          currentSeq.remove(i--);
          currentAttachment.removeProperties();
        }
      }
    }
    // listSubjectsWithProperty(RDF.type, ATTACH.Attachment);
View Full Code Here

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

    Model importing = ModelFactory.createDefaultModel();
    importing.read(new StringReader(serializedModel), ehRequest
        .getRequestURLWithoutParams().toString(), "RDF/XML");
    if (codeOrig != null) {
      Resource resOrig = getSpatialThingByID(codeOrig);
      resOrig.removeProperties();
    }
   
    ResIterator importCountryIter = importing.listSubjectsWithProperty(
        RDF.type, GEOF.SpatialThing);
    boolean delete;
View Full Code Here

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

    Statement idStmt =  country.getProperty(DC.identifier);
    if (idStmt != null) {
      String id =idStmt.getString();
      idStmt.remove();
      Resource oldVersion = getSpatialThingByID(id);
      oldVersion.removeProperties();
      JenaUtil.replace(insertion, country, oldVersion); //functionality by reproduceable bugs :-(
    }
   
    InsertionIFPResolver.process(model, insertion);
    model.add(insertion);
View Full Code Here

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

    Statement idStmt =  country.getProperty(DC.identifier);
    if (idStmt != null) {
      String id =idStmt.getString();
      idStmt.remove();
      Resource oldVersion = getSpatialThingByID(id);
      oldVersion.removeProperties();
    }
  }

  /**
   * @param codeOrig
View Full Code Here

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

                        } catch (NullPointerException ex1) {
                            log
                                    .warn(
                                            "Exception in Aggregation-thread for aggreggator without aggregated, removing aggregator."
                                                    + aggregator, ex);
                            aggregator.removeProperties();
                        }
                    }
                }
            } catch (Throwable th) {
                throw new RuntimeException(th);
View Full Code Here

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

      if (action.equals("delete")) {
        ResIterator iter = model.listSubjectsWithProperty(
            HOSTCANONICALIZER.accessURLBase, model
                .createResource(accessURL));
        Resource resource = iter.nextResource();
        resource.removeProperties();
        if (iter.hasNext()) {
          throw new RuntimeException("ambiguos");
        }
        iter.close();
      } else {
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.