new TripleImpl(ind, "hasName", "daniel") ) ) ); assertFalse( store.contains( new TripleImpl(ind, "hasName", "marc") ) ); assertTrue( store.contains( new TripleImpl(ind, "hasName", "mark") ) ); assertTrue( store.contains( new TripleImpl(ind, "hasName", "daniel") ) ); assertTrue( store.contains( new TripleImpl(ind, "hasCar", "mini") ) ); assertTrue( store.contains( new TripleImpl(ind, "hasName", "oscar") ) ); assertTrue( store.contains( new TripleImpl(ind, "hasCar", "ferrari") ) ); assertTrue( store.contains( new TripleImpl(ind, "hasName", "oscar") ) );
public boolean containsKey(Object key) { return store.contains( property( TripleStore.TYPE, key ) ); }
public StudentProxyWrapper3( Imp2 object, TripleStore store ) { this.object = object; this.store = store; if ( ! this.store.contains( propertyKey("age") ) ) { this.store.put( property( "age", 0) ); } this.store.put( property( "xcsvf" , 0.0 ) ); this.store.put( property( "name" , null ) ); this.store.put( property( "csdfsd", 0L ) ); this.store.put( property( "school" , null ) ); }
public boolean containsValue( Object value ) { for ( Triple t : getSchemaTriplesForSubject(getObject()) ) { if (t.getProperty().equals( TripleStore.TYPE ) ) { return store.contains( tripleFactory.newTriple( t.getValue(), TripleStore.PROXY, value ) ); } } return false; }