Expand description
I define 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
Triple::matched_by,
Graph::triples_matching,
MutableGraph::remove_matching,
MutableGraph::retain_matching,
Dataset::quads_matching,
MutableDataset::remove_matching,
MutableDataset::retain_matching.
Structs§
- Any
- A universal matcher: it matches any
TermorGraphName(even the default graph). - Datatype
Matcher - A
TermMatcherthat matches all literals with a given datatype - Language
TagMatcher - A
TermMatcherthat matches all literals with a given language tag. - Matcher
Ref - Result type of
TermMatcher::matcher_refandGraphNameMatcher::matcher_ref. - Not
- Matches on the inverse of the inner
TermorGraphName - Term
Matcher Gn - Wrapper type returned by
TermMatcher::gn
Traits§
- Graph
Name Matcher - Generic trait for matching
GraphNames. - Term
Matcher - Generic trait for matching
Terms.