Something like : Resource uri = model.createResource( " http://com.telemis.core.aim.base/ImageStudy/2.16.56.465769650.20070523082619.459.0" ); Property prop = model.createProperty( "http://com.telemis.core.aim.base/instanceUID"); StmtIterator querySerie = model.listStatements(new SimpleSelector( uri, prop, null );
? or even : StmtIterator querySerie = model.listStatements(new SimpleSelector( uri, null, null ); 2014-06-23 14:09 GMT+02:00 Frederic Toublanc <frederic.toubl...@telemis.com> : > Hello everyone, > > I used JenaBean to persist my java model into the TDB database. > I wrote the content of the model with *model.write(System.out,"N3");* and i > have the following result : > > > < > > http://com.telemis.core.aim.base/ImageStudy/2.16.56.465769650.20070523082619.459.0 > > > a <http://com.telemis.core.aim.base/ImageStudy> ; > <http://com.telemis.core.aim.base/cagridId> > 0 ; > <http://com.telemis.core.aim.base/instanceUID> > *"2.16.56.465769650.20070523082619.459.0"*^^< > http://www.w3.org/2001/XMLSchema#string> ; > <http://com.telemis.core.aim.base/startDate> > "2014-06-23T11:40:23"^^< > http://www.w3.org/2001/XMLSchema#string> ; > <http://com.telemis.core.aim.base/startTime> > "+00:00:00.000000"^^< > http://www.w3.org/2001/XMLSchema#string> > . > > > I want to retrieve the resource > *< > http://com.telemis.core.aim.base/ImageStudy/2.16.56.465769650.20070523082619.459.0 > < > http://com.telemis.core.aim.base/ImageStudy/2.16.56.465769650.20070523082619.459.0 > >>* > > so i create a statement as followed : > > Property prop = model.createProperty(" > http://com.telemis.core.aim.base/instanceUID"); > StmtIterator querySerie = model.listStatements(new SimpleSelector(null, > prop, *"2.16.56.465769650.20070523082619.459.0"*)); > > but i can't get any result from it ;( > > Is there somethign i am missing ? Maybe i should add ^^< > http://www.w3.org/2001/XMLSchema#string> somewhere in the object value ? > > Thx i advance for ur answers. > -- Jean-Marc Vanel Déductions SARL - Consulting, services, training, Rule-based programming, Semantic Web http://deductions-software.com/ +33 (0)6 89 16 29 52 Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui