public boolean contains( Node s, Node p, Node o )
{ return m.contains( s, p, o ) || result.contains( s, p, o ); }
public boolean baseContains( List<Triple> triples )
{
BasicGraphPattern p = new BasicGraphPattern();
for (Triple t: triples) p.add( t );
return m.getQueryHandler().prepare( p ).executeBindings().hasNext();
}