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