Note also that you want model.removeAll(...) in this case. See the javadoc for model.remove which says:

"... None of <code>s, p, o</code> are permitted to
        be <code>null</code>: for wildcard removal, see <code>removeAll"

Dave

On 27/02/15 15:51, Martynas Jusevičius wrote:
There is also createPlainLiteral() and createTypedLiteral():
https://jena.apache.org/documentation/javadoc/jena/com/hp/hpl/jena/rdf/model/ResourceFactory.html

On Fri, Feb 27, 2015 at 4:36 PM, Trevor Donaldson <[email protected]> wrote:
Hi Marco,

I think you want
model.remove(null,ResourceFactory.createProperty("http;.."),ResourceFactory.createResource("http://
/));
or if object is a literal

model.remove(null,ResourceFactory.createProperty("http;.."),ResourceFactory.createRDFNode("some
string"));

On Fri, Feb 27, 2015 at 10:30 AM, Marco Tenti <[email protected]> wrote:

Hi everyone is a stupid question and I am ashamed to ask , i just want to
remove from a model all the statement with a specific predicate and object
so i use  this code:

  model.remove( null,
              ResourceFactory.createProperty( "http://something#blabla"; ),
              ResourceFactory.createProperty( "http://something#blublu";)
  );

I'ts that right?  i asking because i'm not very confident on the result.
Greetings.

Reply via email to