[][src]Module sophia_term::matcher

This line re-exports the module sophia_api::term::matcher, to ease transition from older versions of Sophia. It will eventually be deprecated.

See sophia_api This crate defines generic traits and default implementations for matchers, objects that can be used to match zero, one or several terms.

For a list of matcher implementations, check TermMarcher's and GraphNameMatcher's implementors lists.

For methods using matchers (with examples), see for example Graph::triples_matching, MutableGraph::remove_matching, MutableGraph::retain_matching, Dataset::quads_matching, MutableDataset::remove_matching, MutableDataset::retain_matching.

Structs

AnyTerm

The type of the ANY singleton matcher.

Enums

AnyOrExactly

A matcher matching either any term, or only a specific owned term.

AnyOrExactlyRef

A matcher matching either any term, or only a specific borrowed term.

Constants

ANY

A universal matcher: it matches any term or graph name (even the default graph).

Traits

GraphNameMatcher

Generic trait for matching graph names, i.e. optional terms.

TermMatcher

Generic trait for matching terms.