/** * Answer a reification of a statement with a given uri. If that uri already reifies a distinct * Statement, throw an AlreadyReifiedException. * * @param uri the URI of the resource which will reify <code>s</code> * @param s the Statement to reify * @return a reified statement object associating <code>uri</code> with <code>s</code>. * @throws AlreadyReifiedException if uri already reifies something else. */ public ReifiedStatement createReifiedStatement(String uri, Statement s) { return ReifiedStatementImpl.create(model, uri, s); }
/** * Answer a ReifiedStatement that is based on the given node. * * @param n the node which represents the reification (and is bound to some triple t) * @return a ReifiedStatement associating the resource of n with the statement of t. */ private ReifiedStatement getRS(Node n) { return ReifiedStatementImpl.createExistingReifiedStatement(model, n); }