Crate rdfless

Source
Expand description

§rdfless

A command-line tool for parsing, filtering, and formatting RDF data with colored output. This crate is primarily intended as a CLI application, not as a reusable library.

Re-exports§

pub use format_object as format_owned_object;
pub use format_predicate as format_owned_predicate;
pub use format_subject as format_owned_subject;

Structs§

ColorConfig
Config
OutputConfig
OwnedTriple
ParseError
ParseResult
ThemeConfig
TripleFilter

Enums§

InputFormat
ObjectType
SubjectType

Traits§

ArgsConfig
Define a trait for the Args interface

Functions§

detect_format_from_path
Helper function to detect format from file extension
estimate_output_lines
Estimate the number of lines the output will take
extract_prefixes
Extract prefix declarations from RDF content Supports both Turtle (@prefix) and SPARQL (PREFIX) syntax
format_object
Format an owned object
format_predicate
Format an owned predicate
format_subject
Format an owned subject
get_effective_colors
get_terminal_height
Get terminal height for paging decisions
load_config
parse_for_estimation
Parse input and return triples and prefixes for estimation or processing
parse_robust
Parse input with robust error handling and return detailed results
process_input
quad_to_owned
Convert a Quad to an OwnedTriple with graph information
render_output
Render output to any writer
should_use_pager
Determine if paging should be used based on content length
string_to_color
triple_to_owned
Convert a Triple to an OwnedTriple (oxrdf version with RDF-star support)