Esempio n. 1
0
 /**
  * If _n_ is a ReifiedStatement, create a local copy of it, which will force the underlying
  * reifier to take note of the mapping.
  */
 private void noteIfReified(RDFNode n) {
   if (n.canAs(ReifiedStatement.class)) {
     ReifiedStatement rs = n.as(ReifiedStatement.class);
     createReifiedStatement(rs.getURI(), rs.getStatement());
   }
 }
Esempio n. 2
0
 /**
  * Remove a given reification from this model. Other reifications of the same statement are
  * untouched.
  *
  * @param rs the reified statement to be removed
  */
 public void removeReification(ReifiedStatement rs) {
   reifier.remove(rs.asNode(), rs.getStatement().asTriple());
 }