/** * Check whether the {@link Value} is ever used as object. * @param conn connection with the repository * @param val {@link Value} to check * @return true if the {@link Value} is ever used as predicate. */ public static boolean isObject(RepositoryConnection conn, final Value val) { return existsStatement(conn, null, null, val); }
/** * Check whether the {@link Resource} is ever used as context. * @param conn connection with the repository * @param rsc the {@link Resource} to check * @return true if the {@link Resource} is ever used as context. */ public static boolean isContext(RepositoryConnection conn, Resource rsc) { return existsStatement(conn, null, null, null, rsc); }
/** * Check whether the {@link Value} is ever used as object. * @param conn connection with the repository * @param val {@link Value} to check * @return true if the {@link Value} is ever used as predicate. */ public static boolean isObject(RepositoryConnection conn, final Value val) { return existsStatement(conn, null, null, val); }
/** * Check whether the {@link Resource} is ever used as subject. * @param conn connection with the repository * @param rsc the {@link Resource} to check * @return true if the {@link Resource} is ever used as subject. */ public static boolean isSubject(RepositoryConnection conn, final Resource rsc) { return existsStatement(conn, rsc, null, null); }
/** * Check whether the {@link Resource} is ever used as context. * @param conn connection with the repository * @param rsc the {@link Resource} to check * @return true if the {@link Resource} is ever used as context. */ public static boolean isContext(RepositoryConnection conn, Resource rsc) { return existsStatement(conn, null, null, null, rsc); }
/** * Check whether the {@link Resource} is ever used as subject. * @param conn connection with the repository * @param rsc the {@link Resource} to check * @return true if the {@link Resource} is ever used as subject. */ public static boolean isSubject(RepositoryConnection conn, final Resource rsc) { return existsStatement(conn, rsc, null, null); }
/** * Check whether the {@link URI} is ever used as predicate. * @param conn connection with the repository * @param uri the {@link URI} to check * @return true if the {@link URI} is ever used as predicate. */ public static boolean isPredicate(RepositoryConnection conn, final URI uri) { return existsStatement(conn, null, uri, null); }
/** * Check whether the {@link URI} is ever used as predicate. * @param conn connection with the repository * @param uri the {@link URI} to check * @return true if the {@link URI} is ever used as predicate. */ public static boolean isPredicate(RepositoryConnection conn, final URI uri) { return existsStatement(conn, null, uri, null); }