print(bgp2) ;
System.out.println() ;
}
private static void print(BasicPattern bgp) {
IndentedWriter out = IndentedWriter.stdout;
PrefixMapping pmap = new PrefixMappingImpl() ;
pmap.setNsPrefixes(SSE.defaultPrefixMapWrite) ;
// pmap.setNsPrefix("ppi", "http://landregistry.data.gov.uk/def/ppi/") ;
// pmap.setNsPrefix("common", "http://landregistry.data.gov.uk/def/common/") ;
SerializationContext sCxt = SSE.sCxt(pmap) ;
boolean first = true ;
for ( Triple t : bgp )
{
if ( !first )
out.print("\n") ;
else
first = false ;
// Adds (triple ...)
// SSE.write(buff.getIndentedWriter(), t) ;
out.print("(") ;
WriterNode.outputPlain(out, t, sCxt) ;
out.print(")") ;
}
out.flush();
}