예제 #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();
 }
예제 #2
0
 @Override
 public boolean test(final Statement o) {
   return (o.getPredicate().getOrdinal() != 0) && n.equals(o.getObject());
 }