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
Term
orGraphName
(even the default graph). - Datatype
Matcher - A
TermMatcher
that matches all literals with a given datatype - Language
TagMatcher - A
TermMatcher
that matches all literals with a given language tag. - Matcher
Ref - Result type of
TermMatcher::matcher_ref
andGraphNameMatcher::matcher_ref
. - Term
Matcher Gn - Wrapper type returned by
TermMatcher::gn
Traits§
- Graph
Name Matcher - Generic trait for matching
GraphName
s. - Term
Matcher - Generic trait for matching
Term
s.