@Override public Resource addProperty(Property p, String lexicalForm, RDFDatatype datatype) { mustHaveModel().add(this, p, lexicalForm, datatype) ; return this ; }
@Override public Resource addProperty(Property p, String o) { mustHaveModel().add( this, p, o ); return this; }
@Override public Resource addProperty(Property p, String o, String l) { mustHaveModel().add( this, p, o, l ); return this; }
@Override public Model add(Resource s, Property p, String o, boolean wellFormed) { add( s, p, literal( o, "", wellFormed ) ); return this; }
@Override public Resource addProperty( Property p, RDFNode o ) { mustHaveModel().add( this, p, o ); return this; }
@Override public Resource addProperty( Property p, RDFNode o ) { mustHaveModel().add( this, p, o ); return this; }
@Override public Resource addProperty(Property p, String lexicalForm, RDFDatatype datatype) { mustHaveModel().add(this, p, lexicalForm, datatype) ; return this ; }
public Model add( Resource s, Property p, String o, String lang, boolean wellFormed) { add( s, p, literal( o, lang, wellFormed ) ); return this; }
@Override public Resource addLiteral( Property p, Literal o ) { mustHaveModel().add( this, p, o ); return this; }
@Override public Model add(Resource s, Property p, String lex, RDFDatatype datatype) { add( s, p, literal( lex, datatype)) ; return this; }
@Override public Model add(Resource s, Property p, String o, boolean wellFormed) { add( s, p, literal( o, "", wellFormed ) ); return this; }
public Model add( Resource s, Property p, String o, String lang, boolean wellFormed) { add( s, p, literal( o, lang, wellFormed ) ); return this; }
@Override public Model add( Model other ) { history.add( "add" ); if (abortsOnAdd) throw new RuntimeException( "model aborts on add of " + other ); super.add( other ); return this; }
@Override public Resource addLiteral( Property p, boolean o ) { ModelCom m = mustHaveModel(); m.add( this, p, m.createTypedLiteral( o ) ); return this; }
@Override public Resource addLiteral( Property p, Object o ) { ModelCom m = mustHaveModel(); m.add( this, p, m.createTypedLiteral( o ) ); return this; }
@Override public Resource addLiteral( Property p, Object o ) { ModelCom m = mustHaveModel(); m.add( this, p, m.createTypedLiteral( o ) ); return this; }
@Override public Resource addLiteral( Property p, char o ) { ModelCom m = mustHaveModel(); m.add( this, p, m.createTypedLiteral( o ) ); return this; }
@Override public Model add( Model other ) { history.add( "add" ); if (abortsOnAdd) throw new RuntimeException( "model aborts on add of " + other ); super.add( other ); return this; }
@Override public Resource addLiteral( Property p, boolean o ) { ModelCom m = mustHaveModel(); m.add( this, p, m.createTypedLiteral( o ) ); return this; }
/** add a Statement to this Model by adding its SPO components. */ @Override public Model add( Statement s ) { add( s.getSubject(), s.getPredicate(), s.getObject() ); return this; }