pub trait Adapter<T>: Execute<T> { }Expand description
An RDF dataset proxy that evaluates a SPARQL query and produces RDF.
The program defines the dataset and supported SPARQL features. CONSTRUCT
and DESCRIBE yield graph results; SELECT and ASK need a documented
mapping of their results to RDF. The pattern does not define SPARQL Update.
§Command-line contract
PROGRAM [OPTIONS] [QUERY-FILE]
The query file defaults to - (stdin); RDF is written to stdout. Output
serialization is selected by AdapterOptions::output and defaults to
jsonl. Unsupported query forms must cause failure rather than a non-RDF
result mislabeled as RDF.
T represents the implementation’s result, not necessarily a parsed graph.
See crate::programs for shared options and links to concrete execution
behavior, and the
adapter specification for the external program’s requirements.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".