Skip to main content

Matcher

Trait Matcher 

Source
pub trait Matcher<T>: Execute<T> { }
Expand description

An exact or approximate matcher that consumes RDF and describes matches as RDF.

The output need not be a subset of the input: it can introduce statements describing correspondences or scores. The program defines the matching relation, compared entities or reference data, output vocabulary, and score interpretation. The pattern imposes no universal algorithm or score scale.

§Command-line contract

PROGRAM [OPTIONS] [INPUT-FILE [OUTPUT-FILE]]

Input and output default to stdin and stdout. A single operand selects input; two select input then output, with - denoting a standard stream. MatcherOptions selects serializations, both defaulting to jsonl.

T represents the result in the implementation’s chosen form. The concrete execution and transport behavior is documented through crate::programs. See also the matcher specification.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§