Example #1
0
 @Override
 public int indexOf(final RDFNode o) throws ReadDeniedException, AuthenticationRequiredException {
   checkRead();
   final Statement stmt = containerIndexOf(o);
   if (stmt == null) {
     return 0;
   }
   checkRead(stmt);
   return stmt.getPredicate().getOrdinal();
 }
Example #2
0
 @Override
 public boolean test(final Statement o) {
   return (o.getPredicate().getOrdinal() != 0) && n.equals(o.getObject());
 }