/** * @param varPatterns an array of {@link VarPattern}s defining {@link SchemaConcept}s * @return a {@link DefineQuery} that will apply the changes described in the {@code patterns} */ @CheckReturnValue public static DefineQuery define(VarPattern... varPatterns) { return withoutGraph().define(varPatterns); }
/** * @param varPatterns a collection of variable patterns to insert into the graph * @return an insert query that will insert the given variable patterns into the graph */ @CheckReturnValue public static InsertQuery insert(Collection<? extends VarPattern> varPatterns) { return withoutGraph().insert(varPatterns); }
/** * @param varPatterns a collection of {@link VarPattern}s defining {@link SchemaConcept}s * @return a {@link DefineQuery} that will apply the changes described in the {@code patterns} */ @CheckReturnValue public static DefineQuery define(Collection<? extends VarPattern> varPatterns) { return withoutGraph().define(varPatterns); }
/** * @param patterns an array of patterns to match in the graph * @return a {@link Match} that will find matches of the given patterns */ @CheckReturnValue public static Match match(Pattern... patterns) { return withoutGraph().match(patterns); }
/** * @param varPatterns an array of {@link VarPattern}s undefining {@link SchemaConcept}s * @return a {@link UndefineQuery} that will remove the changes described in the {@code patterns} */ @CheckReturnValue public static UndefineQuery undefine(VarPattern... varPatterns) { return withoutGraph().undefine(varPatterns); }
/** * @param varPatterns a collection of {@link VarPattern}s undefining {@link SchemaConcept}s * @return a {@link UndefineQuery} that will remove the changes described in the {@code patterns} */ @CheckReturnValue public static UndefineQuery undefine(Collection<? extends VarPattern> varPatterns) { return withoutGraph().undefine(varPatterns); }
/** * @param patterns a collection of patterns to match in the graph * @return a {@link Match} that will find matches of the given patterns */ @CheckReturnValue public static Match match(Collection<? extends Pattern> patterns) { return withoutGraph().match(patterns); }
/** * @param varPatterns an array of variable patterns to insert into the graph * @return an insert query that will insert the given variable patterns into the graph */ @CheckReturnValue public static InsertQuery insert(VarPattern... varPatterns) { return withoutGraph().insert(varPatterns); }
/** * Get a {@link QueryParser} for parsing queries from strings */ public static QueryParser parser() { return withoutGraph().parser(); }
/** * @param queryString a string representing a query * @return a query, the type will depend on the type of query. */ @CheckReturnValue public static <T extends Query<?>> T parse(String queryString) { return withoutGraph().parse(queryString); }
@CheckReturnValue public static <T extends Answer> ComputeQuery<T> compute(Method<T> method) { return withoutGraph().compute(method); }