/** * {@inheritDoc} */ @Override public Model remove(List<Statement> statements) { return super.object.remove(statements); }
/** * {@inheritDoc} */ @Override public Model remove(Model m, boolean suppressReifications) { return super.object.remove(m, suppressReifications); }
/** * {@inheritDoc} */ @Override public Model remove(Statement s) { return super.object.remove(s); }
/** * {@inheritDoc} */ @Override public Model remove(Statement[] statements) { return super.object.remove(statements); }
/** * {@inheritDoc} */ @Override public Model remove(StmtIterator iter) { return super.object.remove(iter); }
public void clearAggregations() { StmtIterator itr = res.listProperties(ORE.isAggregatedBy); model.remove(itr); }
public void clearResourceMaps() throws OREException { StmtIterator itr = res.listProperties(ORE.isDescribedBy); model.remove(itr); }
public void clearTitles() { StmtIterator itr = res.listProperties(DC.title); model.remove(itr); }
/** * <p>Remove the specific RDF property-value pair from this DAML resource.</p> * * @param property The property to be removed * @param value The specific value of the property to be removed */ @Override public void removeProperty( Property property, RDFNode value ) { getModel().remove( this, property, value ); }
public void clearSimilarTo() { StmtIterator itr = res.listProperties(ORE.similarTo); model.remove(itr); }
public void removeStatement(Statement statement) { model.remove(statement); // populatePanel(panel); updateSemanticAnnotation(); }
public void clearTypes() { StmtIterator itr = res.listProperties(RDF.type); model.remove(itr); }
/** Remove a specified property-value pair, if it exists */ protected void removePropertyValue( Property prop, String name, RDFNode value ) { checkProfile( prop, name ); getModel().remove( this, prop, value ); }
public void changeStatement(Statement origStatement, OntProperty predicate, RDFNode node) { if (predicate == null) return; model.remove(origStatement); model.add(subject, predicate, node); // populatePanel(panel); updateSemanticAnnotation(); }
public void clearAgents(URI relationship) throws OREException { List<Agent> agents = this.getAgents(relationship); for (Agent agent : agents) { Model cModel = ((AgentJena) agent).getModel(); StmtIterator itr = cModel.listStatements(); model.remove(itr); } }
public void clearCreators() { List<Agent> creators = this.getCreators(); for (Agent creator : creators) { Model cModel = ((AgentJena) creator).getModel(); StmtIterator itr = cModel.listStatements(); model.remove(itr); } }
@Override public Container remove(Statement s) { // System.err.println( "]] SeqImpl.remove " + s ); getModel().remove(s); // System.err.println( "]] SeqImpl.remove - about to shift down " + (s.getPredicate().getOrdinal()+1) + " to " + (size()+1) ); shiftDown(s.getPredicate().getOrdinal()+1, size()+1); // System.err.println( "]] SeqImpl.remov completed" ); return this; }
protected void shiftUp(int start, int finish) { Statement stmt = null; for (int i = finish; i >= start; i--) { stmt = getRequiredProperty(RDF.li(i)); getModel().remove(stmt); addProperty(RDF.li(i+1), stmt.getObject()); } } protected void shiftDown(int start, int finish) {
/** * <p>Remove the statement that the given string provides version information about * this resource. If this statement * is not true of the current model, nothing happens.</p> * @param info A version information string to be removed */ @Override public void removeVersionInfo( String info ) { checkProfile( getProfile().VERSION_INFO(), "VERSION_INFO" ); Literal infoAsLiteral = ResourceFactory.createPlainLiteral( info ); getModel().remove( this, getProfile().VERSION_INFO(), infoAsLiteral ); }
@Override public Seq set(int index, Object o) { checkIndex(index); Statement s = getRequiredProperty(RDF.li(index)) ; Model m = s.getModel() ; Statement s2 = m.createLiteralStatement(s.getSubject(), s.getPredicate(), o) ; s.getModel().remove(s) ; s.getModel().add(s2) ; //getRequiredProperty(RDF.li(index)).changeObject(o); return this; }