/** true iff _n_ is associated with some triple. */ public static boolean hasTriple(Graph graph, Node node) { return getTriple(graph, node) != null ; }
/** Answer the triple associated with <code>n</code> by eg's graph's Reifier. @param eg the (enhanced) graph who's Reifier might hold the triple @param n the node who's triple is required @return the associated triple if any, otherwise null */ private Triple getTriple( EnhGraph eg, Node n ) { return ReifierStd.getTriple(eg.asGraph(), n ); } };
public static ReifiedStatement createExistingReifiedStatement( ModelCom model, Node n ) { Triple t = ReifierStd.getTriple(model.getGraph(), n ); return new ReifiedStatementImpl( model, n, model.asStatement( t ) ); } }
@Override public boolean isValid() { return ReifierStd.getTriple(getModel().getGraph(), this.asNode() ) != null; }
else Triple t = getTriple(graph, node) ;